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>
Metadata
Release files for foliantcontrib.metagraph 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| foliantcontrib.metagraph-0.1.3.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| foliantcontrib.metagraph-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / foliantcontrib.metagraph-0.1.3.tar.gz
| Download URL | foliantcontrib.metagraph-0.1.3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
decd6828f71a349e1414a6bb03a255ab8ef242578a1658d1705d776136bc08e1
|
|
BLAKE2b-256 checksum How to use checksums |
833e3ceda16ae031c2ef959a3bdf545193591bc59d77c21775d539c855e3bf1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Release files / foliantcontrib.metagraph-0.1.3-py3-none-any.whl
| Download URL | foliantcontrib.metagraph-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ad7b1a10ad74292e0eade13535c3c9ae97cacde1f6928cbc66a1db80557d318
|
|
BLAKE2b-256 checksum How to use checksums |
403e59b2e00e360941f31de9dd58149b08655d3bf21b7ef9bca99efa687447dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|