Skip to content

feat: support custom bundle entry - #799

Closed
AlexanderLanin wants to merge 2 commits into
eclipse-score:mainfrom
etas-contrib:pr/entry-doc-support
Closed

feat: support custom bundle entry#799
AlexanderLanin wants to merge 2 commits into
eclipse-score:mainfrom
etas-contrib:pr/entry-doc-support

Conversation

@AlexanderLanin

@AlexanderLanin AlexanderLanin commented Sep 3, 2026

Copy link
Copy Markdown
Member

Why this matters

The docs_bundle(entry_doc = ...) API can name a bundle entry page other than index, but generated Sphinx configurations still select index as master_doc. Such bundles cannot use the generated configuration path when their entry page has another name.

What changed

  • Add entry_doc to the generated-configuration rule.
  • Render it as Sphinx master_doc, retaining index as the default.
  • Keep user-provided conf.py files authoritative.

This PR is independent of the exporter and bundle-declaration changes. The later local-export layer consumes this generated configuration for source-bearing bundles.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

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

@AlexanderLanin
AlexanderLanin force-pushed the pr/entry-doc-support branch 2 times, most recently from 58b42aa to 2526b24 Compare September 3, 2026 06:39
@AlexanderLanin AlexanderLanin changed the title [PR2] Support custom generated bundle entry documents feat: support custom bundle entry Sep 3, 2026
@AlexanderLanin
AlexanderLanin requested a balanced review from Copilot September 3, 2026 06:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The public custom entry value is never passed to the generated configuration, so it remains fixed to index.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds Sphinx root-document configuration intended to support custom bundle entry pages.

Changes:

  • Adds entry_doc to generated configuration rules.
  • Renders entry_doc as Sphinx master_doc.
File summaries
File Description
docs.bzl Adds generated-config substitution and attribute.
default_conf.py.tpl Sets the generated Sphinx master_doc.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs.bzl Outdated
"project": attr.string(mandatory = True),
"project_url": attr.string(mandatory = True),
"required_in_id": attr.string(mandatory = True),
"entry_doc": attr.string(default = "index"),
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