Skip to main content

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

Project description

mkdocs-asyncapi-plugin

The mkdocs-asyncapi-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

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 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.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_asyncapi_tag_plugin-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6846cc582568b4d0b250121dc009d44770b2f5108287ee5cec479587cc96bb51
MD5 ce9a180ee67926a66152ff688adcf83f
BLAKE2b-256 556b34ac58f1d17bb185d574a582cd1f5d8d5061659bf6e8a500f89bd11de27c

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