Skip to content

Commit 82fe62d

Browse files
Add docusaurus (#1)
* Add docusaurus * Run format Co-authored-by: PureSkill.gg <[email protected]>
1 parent 9793257 commit 82fe62d

21 files changed

+19165
-14171
lines changed

.c8rc.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"esbenp.prettier-vscode"
1414
],
1515
"postCreateCommand": "npm install",
16-
"forwardPorts": [4001],
16+
"forwardPorts": [3000],
17+
"portsAttributes": {
18+
"3000": { "label": "App" }
19+
},
1720
"remoteUser": "node"
1821
}

.github/workflows/main.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,23 @@ on:
66
- pull_request
77

88
jobs:
9-
test:
9+
build:
1010
runs-on: ubuntu-20.04
1111
timeout-minutes: 30
12-
strategy:
13-
matrix:
14-
node:
15-
- '14'
16-
- '16'
1712
steps:
1813
- name: Checkout
1914
uses: actions/checkout@v2
2015
- name: Setup
2116
uses: ./.github/actions/setup
22-
with:
23-
node_version: ${{ matrix.node }}
24-
- name: Test
25-
run: npm test
17+
- name: Build
18+
run: npm run build
2619
lint:
2720
runs-on: ubuntu-20.04
2821
timeout-minutes: 30
29-
strategy:
30-
matrix:
31-
node:
32-
- '14'
33-
- '16'
3422
steps:
3523
- name: Checkout
3624
uses: actions/checkout@v2
3725
- name: Setup
3826
uses: ./.github/actions/setup
39-
with:
40-
node_version: ${{ matrix.node }}
4127
- name: Lint
4228
run: npm run lint

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ jobs:
6060
id: version
6161
run: |
6262
echo "::set-output name=current::$(jq -r '.version' package.json)"
63-
- name: Documentation
64-
run: npm run docs:build
63+
- name: Build
64+
run: npm run build
6565
- name: Publish ${{ steps.version.outputs.current }}
6666
uses: peaceiris/actions-gh-pages@v3
6767
with:
6868
personal_token: ${{ secrets.GH_TOKEN }}
69-
publish_dir: .docs
69+
publish_dir: build
7070
keep_files: false
7171
cname: docs.pureskill.gg
7272
user_name: ${{ secrets.GIT_USER_NAME }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# https://github.com/github/gitignore
77

88
# Build directories
9+
build
910
package
1011
.docs
1112

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PureSkill.gg community documentation.
88

99
## Description
1010

11-
TODO
11+
Source for https://docs.pureskill.gg.
1212

1313
## Installation
1414

@@ -20,7 +20,7 @@ $ npm install @pureskillgg/docs
2020

2121
[npm]: https://www.npmjs.com/
2222

23-
## Development and Testing
23+
## Development
2424

2525
### Quickstart
2626

@@ -29,12 +29,7 @@ $ git clone https://github.com/pureskillgg/docs.git
2929
$ cd docs
3030
$ nvm install
3131
$ npm install
32-
```
33-
34-
Run the command below in a separate terminal window:
35-
36-
```
37-
$ npm run test:watch
32+
$ npm start
3833
```
3934

4035
Primary development tasks are defined under `scripts` in `package.json`
@@ -58,7 +53,7 @@ $ git clone [email protected]:pureskillgg/docs.git
5853

5954
### Requirements
6055

61-
You will need [Node.js] with [npm] and a [Node.js debugging] client.
56+
You will need [Node.js] with [npm].
6257

6358
Be sure that all commands run under the correct Node version, e.g.,
6459
if using [nvm], install the correct version with
@@ -80,7 +75,6 @@ $ npm install
8075
```
8176

8277
[Node.js]: https://nodejs.org/
83-
[Node.js debugging]: https://nodejs.org/en/docs/guides/debugging-getting-started/
8478
[npm]: https://www.npmjs.com/
8579
[nvm]: https://github.com/creationix/nvm
8680

ava.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

babel.config.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')]
3+
}

docs/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
slug: /
3+
---
4+
# Home

docusaurus.config.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const config = {
2+
title: 'PureSkill.gg Docs',
3+
tagline: 'Beep Boop.',
4+
url: 'https://docs.pureskill.gg',
5+
baseUrl: '/',
6+
onBrokenLinks: 'throw',
7+
onBrokenMarkdownLinks: 'warn',
8+
i18n: {
9+
defaultLocale: 'en',
10+
locales: ['en']
11+
},
12+
presets: [
13+
[
14+
'@docusaurus/preset-classic',
15+
{
16+
docs: {
17+
routeBasePath: '/'
18+
},
19+
blog: false
20+
}
21+
]
22+
]
23+
}
24+
25+
module.exports = config

0 commit comments

Comments
 (0)