Skip to content

Conversation

@seagater
Copy link
Contributor

This PR fix the issue of generating docs when we take #724 into main branch.
Build docs for main branch separately.
Use HEAD request instead of GET to check if a page exist.
Filter out versions before v0.4.0 in generate_versions.py.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the documentation build system to support versioning, building on PR #724. It configures sphinx-multiversion to generate documentation for different versions and adds a version selector to the documentation website.

Changes:

  • Adds sphinx-multiversion dependency and configuration to build versioned documentation from git tags
  • Creates automated version generation script that syncs documentation versions with git tags
  • Updates build system to support both single-version (development) and multi-version (production) builds

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
docs/requirements.txt Adds sphinx-multiversion==0.2.4 dependency for multi-version documentation support
docs/generate_versions.py New Python script to auto-generate versions.js from git tags, filtering versions before v0.4.0
docs/conf.py Configures sphinx-multiversion extension and adds build hooks to copy version selector files
docs/_templates/layout.html New Jinja2 template adding version selector UI component to documentation sidebar
docs/_static/version-selector.js JavaScript implementing version selector with page existence checking using HEAD requests
docs/Makefile Adds multiversion build target and integrates version generation into build process
.gitignore Ignores auto-generated versions.js file
.github/workflows/gh-pages.yml Updates CI/CD to use multiversion build target for production deployments

seagater and others added 7 commits January 27, 2026 06:04
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… the duplicated version selector from layout.html
Copy link
Contributor

@Binyang2014 Binyang2014 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls also update the file: .github/workflows/doc-build.yaml

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.

3 participants