Skip to content

Commit

Permalink
Merge pull request #1485 from cewert/switch-jsdoc-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Nov 11, 2023
2 parents 109c4cb + 201a2ef commit 7084191
Show file tree
Hide file tree
Showing 4 changed files with 354 additions and 190 deletions.
8 changes: 4 additions & 4 deletions docs/api-docs-readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Welcome

Use the `Modules` dropdown or the search feature to find files and functions to inspect
Use the `Modules` dropdown or the search feature to find functions and files to inspect

## Known Issues

- BrighterScript namespaces:
- Duplicate function names will prevent the entire file from being parsed by JSDoc i.e. having `namespace.red.Delete()` and `namespace.blue.Delete()`
- When viewing source files:
- The syntax highlighter doesn't support BrightScript and will treat all source files as JavaScript.
- The page scrolls to the correct line number but it does not highlight the selected line.
- The line numbers listed for functions are incorrect.
- The syntax highlighter treats all source files as JavaScript.

61 changes: 42 additions & 19 deletions jsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,54 @@
},
"extendedConfig": {},
"opts": {
"encoding": "utf8",
"recurse": true,
"template": "node_modules/ink-docstrap/template",
"template": "node_modules/clean-jsdoc-theme",
"brighterscript-jsdocs-plugin": {
"addModule": true,
"escapeHTMLCharacters": false
},
"theme_opts": {
"default_theme": "fallback-dark",
"base_url": "https://jellyfin.github.io/jellyfin-roku/",
"title": "jellyfin-roku Code Documentation",
"homepageTitle": "jellyfin-roku Code Documentation",
"displayModuleHeader": true,
"menu": [
{
"title": "Jellyfin",
"link": "https://jellyfin.org/",
"target": "_blank",
"class": "external-link",
"id": "jellyfin-link"
},
{
"title": "GitHub",
"link": "https://github.com/jellyfin/jellyfin-roku",
"target": "_blank",
"class": "external-link",
"id": "github-link"
},
{
"title": "Forum",
"link": "https://forum.jellyfin.org/f-roku-development",
"target": "_blank",
"class": "external-link",
"id": "forum-link"
},
{
"title": "Matrix",
"link": "https://matrix.to/#/#jellyfin-dev-roku:matrix.org",
"target": "_blank",
"class": "external-link",
"id": "matrix-link"
}
],
"footer": "<span class=\"jsdoc-message\">Automatically generated using <a href=\"https://github.com/jsdoc/jsdoc\" target=\"_blank\">JSDoc</a> and the <a href=\"https://github.com/ankitskvmdam/clean-jsdoc-theme\" target=\"_blank\">clean-jsdoc-theme</a>.</span>"
}
},
"templates": {
"monospaceLinks": false,
"dateFormat": "MMM Do YYYY",
"outputSourceFiles": true,
"outputSourcePath": true,
"systemName": "jellyfin-roku api docs",
"footer": "<span class=\"jsdoc-message\">Source code: <a href=\"https://github.com/jellyfin/jellyfin-roku\">https://github.com/jellyfin/jellyfin-roku</a></span><span class=\"jsdoc-message\">Jellyfin Roku Development Forum: <a href=\"https://forum.jellyfin.org/f-roku-development\">https://forum.jellyfin.org/f-roku-development</a></span>",
"navType": "vertical",
"theme": "darkly",
"syntaxTheme": "dark",
"linenums": true,
"collapseSymbols": false,
"inverseNav": false,
"protocol": "html://",
"methodHeadingReturns": false
},
"markdown": {
"parser": "gfm",
"hardwrap": true
"hardwrap": false,
"idInHeadings": true
}
}
Loading

0 comments on commit 7084191

Please sign in to comment.