Skip to content

docs: overhaul documentation - #166

Open
hyperfinitism wants to merge 1 commit into
virtee:mainfrom
hyperfinitism:docs/clap-mangen
Open

hyperfinitism wants to merge 1 commit into
virtee:mainfrom
hyperfinitism:docs/clap-mangen

Conversation

@hyperfinitism

@hyperfinitism hyperfinitism commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

This pull request adds functionality to automatically generate man pages using clap_mangen. By treating the source code (clap attributes) as the single source of truth (SSOT), this prevents discrepancies between the documentation and the codebase.

The README.md file is now generated from the Rustdoc comments of main.rs using cargo-rdme. This approach has been adopted by the upstream sev crate. The detailed steps for attestation have been moved to docs/attestation.md.

The docs.yml workflow is added to check the documentation.

Closes #152. Supersedes #139 and #151.

@hyperfinitism
hyperfinitism force-pushed the docs/clap-mangen branch 2 times, most recently from f5c3df8 to c6df776 Compare November 21, 2026 14:25
This commit adds functionality to automatically generate man pages using
clap_mangen. By treating the source code (clap attributes) as the single
source of truth (SSOT), this prevents discrepancies between the
documentation and the codebase.

Furthermore, the README.md file is now generated from the Rustdoc comments
of main.rs using cargo-rdme.

The detailed steps for attestation have been moved to docs/attestation.md.

The clap_mangen+xtask is adapted from hyperfinitism/rust-tpm2-cli
(originally developed by the author of this commit), licensed under
Apache-2.0.

Signed-off-by: Takuma IMAMURA <209989118+hyperfinitism@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: define a single-source-of-truth strategy for CLI documentation

1 participant