Skip to content

Repository files navigation

mkdocstrings-github

A GitHub Actions handler for mkdocstrings.

Qualifydocumentationpypi versioncodecov

For example, the following page is generated from actions/checkout:

Fallback image description

You can install the GitHub handler by specifying it as a dependency:

# PEP 621 dependencies declaration# adapt to your dependencies manager
[project]
dependencies = [
"mkdocstrings-github",
]

after which the generated documentation can be inserted in the markdown page with:

::: <path-to-action-or-workflow>
handler: github

Features

  • ๐Ÿ“ Automatic Example Signature: Displays an example call signature alongside the description. The version shown can be the latest release, latest major, current reference, or any custom string.
  • โœจ Enhanced Markdown Descriptions: All description elements are parsed using a markdown parser, enabling comprehensive formatting and rich documentation capabilities.
  • ๐Ÿงฉ Individual Parameter Hyperlinks: Each action or workflow parameterโ€”including inputs, outputs, and secretsโ€”receives a unique HTML id, facilitating direct linking to specific parameter documentation.
  • ๐Ÿ”’ Automated Permission Aggregation: For reusable workflows, if permissions are specified at the job level rather than the workflow level, the required final permissions are automatically determined and displayed in the signature.
  • ๐Ÿ”— Parameter cross-linking: Link to other parameters of the action or workflow via a simple Markdown syntax.
  • ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ Parameter grouping: Organize related inputs, outputs, and secrets into visual groups using inline YAML comments for clearer documentation structure.

About

๐Ÿ“˜ A GitHub Action handler for mkdocstrings, automatic documentation from sources

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages