Skip to content
Merged
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
8 changes: 8 additions & 0 deletions jsdoc.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const config = require("./jsdoc.json");

const canonicalUrl = process.env.READTHEDOCS_CANONICAL_URL;
if (canonicalUrl) {
config.opts.basePath = new URL(canonicalUrl).pathname;
}

module.exports = config;
45 changes: 21 additions & 24 deletions jsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,27 @@
"destination": "./_readthedocs/html",
"recurse": true,
"verbose": true,
"template": "node_modules/clean-jsdoc-theme",
"theme_opts": {
"add_scripts": "window.initCrowdIn('LizardByte-docs', null);",
"default_theme": "fallback-dark",
"favicon": "favicon.ico",
"include_css": ["./node_modules/@lizardbyte/shared-web/dist/crowdin-clean-jsdoc-css.css"],
"include_js": ["./node_modules/@lizardbyte/shared-web/dist/crowdin.js"],
"menu": [
{
"title": "Gamepad Tester",
"link": "https://app.lizardbyte.dev/gamepad-tester",
"target": "_blank",
"class": "",
"id": "jekyll-sample"
},
{
"title": "❤ Donate",
"link": "https://app.lizardbyte.dev",
"target": "_blank",
"class": "",
"id": "donate"
}
]
}
"template": "node_modules/clean-jsdoc-theme/dist",
"customJs": "window.initCrowdIn('LizardByte-docs', null);",
"customCssFile": ["./node_modules/@lizardbyte/shared-web/dist/crowdin-clean-jsdoc-css.css"],
"customJsFile": ["./node_modules/@lizardbyte/shared-web/dist/crowdin.js"],
"favicon": "./docs/static/favicon.ico",
"menu": [
{
"title": "Gamepad Tester",
"link": "https://app.lizardbyte.dev/gamepad-tester",
"target": "_blank",
"class": "",
"id": "jekyll-sample"
},
{
"title": "❤ Donate",
"link": "https://app.lizardbyte.dev",
"target": "_blank",
"class": "",
"id": "donate"
}
]
},
"markdown": {
"hardwrap": false,
Expand Down
Loading