Skip to content

feat: included sphinx mermaid python requirement#250

Open
Shubhangi-Nikam26 wants to merge 2 commits into
eclipse-score:mainfrom
Shubhangi-Nikam26:main
Open

feat: included sphinx mermaid python requirement#250
Shubhangi-Nikam26 wants to merge 2 commits into
eclipse-score:mainfrom
Shubhangi-Nikam26:main

Conversation

@Shubhangi-Nikam26

@Shubhangi-Nikam26 Shubhangi-Nikam26 commented Jun 4, 2026

Copy link
Copy Markdown

Summary
This PR makes Mermaid support configurable in rules_score and keeps it disabled by default, as requested for S-Core.
When Mermaid is not enabled, Sphinx does not load the Mermaid extension.
When Mermaid is enabled, the extension is loaded and available for docs that use Mermaid directives.

Problem
The documentation toolchain did not include Mermaid support in its Sphinx setup. As a result, builds failed when encountering mermaid directives because they were treated as unknown directives.

Changes
Added a new Bazel build setting: enable_mermaid (default False)
Updated Sphinx conf template generation to pass ENABLE_MERMAID from Bazel
Updated conf templates to append sphinxcontrib.mermaid only if ENABLE_MERMAID is true
Add sphinxcontrib-mermaid to the documentation Python requirements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant