Skip to content

Commit

Permalink
[web][doc] Update github-pages workflow and others
Browse files Browse the repository at this point in the history
To keep the autogenerated content accessible from doc/index.html.
  • Loading branch information
dgdavid committed Jan 8, 2024
1 parent a02f833 commit a829174
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
- name: Install NPM packages
run: cd web && npm ci

- name: Build the JSDoc documentation
run: cd web && npm run jsdoc && mv jsdoc.out ../doc/dist/jsdoc
- name: Build Web UI documentation
run: cd web && npm run typedoc && mv typedoc.out/ ../doc/dist/web-ui

- name: Setup Pages
uses: actions/configure-pages@v3
Expand Down
8 changes: 7 additions & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
<body>
<ul>
<li><a href="dbus/">D-Bus API</a></li>
<li><a href="jsdoc/">Web Fronted Documentation</a></li>
<li>
Web UI
<ul>
<li><a href="web-ui/client/">Client</a></li>
<li><a href="web-ui/components/">Components</a></li>
</ul>
</li>
</ul>
</body>

Expand Down
2 changes: 1 addition & 1 deletion web/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ test/images/
POTFILES*
tmp/
/po/LINGUAS
/jsdoc.out/
/typedoc.out/
/docs/
4 changes: 2 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"stylelint:fix": "stylelint --fix 'src/**/*.{css,scss}'",
"check-types": "tsc --skipLibCheck",
"typedoc": "npm run typedoc:client && npm run typedoc:components",
"typedoc:client": "npx typedoc --entryPoints src/client --out jsdoc.out/client",
"typedoc:components": "npx typedoc --entryPoints src/components --out jsdoc.out/components",
"typedoc:client": "npx typedoc --entryPoints src/client --out typedoc.out/client",
"typedoc:components": "npx typedoc --entryPoints src/components --out typedoc.out/components",
"test": "jest"
},
"engines": {
Expand Down

0 comments on commit a829174

Please sign in to comment.