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.8.0-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_asyncapi_tag_plugin-0.8.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 | 64b4901dd6d688fda0c5999bc23ac1c6b31b0d37aaae3d97dae302c9703d293c |
|
MD5 | b8996e7f7289c945c4834a4cc66ab9cd |
|
BLAKE2b-256 | bdf776707cf4db79d6952503f6a8c63f02eb39ceb143e2fb442a463c81252c4f |