[docs] Add menu w/ links to other pages on hf.co

This commit is contained in:
Julien Chaumond
2020-02-06 13:49:35 -05:00
committed by Lysandre Debut
parent c069932f5d
commit 432c12521e
2 changed files with 49 additions and 0 deletions

View File

@@ -58,6 +58,16 @@ function addGithubButton() {
document.querySelector(".wy-side-nav-search .icon-home").insertAdjacentHTML('afterend', div);
}
function addHfMenu() {
const div = `
<div class="menu">
<a href="/welcome">🔥 Sign in</a>
<a href="/models">🚀 Models</a>
</div>
`;
document.body.insertAdjacentHTML('afterbegin', div);
}
/*!
* github-buttons v2.2.10
* (c) 2019 なつき
@@ -74,6 +84,7 @@ function onLoad() {
addCustomFooter();
addGithubButton();
parseGithubButtons();
addHfMenu();
}
window.addEventListener("load", onLoad);