Skip to content

Add mike for versioned documentation#82

Merged
ssestak merged 1 commit intofeature/docs-sitefrom
feature/mike-versioned-docs
Feb 20, 2026
Merged

Add mike for versioned documentation#82
ssestak merged 1 commit intofeature/docs-sitefrom
feature/mike-versioned-docs

Conversation

@ssestak
Copy link
Contributor

@ssestak ssestak commented Feb 20, 2026

Summary

Replace mkdocs gh-deploy --force with mike deploy to support versioned documentation. Tag pushes publish docs under the tag name with a latest alias and root redirect, while main-branch pushes publish under main. The Material theme version selector dropdown is enabled automatically.

Changes

  • Add mike>=2.1 dependency
  • Enable extra.version.provider: mike in mkdocs.yml
  • Remove the sed step that injected version into site_name (mike handles version display via the selector widget)
  • Add requirements-docs.txt to workflow paths trigger

Diagram

View diagram
flowchart TD
    A[Push event] --> B{refs/tags/*?}
    B -- Yes --> C[version = tag name]
    C --> D[alias = latest]
    D --> E[mike deploy --push --update-aliases VERSION latest]
    E --> F[mike set-default --push latest]
    B -- No --> G[version = main]
    G --> H[mike deploy --push main]
    F --> I[gh-pages updated]
    H --> I
Loading

Replace mkdocs gh-deploy with mike deploy to support multiple doc
versions. Tag pushes publish under the tag name with a "latest" alias,
while main-branch pushes publish under "main". The Material theme
version selector is enabled via extra.version.provider.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ssestak ssestak force-pushed the feature/mike-versioned-docs branch from a98b77a to fa3701e Compare February 20, 2026 14:08
@ssestak ssestak merged commit 62a9d05 into feature/docs-site Feb 20, 2026
2 checks passed
@ssestak ssestak deleted the feature/mike-versioned-docs branch February 20, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant