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-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
Release history Release notifications | RSS feed
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.7.0-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_asyncapi_tag_plugin-0.7.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 138e94384c72a14626fc6ffef3c3e3edcd5e78ab2b5372ad37fd0b89a8aabe4e |
|
MD5 | 0f4f3943fa35c8977e94e178bbf66e5e |
|
BLAKE2b-256 | 87d4b8135ad72453f99482c9ae46c294dfdb89d77e500a4221d4d0aac9a12b2e |