Skip to content

Commit

Permalink
feat: add versioning vitepress plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jarinox authored and Jakob Stolze committed Apr 10, 2024
1 parent d414aff commit a008c8e
Show file tree
Hide file tree
Showing 4 changed files with 231 additions and 94 deletions.
11 changes: 9 additions & 2 deletions .vitepress/config.mts
@@ -1,7 +1,8 @@
import { defineConfig } from 'vitepress'
import defineVersionedConfig from 'vitepress-versioning-plugin';

// https://vitepress.dev/reference/site-config
export default defineConfig({
export default defineVersionedConfig(__dirname, {
ignoreDeadLinks: true,
title: "openrouteservice-py",
description: "🐍 The Python API to consume openrouteservice(s) painlessly! ",
Expand Down Expand Up @@ -63,5 +64,11 @@ export default defineConfig({
{ icon: 'github', link: 'https://github.com/GIScience/openrouteservice-py' },
{ icon: 'x', link: 'https://twitter.com/ors_news' }
]
}
},
versioning: {
latestVersion: "7.1.0.post6",
switcher: {
includeLatestVersion: true,
},
},
})

0 comments on commit a008c8e

Please sign in to comment.