Skip to content

Commit

Permalink
Improve generated doc site styling
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Hinek <[email protected]>
  • Loading branch information
frankhinek committed Apr 23, 2023
1 parent 6a10393 commit 0e79bbe
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 24 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docs-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,17 @@ jobs:
node-version: 18

- name: Install dependencies
run: |
run: |
npm ci
npm i jsdoc
npm i clean-jsdoc-theme
- name: Generate documentation
run: npx jsdoc -c jsdoc.json
run: |
echo "# Web5 JS SDK" > README-docs.md
echo "Select from the menu on the left to view API reference documentation." >> README-docs.md
npx jsdoc -c jsdoc.json
curl -o docs/favicon.ico https://developer.tbd.website/img/favicon.ico
- name: Upload documentation artifacts
uses: actions/upload-artifact@v3
Expand Down
46 changes: 24 additions & 22 deletions jsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,39 @@
"opts": {
"encoding": "utf8",
"destination": "./docs/",
"readme": "README-docs.md",
"recurse": true,
"template": "node_modules/clean-jsdoc-theme"
"template": "node_modules/clean-jsdoc-theme",
"theme_opts": {
"base_url": "https://tbd54566975.github.io/web5-js/",
"default_theme": "dark",
"favicon": "favicon.ico",
"homepageTitle": "Web5 JS API Reference",
"menu": [
{
"title": "GitHub",
"link": "https://github.com/TBD54566975/web5-js",
"target": "_blank"
}
],
"search": true,
"title": "API Reference"
}
},
"plugins": [],
"recurseDepth": 10,
"source": {
"include": ["src"],
"includePattern": ".+\\.js(doc|x)?$",
"excludePattern": "(^|\\/|\\\\)_"
"include": ["src"],
"includePattern": ".+\\.js(doc|x)?$",
"excludePattern": "(^|\\/|\\\\)_"
},
"sourceType": "module",
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc","closure"]
"allowUnknownTags": true,
"dictionaries": ["jsdoc","closure"]
},
"templates": {
"cleverLinks": false,
"monospaceLinks": false
},
"theme_opts": {
"base_url": "https://tbd54566975.github.io/web5-js/",
"default_theme": "dark",
"homepageTitle": "API Reference",
"menu": [
{
"title": "GitHub",
"link": "https://github.com/TBD54566975/web5-js",
"target": "_blank"
}
],
"search": true,
"title": "Web5 JS SDK"
"cleverLinks": false,
"monospaceLinks": false
}
}

0 comments on commit 0e79bbe

Please sign in to comment.