Skip to content

Commit

Permalink
Merge pull request #1603 from rundeck/version-picker
Browse files Browse the repository at this point in the history
Adds a Version Selector to Navbar
  • Loading branch information
fdevans authored Dec 17, 2024
2 parents b10a030 + f8ff5b3 commit 45d91e0
Show file tree
Hide file tree
Showing 7 changed files with 306 additions and 115 deletions.
18 changes: 18 additions & 0 deletions docs/.vuepress/components/CustomNavBar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<template>
<Navbar>
<template #endBefore>
<div class="vp-nav-links">
<NavbarDropdown :config="links"></NavbarDropdown>
</div>
</template>
</Navbar>

</template>

<script setup lang="ts">
import Navbar from "vuepress-theme-hope/modules/navbar/components/Navbar.js";
import NavbarDropdown from "vuepress-theme-hope/modules/navbar/components/NavbarDropdown.js";
import previousVersions from '../navbar-menus/previous-versions'
const links = { text: "Archive", children: previousVersions}
</script>
102 changes: 0 additions & 102 deletions docs/.vuepress/components/DocVersions.vue

This file was deleted.

2 changes: 1 addition & 1 deletion docs/.vuepress/components/SidebarAnnounce.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<p>
<b>Process Automation On Prem</b> is now <b>Runbook Automation Self-Hosted</b>
</p>
</div>
</div>
</template>
</AnnounceBox>
</template>
Expand Down
4 changes: 4 additions & 0 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ export default defineUserConfig({
__dirname,
"./components/notFoundCustom.vue",
),
"@theme-hope/modules/navbar/components/Navbar": path.resolve(
__dirname,
"./components/CustomNavBar.vue",
),
},
//Plugins Config
plugins: [
Expand Down
Loading

0 comments on commit 45d91e0

Please sign in to comment.