Docums plugin to directly insert tables from files into markdown.
Project description
mkdocs-table-reader-plugin
MkDocs plugin that adds a {{ read_csv('table.csv') }}
markdown tag to directly insert CSV files as a table into a page.
For a workflow with other plugins see the blogpost building reproducible reports with MkDocs
Installation
Install the plugin using pip3
:
pip3 install mkdocs-table-reader-plugin
Next, add the following lines to your mkdocs.yml
:
plugins:
- search
- table-reader
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.
Usage
In your markdown documents you can now use:
{{ read_csv('path_to_table.csv') }}
Where the path is relative to the location of your project's mkdocs.yml
file.
Documentation
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
File details
Details for the file docums-table-reader-plugin-1.0.0.tar.gz
.
File metadata
- Download URL: docums-table-reader-plugin-1.0.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23ad9aa140a672f9418cd7017c4013c9b69a32d9f52bdf0b56c165f1fc1a8bae |
|
MD5 | cabfe12271d663029103a6c552fcf242 |
|
BLAKE2b-256 | 24df1b49d0ac9850b59201033c8faa7b567d1364c31360d52cc22e22c3261431 |