Skip to content

Commit

Permalink
fix url path to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
krmanik committed Feb 2, 2024
1 parent 9504a2a commit 2b1eb5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:
env:
CARGO_TERM_COLOR: always
# Update the language picker in index.hbs to link new languages.
LANGUAGES: ar ja zh-CN
LANGUAGES: ar ja ru zh-CN

jobs:
publish:
Expand Down
6 changes: 3 additions & 3 deletions theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
</button>
<ul id="language-list" class="theme-popup" aria-label="Languages" role="menu">
<li role="none"><button role="menuitem" class="theme">
<a id="en" href="en/index.html">English</a>
<a id="en" href="/">English</a>
</button></li>
</ul>
<script>
Expand All @@ -202,9 +202,9 @@
let langLink = document.createElement("a");
langLink.setAttribute("id", lang);
if (lang == "en") {
langLink.href = `${full_path_to_root}${path}`;
langLink.href = `${full_path_to_root}`;
} else {
langLink.href = `${full_path_to_root}${lang}/${path}`;
langLink.href = `${full_path_to_root}/${lang}`;
}
langLink.textContent = book_lang[lang];
langButton.appendChild(langLink);
Expand Down

0 comments on commit 2b1eb5c

Please sign in to comment.