From a10706541009caa94c4c64e7426651674698d4a1 Mon Sep 17 00:00:00 2001 From: ES-Alexander Date: Thu, 24 Jul 2025 23:17:44 +0800 Subject: [PATCH] add version selection --- config.toml | 3 +++ static/data.json | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 static/data.json diff --git a/config.toml b/config.toml index a4fbd7b..3601a2f 100644 --- a/config.toml +++ b/config.toml @@ -29,6 +29,9 @@ include_content = true # Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola highlight_code = true +[extra] +version_choices = "@/data.json" + [[extra.license]] name = "AGPLv3" url = "https://github.com/bluerobotics/Cockpit?tab=AGPL-3.0-3-ov-file" diff --git a/static/data.json b/static/data.json new file mode 100644 index 0000000..c2df9b7 --- /dev/null +++ b/static/data.json @@ -0,0 +1,4 @@ +[ + ["/docs/latest", "Latest", "dev"], + ["/docs/stable", "1.15.2 (stable)", "stable"] +]