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 Dec 28, 2020
1 parent e24478e commit 848a29c
Show file tree
Hide file tree
Showing 4 changed files with 6,407 additions and 48 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 @@ -18,5 +18,10 @@ onDomReady(() => {
document.body.classList.add('js-enabled');
styleMenu.init();
detailsHelper.init();
quickJump.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 848a29c

Please sign in to comment.