Skip to content

[rules score] flatten HTML merge over transitive module closure - #398

Merged
castler merged 1 commit into
mainfrom
joho_fix_html_merge_diamond
Aug 5, 2026
Merged

[rules score] flatten HTML merge over transitive module closure#398
castler merged 1 commit into
mainfrom
joho_fix_html_merge_diamond

Conversation

@hoe-jo

@hoe-jo hoe-jo commented Aug 5, 2026

Copy link
Copy Markdown
Contributor
  • SphinxModuleInfo gains own_html_dir and transitive_modules which fixes a diamond-dependency bug: a module required via two or more dependency paths (e.g. A -> B, C; B -> D; C -> D)
  • sphinx_html_merge.py: dropped that nested-skip heuristic
  • Added module_d_lib test fixture: a diamond dep of both module_b_lib and module_c_lib, asserts its HTML lands exactly once, flat, in the real merged build output.

- SphinxModuleInfo gains own_html_dir and transitive_modules
  which fixes a  diamond-dependency bug: a module required via two
  or more dependency paths (e.g. A -> B, C; B -> D; C -> D)
- sphinx_html_merge.py: dropped that nested-skip heuristic
- Added module_d_lib test fixture: a diamond dep of both module_b_lib and
  module_c_lib, asserts its HTML lands exactly once, flat, in the real merged
  build output.
@castler
castler merged commit fa242cd into main Aug 5, 2026
14 checks passed
@castler
castler deleted the joho_fix_html_merge_diamond branch August 5, 2026 10:32
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