Skip to content

Sphinx Versioning#61

Merged
sankalps0549 merged 12 commits into
mainfrom
shrivas/im-10457
Jan 19, 2026
Merged

Sphinx Versioning#61
sankalps0549 merged 12 commits into
mainfrom
shrivas/im-10457

Conversation

@sankalps0549
Copy link
Copy Markdown
Collaborator

Description

Add sphinx versioning to the main branch

Type of change

  • Enhancement

Checklist

  • I have read the CONTRIBUTING document
  • My code follows the style guidelines of this project
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the documentation accordingly
  • I have added a note to CHANGELOG.md describing my changes
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

sankalps0549 and others added 12 commits January 12, 2026 09:48
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Introduce Sphinx Versioning (#57)

* Sphinx Versioning

* Linking latest dir rather than copying

* Function signaturevariable name fixed

* source validaton for latest

* Try catch for git tags absence

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Lint and format issue solve

* lint fix

* Indentation fix

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Lint fix

* fetch tags in ci

* Readme fix

* Remove force

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…#60)

* Introduce Sphinx Versioning (#57)

* Sphinx Versioning

* Linking latest dir rather than copying

* Function signaturevariable name fixed

* source validaton for latest

* Try catch for git tags absence

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Lint and format issue solve

* lint fix

* Indentation fix

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Lint fix

* fetch tags in ci

* Readme fix

* Remove force

* Local build single version

* Redirect the root to latest

* Documentation update

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sankalps0549 sankalps0549 requested a review from Copilot January 18, 2026 22:22
@sankalps0549 sankalps0549 self-assigned this Jan 18, 2026
Copy link
Copy Markdown
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 adds Sphinx versioning capabilities to the documentation build system, enabling multi-version documentation with automatic version detection from git tags and a convenient redirect to the latest version.

Changes:

  • Added a --local flag to build single-version documentation for local development
  • Implemented root-level redirect from / to /latest/ documentation
  • Updated documentation and workflow configuration to support multi-version builds

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
run.py Added --local flag, create_root_redirect() function, and updated build_docs() to support local single-version builds
docs/source/readme.rst Added documentation for new --local flag, local viewing instructions, and versioned documentation features
README.md Updated with --local flag documentation, viewing instructions, and versioned documentation overview
.github/workflows/publish.yml Added fetch-depth: 0 and git fetch --tags to ensure all version tags are available for multi-version builds

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sankalps0549 sankalps0549 merged commit 844d148 into main Jan 19, 2026
21 checks passed
@sankalps0549 sankalps0549 deleted the shrivas/im-10457 branch January 19, 2026 07:49
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.

4 participants