Skip to main content

MkDocs Plugin that automatically generates pages for Ansible Collections.

Project description

MkDocs Ansible Collection

MkDocs Plugin that automatically generates documentation pages for Ansible Collections. Check out the showcase over on the project's documentation page and more detailed User and Developer guides!

Quick Start

  1. Add the mkdocs-ansible-collection Python package to your project's docs dependencies. It will also install ansible-core to manage collections and get the required metadata.

    pip install mkdocs-ansible-collection
    
  2. Install any needed collection(s) using ansible-galaxy collection install example.collection or point ansible at the correct collection path.

  3. Enable the plugin in your project's mkdocs.yaml file:

    plugins:
      - "ansible-collection":
          collections:
            - fqcn: "example.collection"
    
  4. Add an anchor page to the nav section of your project's mkdocs.yaml file:

    nav:
      # The anchor is named after the Collection FQCN and it tells mkdocs where
      # to generate the documentation tree. The following examples show all of
      # the currently supported combinations:
      - "Example Collection": "example.collection" # With an explicit page name
      - "Nested Under Another Page":
        - "example.collection" # Without a custom page name
    

For more details, check out the User Guide and look at the live example of this project's docs, which showcase how to build and host collection docs on the awesome Read the Docs service!

Contributions

Contributions of all sorts (bug reports, features, documentation etc.) are welcome! Any larger change, please open a new issue to discuss it first.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_ansible_collection-1.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_ansible_collection-1.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_ansible_collection-1.1.0.tar.gz.

File metadata

File hashes

Hashes for mkdocs_ansible_collection-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6039ad1543e059ca60a297b003fc51958173b126d627839be4e831b235639d40
MD5 5df240192ae02724994d483aa3139fea
BLAKE2b-256 97c75beca7287045e119635b88135d13a361db9d620dd90f3ab2e686b2749e7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_ansible_collection-1.1.0.tar.gz:

Publisher: release.yaml on cmsirbu/mkdocs-ansible-collection

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkdocs_ansible_collection-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_ansible_collection-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfed3a36ecab79070d3efb8a4cbddd92c09da5f0c50c9fdfed3d77427b8506e1
MD5 02b0bd7b9ac3a0b6df02f0709274f963
BLAKE2b-256 4d73b6f5fcd805e4042823d7fb00453c6c9add5f292c3cebd30be19e7dc5cf2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_ansible_collection-1.1.0-py3-none-any.whl:

Publisher: release.yaml on cmsirbu/mkdocs-ansible-collection

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page