Skip to content

Commit

Permalink
switch docs from jekyll to docsify III (version dropdown url fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
wellmann committed Aug 15, 2023
1 parent 016d830 commit dda3c66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Empty file added docs/_no-sidebar.md
Empty file.
10 changes: 4 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
<ul id="version-sub-menu"></ul>
</li>
<li>
<p><a href="#/changelog" title="Changelog">Changelog</a></p>
</li>
<li>
<p>&#9680;</p>
<p><a href="#/changelog/" title="Changelog">Changelog</a></p>
</li>
</ul>
</nav>
Expand Down Expand Up @@ -94,7 +91,8 @@
};
window.$docsify.homepage = 'https://raw.githubusercontent.com/' + window.$docsify.repo + '/master/README.md';
window.$docsify.alias = {
'/changelog': 'https://raw.githubusercontent.com/' + window.$docsify.repo + '/master/CHANGELOG.md',
'/changelog/': 'https://raw.githubusercontent.com/' + window.$docsify.repo + '/master/CHANGELOG.md',
'/changelog/_sidebar.md': '_no-sidebar.md',
'/1.0.(0|1)/_sidebar.md': '_sidebar-readme-only.md',
'/1.0.2/_sidebar.md': '_sidebar-102.md'
};
Expand All @@ -113,7 +111,7 @@
var versionSubMenu = document.getElementById('version-sub-menu');
tags.forEach(function (tag, index) {
var link = document.createElement('a');
link.setAttribute('href', (index > 0 ? '#/' + tag.name : '') + '/');
link.setAttribute('href', (index > 0 ? '#/' + tag.name : '') + '#/');
link.setAttribute('title', tag.name);
link.textContent = tag.name;
var listItem = document.createElement('li');
Expand Down

0 comments on commit dda3c66

Please sign in to comment.