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
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
Usage
First set up a few meta sections:
<meta title="Main document" id="main" relates="['first', 'sub']"></meta>
# First title
<meta id="first"></meta>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nesciunt, atque.
## Subtitle
<meta id="sub"></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
Close
Hashes for foliantcontrib.metagraph-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45ebcc8804658ea579a3eab0e74aa73c8a866173c8673478ad32a07d37fb3fd6 |
|
MD5 | 2c2f9866f10943dd2da7d432ed1784a5 |
|
BLAKE2b-256 | b29411d96e2639f5ab32dbce772c5022b317e98cbbcadf05b32636bca55f0619 |
Close
Hashes for foliantcontrib.metagraph-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1407cf86275dff4865bc11fc86c5b899ca5964837e1726ad5ed801ac4e5a6f2 |
|
MD5 | db70c0a8d52aebaabf7cda86778c4ff3 |
|
BLAKE2b-256 | 19bf185c798fe7e341d0e567b221b7072ebfa76c48ed07fc8e9ae3ddb77d85a8 |