


pdj_sitegen
Pandoc and Jinja Site Generator
Installation:
pip install pdj-sitegen
you should either have Pandoc installed, or you can run
python -m pdj_sitegen.install_pandoc
which will install pandoc
using pypandoc
Usage
- create a config file. For an example, see
pdj_sitegen.config.DEFAULT_CONFIG_YAML
, or print a copy of it via
python -m pdj_sitegen.config
- adjust the config file to your needs. most importantly:
content_dir: content/
resources_dir: resources/
templates_dir: templates/
default_template: default.html.jinja2
output_dir: docs/
-
populate the content
directory with markdown files, populate content/resources/
with resources (images, css, etc.), and adjust templates in the templates
directory. See the demo site for usage examples.
-
run the generator
python -m pdj_sitegen your_config.yaml