Skip to main content

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

foliantcontrib.metagraph-0.1.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foliantcontrib.metagraph-0.1.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file foliantcontrib.metagraph-0.1.3.tar.gz.

File metadata

  • Download URL: foliantcontrib.metagraph-0.1.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for foliantcontrib.metagraph-0.1.3.tar.gz
Algorithm Hash digest
SHA256 decd6828f71a349e1414a6bb03a255ab8ef242578a1658d1705d776136bc08e1
MD5 d342634b4c731adfa6982bbc32043c2f
BLAKE2b-256 833e3ceda16ae031c2ef959a3bdf545193591bc59d77c21775d539c855e3bf1e

See more details on using hashes here.

File details

Details for the file foliantcontrib.metagraph-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: foliantcontrib.metagraph-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for foliantcontrib.metagraph-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5ad7b1a10ad74292e0eade13535c3c9ae97cacde1f6928cbc66a1db80557d318
MD5 dd02e3b820281768a3fb12f9440421ec
BLAKE2b-256 403e59b2e00e360941f31de9dd58149b08655d3bf21b7ef9bca99efa687447dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page