Repository navigation
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Richard Megginson <richm@stanfordalumni.org>
|
CI tests do not run automatically on pull requests. A role repository See GitHub CI testing using /citest Run every available CI workflow: Run the linting and other lightweight checks: Run the integration tests (QEMU/container and Testing Farm): Run one or more selected workflows by separating their names with spaces:
Post another |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…cs.yml This is a DRAFT PREVIEW of a new documentation format for the role, not a final change. The role's README is generated from the native meta/argument_specs.yml with the standard antsibull-docs + Sphinx pipeline, making the argument spec the single source of truth and replacing the hand-written README.md. Building on the argument spec added in this branch (PR linux-system-roles#913), meta/argument_specs.yml is filled out with the native fields antsibull renders: short_description and description (Synopsis), options (Parameters), attributes (Attributes), notes, author, and examples. Backtick text is converted to Ansible semantic markup (C/V/O/L/B), and the prose is written to technical-documentation standards without changing meaning. The build pipeline (.build_docs.sh) stages the role into a temporary collection, runs antsibull-docs to produce RST, renders it with Sphinx to HTML, and converts that HTML to Markdown with .html_to_md.py. It regenerates: - README.md the role's main README (Markdown; shown on GitHub and Galaxy) - README.html symlink to the styled page in sphinx_html/ - sphinx_html/ the Sphinx HTML site (preview only; fonts trimmed to the FontAwesome icon font, ~0.95MB) All content from the previous README.md is preserved. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
5b6d870 to
5e8184a
Compare
Note
Draft preview of a new documentation format — not a final change.
This stacks on top of #913 (the argument spec), so the diff here includes
those commits. Review only the docs commit (
docs: draft preview ...).Generate the role's documentation from the native
meta/argument_specs.ymlusing an antsibull-docs + Sphinx pipeline, making the argument spec the single
source of truth with no hand-maintained README templates or markup to keep in
sync.
meta/argument_specs.ymlcarries the full page using only the native fieldsantsibull renders:
short_descriptionand adescriptionlist (Synopsis),options(Parameters), custom platform/architecturesattributes(Attributes),
notes,examples, andauthor. Backtick text was convertedto Ansible semantic markup:
C(),V(),O(),B(),L(). The prose iswritten to technical-documentation standards: active voice, concise, and
unambiguous.
Build pipeline (
.build_docs.sh)Stages the role into a temporary
fedora.linux_system_rolescollection, runsantsibull-docs to produce RST, renders it with Sphinx to HTML, then converts
that HTML to Markdown. It creates, at the repo root:
README.mdthe role's main README — read directly as plain text inthe repo and rendered by Markdown viewers (GitHub, Ansible
Galaxy, Red Hat Automation Hub, which display role docs only
as Markdown)
README.htmlsymlink to the styled page insphinx_html/sphinx_html/the Sphinx HTML site plus its_staticassetsREADME.mdis produced from the Sphinx HTML by.html_to_md.py(antsibull hasno Markdown output). The prose is a pandoc HTML → GFM conversion; the Parameters
and Attributes tables are rebuilt as real Markdown pipe tables, with option
nesting encoded as bullet markers (Galaxy strips the CSS classes antsibull uses
for indentation) and columns space-aligned so the table reads well as plain
text.
The HTML output (
README.html+sphinx_html/) is included only to previewthe styled page in this draft. The bundled fonts are trimmed to just the
FontAwesome icon font (~0.95MB total), which has no system fallback; the RTD
theme's text fonts fall back to the system sans-serif and are dropped. Long
term the full styled site would be built once for the whole collection, not per
role, to keep each role repo small.
🤖 Generated with Claude Code