Preprocessor which generates schemes from metadata
Project description
MetaGraph preprocessor for Foliant
Preprocessor generates Graphviz diagrams of meta sections in the project.
Installation
$ pip install foliantcontrib.metagraph
Config
preprocessors:
- metagraph:
natural: false
directed: false
draw_all: false
natural
: if true
— the graph is generated based on "natural" section structure: main sections are connected to the inner sections, which are connected to their child sections and so on. If false
— the connections are deretmined by the relates
meta section of each chapter. Default: false
directed
: If true
— draws a directed graph (with arrows). Default: false
draw_all
: If true
— draws all sections, except those which have meta field draw: false
. If false
— draws only sections which have meta field draw: true
. Default: false
Usage
First set up a few meta sections:
<meta title="Main document" id="main" relates="['first', 'sub']" draw="true"></meta>
# First title
<meta id="first" draw="true"></meta>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nesciunt, atque.
## Subtitle
<meta id="sub" draw="true"></meta>
Then add a metagraph
tag somewhere in the project:
<metagraph></metagraph>
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
Built Distribution
Hashes for foliantcontrib.metagraph-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ac74440d30d37b38fc3256174f8a5c3bc704217d53ec238e70346bc7a387d9e |
|
MD5 | 0a23523c7c1a8f512f24fb0fc748dc46 |
|
BLAKE2b-256 | 59e415b9b16578c56831a0c8b1b2331c0f70affaccd245c621d70a5b75501d5c |
Hashes for foliantcontrib.metagraph-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ed6262430ff49df1e7af61b7926e14623f0939ba563eb7567bba8186e9462ce |
|
MD5 | ca53140a77ab85f8f886e0d71074f989 |
|
BLAKE2b-256 | 8b4b0e45af89776599253fd5ae2d6a2bfd83311162c3dcbef6acf0ea2c53fc30 |