Skip to content

Commit

Permalink
Merge pull request #321 from edgardmessias/typedoc
Browse files Browse the repository at this point in the history
docs: Added automated documentation
  • Loading branch information
edgardmessias authored Nov 16, 2020
2 parents 9085132 + 00e8d23 commit 9925982
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- name: Build NPM package
run: npm pack && mv venom-bot-*.tgz venom-bot-nightly.tgz

- name: Build API-Docs
run: npm run generate-api-docs

- name: Generate Changelog
id: generate_changelog
run: |
Expand Down Expand Up @@ -59,5 +62,6 @@ jobs:
prerelease: true
files: >
venom-bot-nightly.tgz
api-docs/
gzip: folders
allow_override: true
11 changes: 11 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,14 @@ jobs:
body: ${{ steps.generate_changelog.outputs.changelog }}
draft: false
prerelease: false

- name: Build API-Docs
run: npm run generate-api-docs
continue-on-error: true

- name: Deploy API-Docs
uses: peaceiris/actions-gh-pages@v3
continue-on-error: true
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./api-docs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
*.tgz
006.png
api-docs
app.js
app.ts
app2.js
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.*
*.tgz
api-docs
app.js
app.ts
app2.js
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s",
"clean": "rimraf session dist",
"commit": "cz",
"generate-api-docs": "typedoc",
"lint": "npx eslint -c .eslintrc.js --ext .ts src",
"prepublish": "npm run clean && npm run build",
"release": "release-it",
Expand Down Expand Up @@ -84,7 +85,7 @@
"release-it": "^14.2.0",
"rimraf": "^3.0.2",
"ts-loader": "^8.0.9",
"typedoc": "^0.19.2",
"typedoc": "^0.20.0-beta.8",
"typescript": "^4.0.5",
"webpack": "^4.44.2",
"webpack-cli": "^4.1.0"
Expand Down
9 changes: 9 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"disableSources": true,
"entryPoints": "src/index.ts",
"excludeExternals": true,
"excludePrivate": true,
"includeVersion": true,
"out": "api-docs",
"theme": "default"
}

0 comments on commit 9925982

Please sign in to comment.