A MkDocs plugin for support wavedrom charts in markdown file
Project description
This is a mkdocs plugin, this could enable the wavedrom charts in the markdown file.Please follow the 'how to' section in reame to enable this plugin
mkdocs-wavedrom-plugin
A MkDocs plugin,
render waveform charts in the wavedrom style.
Installation
Install this package with pip.
from PyPi
pip install mkdocs-wavedrom-plugin
from github
pip install git+https://github.com/kuri65536/mkdocs-mkdocs-plugin
How to use
More information about plugins in the MkDocs documentation
write markdown/wavedrom code
embed your wavedrom code in markdown documents.
```wavedrom { signal: [{ name: 'Alfa', wave: '01.zx=ud.23.45' }] } ```
or see a sample markdown for the sample.
setup mkdocs.yml
change mkdocs.yml to use this plugin.
site_name: test
plugins:
- markdownwavedrom
extra_javascript:
# - wavedrom.unpkg.js
# - skin-default.js
# above, place *.js in docs directory, or below from internet.
- https://cdn.jsdelivr.net/npm/wavedrom@2.1.2/wavedrom.unpkg.js
- https://wavedrom.com/skins/default.js
Demo
image
from local
$ python -m venv env
$ ./env/bin/python setup.py install
$ ./env/bin/mkdocs build
$ ./env/bin/mkdocs serve &
$ browse http://localhost:8000/test/index.html
or make build
and browse site/test/index.html
, if you have make binary.
(optional) download wavedrom
to download javascript files to local
$ make download
Thanks
a lot part of this plugin
were came from mkdocs-mermaid-plugin
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 Distributions
Hashes for mkdocs-wavedrom-plugin-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2662f42b2282ab1ed01c1173be0b4d56683a4e813d813b1e7eca99954beb6dac |
|
MD5 | 48b7819beac6b037a0997ae03e1a8de4 |
|
BLAKE2b-256 | 44f1bd7709fcc233b1f2aa6e998366886d24788385264e27b8e2de7790eb94c1 |
Hashes for mkdocs_wavedrom_plugin-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fc5502c12a6367a52eba398af98f44d70cdfb271a4d181bda6b9f12d6426e2a |
|
MD5 | a11ff04d922929bcb1502811183c4c8b |
|
BLAKE2b-256 | 3a32e0240559bcf9bf73c29f321ee5e7aee195a6a7503e1bb9939ce95042ccf0 |
Hashes for mkdocs_wavedrom_plugin-0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc1ad1676314f07ab1cb988b265bc21f0a28b8590d72806dda395b580cb5e45e |
|
MD5 | 1d47484ba78b89e0f96c424cde82fc3e |
|
BLAKE2b-256 | 3d7b90e4cfbf22e06c43c991b11133e256222ebb755eca98eb7cd30a48a59faa |