Skip to main content

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

see sample a test.html result

image

test 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs-wavedrom-plugin-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distributions

mkdocs_wavedrom_plugin-0.1.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

mkdocs_wavedrom_plugin-0.1.1-py2-none-any.whl (9.1 kB view details)

Uploaded Python 2

File details

Details for the file mkdocs-wavedrom-plugin-0.1.1.tar.gz.

File metadata

  • Download URL: mkdocs-wavedrom-plugin-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for mkdocs-wavedrom-plugin-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2662f42b2282ab1ed01c1173be0b4d56683a4e813d813b1e7eca99954beb6dac
MD5 48b7819beac6b037a0997ae03e1a8de4
BLAKE2b-256 44f1bd7709fcc233b1f2aa6e998366886d24788385264e27b8e2de7790eb94c1

See more details on using hashes here.

File details

Details for the file mkdocs_wavedrom_plugin-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_wavedrom_plugin-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for mkdocs_wavedrom_plugin-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6fc5502c12a6367a52eba398af98f44d70cdfb271a4d181bda6b9f12d6426e2a
MD5 a11ff04d922929bcb1502811183c4c8b
BLAKE2b-256 3a32e0240559bcf9bf73c29f321ee5e7aee195a6a7503e1bb9939ce95042ccf0

See more details on using hashes here.

File details

Details for the file mkdocs_wavedrom_plugin-0.1.1-py2-none-any.whl.

File metadata

  • Download URL: mkdocs_wavedrom_plugin-0.1.1-py2-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for mkdocs_wavedrom_plugin-0.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 dc1ad1676314f07ab1cb988b265bc21f0a28b8590d72806dda395b580cb5e45e
MD5 1d47484ba78b89e0f96c424cde82fc3e
BLAKE2b-256 3d7b90e4cfbf22e06c43c991b11133e256222ebb755eca98eb7cd30a48a59faa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page