Commit 852e930
committed
Fix documentation build system branch handling
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.1 parent 38fb045 commit 852e930
File tree
2 files changed
+19
-5
lines changed- .github/workflows
- python/sphinx_docs/docs
2 files changed
+19
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
27 | 37 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 38 | + | |
32 | 39 | | |
33 | | - | |
| 40 | + | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
| |||
0 commit comments