Skip to content

ci(docs): use the shared header and version selector - #13

Merged
fpistm merged 1 commit into
stm32duino:mainfrom
fpistm:ci/shared-docs-assets
Dec 1, 2026
Merged

fpistm merged 1 commit into
stm32duino:mainfrom
fpistm:ci/shared-docs-assets

Conversation

@fpistm

@fpistm fpistm commented Dec 1, 2026

Copy link
Copy Markdown
Member

Summary

html-header.html and version-selector.js are now provided by the stm32duino/actions library-docs-setup action (stm32duino/actions#1, merged). The reusable workflows add HTML_HEADER and HTML_EXTRA_FILES to the Doxyfile at build time, so the library no longer needs:

  • docs/html-header.html
  • docs/version-selector.js
  • the HTML_HEADER and HTML_EXTRA_FILES tags in the Doxyfile

A local doxygen Doxyfile still works and uses the default Doxygen header (no version selector).

Testing

Before the change, with the new CI command (cat Doxyfile + appended tags piped to doxygen -) and mkdocs build --strict: success, with the version selector markup and version-selector.js in site/. The Documentation build check of this pull request runs the merged workflow.

html-header.html and version-selector.js are now provided by the
stm32duino/actions library-docs-setup action (stm32duino/actions#1).
The workflows append HTML_HEADER and HTML_EXTRA_FILES to the Doxyfile,
so remove the two files and the two tags. A local doxygen run uses the
default Doxygen header.

Merging before the action is updated only hides the version selector.

Assisted-by: GitHub Copilot: claude-sonnet-5.5
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm fpistm added enhancement New feature or request documentation 📚 Improvements or additions to documentation labels Dec 1, 2026
@fpistm
fpistm merged commit 60e2a79 into stm32duino:main Dec 1, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in STM32duino libraries Dec 1, 2026
fpistm added a commit to stm32duino/actions that referenced this pull request Dec 2, 2026
The shared header was based on an older Doxygen template with the
side navigation and title area hard-coded. Doxygen 1.15, installed on
ubuntu-latest (26.04), only emits them within the FULL_SIDEBAR and
TITLEAREA conditionals, which left the generated pages unrendered.

Regenerate the header from the Doxygen 1.15.0 default template and
re-apply the STM32duino additions: documentation home link, version
selector and its styles. The link and selector are kept outside the
TITLEAREA conditional so they are always generated. Also keep the
selector hidden until version-selector.js has loaded the versions.

Tested by building the HTS221 documentation with Doxygen 1.15.0.

Refs: #1
Refs: stm32duino/HTS221#13
Assisted-by: GitHub Copilot: claude-sonnet-5.5
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation 📚 Improvements or additions to documentation enhancement New feature or request

Projects

Development

Successfully merging this pull request may close these issues.

1 participant