diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 1ae0c68..6e498cb 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -32,6 +32,12 @@ export default defineConfig({ }, themeConfig: { siteTitle: 'OpenMQTTGateway', + // @ts-expect-error custom fields consumed by index.md to render the dev-version banner + mode: meta.mode, + // @ts-expect-error + version: meta.version, + // @ts-expect-error + repo: meta.theme_config_repo, nav: commonNav, socialLinks: [ { icon: 'github', link: `https://github.com/${meta.theme_config_repo}` } diff --git a/docs/index.md b/docs/index.md index fb0c33a..930a45b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,12 +1,19 @@
Development Version
-This is the edge version of the documentation. It is under active development and may contain bugs, incomplete features, or breaking changes. Use it at your own risk.
+This is the edge version of the documentation, built from commit {{ version }}{{ version }}. It is under active development and may contain bugs, incomplete features, or breaking changes. Use it at your own risk.