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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | decd6828f71a349e1414a6bb03a255ab8ef242578a1658d1705d776136bc08e1 |
|
MD5 | d342634b4c731adfa6982bbc32043c2f |
|
BLAKE2b-256 | 833e3ceda16ae031c2ef959a3bdf545193591bc59d77c21775d539c855e3bf1e |
Hashes for foliantcontrib.metagraph-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ad7b1a10ad74292e0eade13535c3c9ae97cacde1f6928cbc66a1db80557d318 |
|
MD5 | dd02e3b820281768a3fb12f9440421ec |
|
BLAKE2b-256 | 403e59b2e00e360941f31de9dd58149b08655d3bf21b7ef9bca99efa687447dc |