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
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
Built Distribution
File details
Details for the file mkdocs_asyncapi_tag_plugin-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_asyncapi_tag_plugin-0.5.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 | 5ac28247c1cf1645a0072bd75046a91dc74a72b51f028af089a324631ba8b319 |
|
MD5 | 6a9b493b6327f708b3fe0381664a6739 |
|
BLAKE2b-256 | 8c6c39597b4960ee35f932e73c0daa4fc4607d0d12709f576b91991f966ae117 |