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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92dbcac28fd7073491f04efb90e2364898b24e2a4170045d61c0efd14fb45e62 |
|
MD5 | db3be7dcf3a616758f775cbb0ffecfb3 |
|
BLAKE2b-256 | 6ebbfabbfada2d3b21420f8c1b39a752c33fa67d4333d90d45974b2d0b41bddf |
Hashes for foliantcontrib.metagraph-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0122642179eca4911294e58f4a29fe6805de4e817f503651ee96f14fc6ba556f |
|
MD5 | 523307e7c183dc5da9a58785c45a9d98 |
|
BLAKE2b-256 | 7a13b478af82934c4bf721578d1f164ac4ca1571ddc6d4b72f147b9f5e6eb0fa |