Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
add doc versions dropdown to navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusnewton committed Oct 3, 2021
1 parent bcf77ec commit 41d6575
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docusaurus/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ module.exports = {
label: "API",
position: "left",
},
{
type: "docsVersionDropdown",
position: "left",
},
{
href: "https://github.com/beehive-innovation/rain-protocol",
label: "GitHub",
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ let

docs-version = pkgs.writeShellScriptBin "docs-version" ''
docs-build && npm run docusaurus --prefix docusaurus docs:version ''${GIT_TAG}
# run again so docusaurus-search-local can index newly added version
# build again so docusaurus-search-local can index newly added version
npm run build --prefix docusaurus
'';

Expand Down

0 comments on commit 41d6575

Please sign in to comment.