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 Distribution

mkdocs-asyncapi-tag-plugin-0.3.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for mkdocs-asyncapi-tag-plugin-0.3.0.tar.gz
Algorithm Hash digest
SHA256 03f2ed125a6a4d4ec04ed108dea98ea74718abfca49739732d61c5eb928c6b0c
MD5 d7a57ee500d00cf0e1461530239796fe
BLAKE2b-256 2c88947a98f7ee543441fede5e1b0454814ca604ed383dbdf09de850d34b0c7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkdocs_asyncapi_tag_plugin-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4e7a3d94a119c5f8fec106704b74bb2e0eb17f3240d0c8e231455ab371f9db4
MD5 a18947276c83de792e175d2a977860f5
BLAKE2b-256 da44b26feeb16890237611dd9535d27a4d0877fb08f9739c6489f7ffe62d91d3

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