Skip to main content

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

Project description

mkdocs-asyncapi-plugin

This plugin helps to render AsycnAPI schema in your mkdocs markdown page. It uses AsyncAPI Standalone react component to render your asyncapi schema file. This plugin supports both .json and .yml files.

To install the plugin:

pip install mkdocs-asyncapi-plugin

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

    plugins:
        - asyncapi

To start using the tag to render your schema, simply use the tag:

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

Accepted values

In addition to the src attribute following attributes work with the 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

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

File metadata

File hashes

Hashes for mkdocs_asyncapi_tag_plugin-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b63df8b97244d6b6125f280222b70d5ad49bbcb583e36f785d81ae0d5b7c3e7
MD5 60f64bc203569a053bab728d15acae8e
BLAKE2b-256 fec084d9cade8692f8991ccee8ad332ba5dd2b6bd6edf3b2a1d167d104412e7a

See more details on using hashes here.

Supported by

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