Configuring PyMind

PyMind is configured via a TOML file called pymind.toml. By default PyMind searches for the configuration search in following directories for the configuration file:

Configuration File Structure

Below is an example configuration file which is also used for the unit tests. Each table will be described in turn

[IO]
input = "./tests/example" # In
output = "./tests/example-output"

[HTML]
css = "style.css"
footer = "footer.md"

[Markdown]
extensions = ["toc", "codehilite"]

IO

This table contains the input and output directories to search for markdown files and to output HTML files, respectively.

HTML

This table contains the names of the CSS file and footer markdown file that are desired to be used during the processing of your static website. Note that these are just the file names. The files themselves are expected to be placed in the default configuration directory.

Maybe the path of the files can be based on the path of the configuration file?

Markdown

The markdown table allows the user to specify the officially supported extensions. The specified extensions will be used to generate each markdown file found in the input directory.

Related Topics