Skip to content

Conversation

@hakonhagland
Copy link
Collaborator

Fixes how the documentation build system handles different branch types during sphinx-versioned multi-version builds.

The previous logic incorrectly assumed only the master branch should use downloaded files, causing development branches to fail when looking for non-existent committed files. Now all non-release branches correctly use the downloaded master JSON files.

This commit fixes how the documentation build system handles different branch types
during sphinx-versioned multi-version builds.

Changes:
1. conf.py: Fixed branch detection logic to properly distinguish between release
   branches (which have committed JSON snapshots) and all other branches (which
   use downloaded master JSON files). Also removed unused 'release' variable.

2. python_sphinx_docs.yml: Added comprehensive documentation explaining why JSON
   files are downloaded to master-tmp/ directory and how this supports multi-version
   documentation builds.

The previous logic incorrectly assumed only the master branch should use downloaded
files, causing development branches to fail when looking for non-existent committed
files. Now all non-release branches correctly use the downloaded master JSON files.
Copy link
Member

@blattms blattms left a comment

Choose a reason for hiding this comment

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

I don't really know what I am doing 😬, but it looks good.

@blattms blattms merged commit 878e1f3 into OPM:master Nov 25, 2025
6 checks passed
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.

2 participants