Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
Use base url option for doc-index.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Jan 23, 2021
1 parent 7fae79e commit b009fdc
Show file tree
Hide file tree
Showing 4 changed files with 6,315 additions and 35 deletions.
2 changes: 1 addition & 1 deletion haddock-api/resources/html/haddock-bundle.min.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion haddock-api/resources/html/js-src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ function onDomReady(callback: () => void) {
onDomReady(() => {
document.body.classList.add('js-enabled');
styleMenu.init();
quickJump.init();
detailsHelper.init();
let head = document.getElementById('head');
let baseURL = ".";
if (head !== null) {
baseURL = head.getAttribute('data-base-url') || '.';
}
quickJump.init(baseURL);
});
Loading

0 comments on commit b009fdc

Please sign in to comment.