Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autogenerate documentation #41

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Generate docs

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

permissions:
contents: write
pull-requests: write

jobs:
generate-docs:
name: Generate docs
runs-on: ubuntu-latest

steps:
- name: Sync the Github Wiki
uses: arciera/github-wiki-sync@main

with:
build_script: docs
docs_folder: docs
message: "chore: update documentation"
auth_token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
name: ${{ github.actor }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,6 @@ dist
*.js
*.d.ts
.idea

# documentation
docs/
194 changes: 194 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"build": "tsc",
"build:start": "npm run build && npm run start",
"bundle": "ncc build ./index.ts -o build -m",
"docs": "typedoc",
"start": "node dist/index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -16,7 +17,10 @@
"license": "GNU GPLv3",
"devDependencies": {
"@types/node": "^20.4.9",
"typescript": "^5.1.6",
"@vercel/ncc": "^0.36.1"
"@vercel/ncc": "^0.36.1",
"typedoc": "^0.24.8",
"typedoc-github-wiki-theme": "^1.1.0",
"typedoc-plugin-markdown": "^3.15.4",
"typescript": "^5.1.6"
}
}
13 changes: 13 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://typedoc.org/schema.json",
"entryPoints": [
"./src/*.ts"
],
"plugin": [
"typedoc-plugin-markdown",
"typedoc-github-wiki-theme"
],
"out": "./docs",
"name": "arciera/server",
"theme": "github-wiki",
}