Skip to content

Allow assets through bazel - #1136

Merged
MaximilianSoerenPollak merged 5 commits into
eclipse-score:mainfrom
MaximilianSoerenPollak:MSP_930_assets_bazel
Dec 4, 2026
Merged

MaximilianSoerenPollak merged 5 commits into
eclipse-score:mainfrom
MaximilianSoerenPollak:MSP_930_assets_bazel

Conversation

@MaximilianSoerenPollak

Copy link
Copy Markdown
Contributor

Part 1 of 3 for #930. It replaces the Bazel part of #1133.

An entry in bundles can now name a plain file target (filegroup, genrule, a folder output such as Doxygen HTML). Its files are assets: a page can use them, but they never become pages.

This PR changes only the Bazel side:

  • DocsBundleInfo collects the assets. Mounted path = mount_at + path below the package folder of the target.
  • Assets go with their bundle into each parent, at each place where it is mounted.
  • The Sphinx actions get the assets as inputs. A bundle's own Needs build gets only its own assets.
  • :docs and :live_preview have generated assets in their runfiles.
  • The mount manifest lists the assets. _resolver.py reads them as AssetSpec.
  • Analysis stops on an invalid asset entry: attach_to/toctree_index set, file outside the package, two assets at the same path, executable target, .rst/.md below the bundle's source_dir.

Sphinx does not use the assets yet. This PR does not change a built site.

Next PRs:

  • 2/3: Sphinx finds assets (image, literalinclude, include, uml).
  • 3/3: the HTML build copies assets, so plain links work. The user docs are in this PR.

🚨 Impact Analysis

  • This change does not violate any tool requirements and is covered by existing tool requirements
  • This change does not violate any design decisions
  • Otherwise I have created a ticket for new tool qualification

✅ Checklist

  • Added/updated documentation for new or changed features (user docs come in 3/3)
  • Added/updated tests to cover the changes
  • Followed project coding standards and guidelines

🤖 PR Description Generated with Claude Code

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-1136: https://eclipse-score.github.io/docs-as-code/pr-1136/

@MaximilianSoerenPollak
MaximilianSoerenPollak merged commit 9dd01f7 into eclipse-score:main Dec 4, 2026
29 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants