A MkDocs plugin to collate json schema files and convert them into markdown files
Project description
mkdocs schema reader plugin
This is a plugin that scans the specified directories and files for JSON Schema files, converts them to markdown and builds them into your documentation.
Setup
Install the plugin using pip:
pip install mkdocs-schema-reader
Activate the plugin in mkdocs.yml
:
plugins:
- search
- schema_reader
Then, specify folders and files that you want to include in mkdocs.yml
relative to it's location, like so:
plugins:
- search
- schema_reader:
include:
- "../JSONSchema/"
- "../example/directory/schema.json"
Specified directories will be scanned for schema json files, so consider specifying individual files for expansive directories.
Note: If you have no
plugins
entry in your config file yet, you'll likely also want to add thesearch
plugin. MkDocs enables it by default if there is noplugins
entry set, but now you have to enable it explicitly.
More information about plugins in the [MkDocs documentation][mkdocs-plugins].
Usage
Just activate the plugin, specify directories and files in the manner shown above, and it will operate when normal mkdocs commands are used like `mkdocs serve'
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 Distribution
Built Distribution
File details
Details for the file mkdocs_schema_reader-0.11.1.tar.gz
.
File metadata
- Download URL: mkdocs_schema_reader-0.11.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.6.1 requests/2.19.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65215f75ad5a3aefafc5d2f768f298a8075cce45991c185e1603ebdbf181786b |
|
MD5 | 0b811b8919c631d2af1e5c53a933ee40 |
|
BLAKE2b-256 | efffb961f2c812ab9efb4b899237a4a5e534a35379c34c4cd31df058d78e4282 |
File details
Details for the file mkdocs_schema_reader-0.11.1-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_schema_reader-0.11.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.6.1 requests/2.19.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fde138eabf855a65c1d58d16614b37757e5eba1de7b25753fc619d88f62a923c |
|
MD5 | 62ccee275ef3b5dfafa846a1de74d32a |
|
BLAKE2b-256 | 991304abff6854ff61655be4dbca293c47703a813097ebc00f14519faef4d192 |