From 6e0a9a71a5b687ef52263cca3d64750b08bc63f9 Mon Sep 17 00:00:00 2001 From: David Hart Date: Wed, 20 Nov 2024 15:23:41 -0700 Subject: [PATCH] ci: ensure dev version has the version switcher --- .github/workflows/gh-pages.yml | 3 +++ docs/conf.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6fa99be..45eef91 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -85,6 +85,9 @@ jobs: mkdir docs/_build/doxyxml export SANSMIC_SPHINX_VERSION=dev + cp -f sansmic-ci/docs/_static/* docs/_static/ + cp html/_static/switcher.json docs/_static/ + cp -f sansmic-ci/docs/conf.py docs/conf.py sphinx-build -b html -d doctrees/latest docs/ html/latest for TAG in `git tag --list "v*.*.*" --sort=-version:refname` do diff --git a/docs/conf.py b/docs/conf.py index 03b205c..35e3c23 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -211,7 +211,7 @@ # -- Options for HTML output ------------------------------------------------- html_theme = "pydata_sphinx_theme" html_static_path = ["_static"] -html_title = "Sansmic" +html_title = "Sansmic" + " " + version html_js_files = [ "pypi-icon.js", ]