Skip to main content

MkDocs plugin to embed AsyncAPI HTML viewer in your markdown file.

Project description

mkdocs-asyncapi-plugin

The mkdocs-asyncapi-tag-plugin helps render AsyncAPI schemas in your MkDocs markdown pages. It uses the AsyncAPI Standalone React component to render your AsyncAPI schema files. This plugin supports both .json and .yml files.

Installation

To install the plugin, run:

pip install mkdocs-asyncapi-tag-plugin

Then, include the plugin in the plugins property of your mkdocs.yml file:

    plugins:
        - asyncapi-tag

Usage

To render your schema, use the in your markdown files:

    <asyncapi-tag src="/path/to/schema.json"/>

Accepted values

In addition to the src attribute, the following attributes can be used with the <asyncapi-tag>:

Action Attribute Accepted values
Show or hide sidebar true or false
Show or hide info true or false
Show or hide servers true or false
Show or hide operations true or false
Show or hide messages true or false
Show or hide schemas true or false
Show or hide errors true or false
expand or collapse messageExamples true or false
sidebar configuration showServers byDefault or bySpecTags or byServersTags
sidebar configuration showOperations byDefault or bySpecTags or byServersTags
asyncapi parser configuration parserOptions See available options here
label customization publishLabel Any string value
label customization subscribeLabel Any string value

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-asyncapi-tag-plugin-0.9.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

mkdocs_asyncapi_tag_plugin-0.9.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs-asyncapi-tag-plugin-0.9.0.tar.gz.

File metadata

File hashes

Hashes for mkdocs-asyncapi-tag-plugin-0.9.0.tar.gz
Algorithm Hash digest
SHA256 804690c4552791ba16b2143631e911ab8db56248c41b0510a8719f3f362a3303
MD5 6a4aa6f7cca08d75b9a14b7c50cd6b06
BLAKE2b-256 6e5e571cafc404947e07162d5a3e2d02a32b2b59c9204af9089db4dc2d2e14fd

See more details on using hashes here.

File details

Details for the file mkdocs_asyncapi_tag_plugin-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_asyncapi_tag_plugin-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 986fb514ba345d0f65a0ceccd72189796feb076076140d36509903383c1dbc99
MD5 33ac8c37481ce2dfe16ae52802337b64
BLAKE2b-256 20933f2d24b67c6ab4f3d1ae3e13e90a13021490c1259f092fddc654c12fb63c

See more details on using hashes here.

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