Source for the Apache XML Graphics website (FOP, Batik and XML Graphics Commons). The site is built with Pelican from the Markdown (.mdtext) files under content/.
Python 3
The build dependencies:
pip install -r requirements.txt
Build the site into output/:
pelican content -s pelicanconf.py -o output
Serve output/ over HTTP on port 8000:
pelican -l -o output -s pelicanconf.py
Open the site in your browser, for example:
While editing, you can build, serve and auto-rebuild on changes in one command (then just refresh the browser):
pelican -lr content -s pelicanconf.py -o output
Note: SITEURL is empty and RELATIVE_URLS is off, so pages use root-relative links (/fop/..., /images/...). Open the pages through the local HTTP server above rather than with file://, otherwise links, CSS and images will not resolve. (Setting RELATIVE_URLS = True in pelicanconf.py makes file:// work, but serving over HTTP matches the live site.)
content/ — the page sources (content/fop/, content/batik/, content/commons/, ...)theme/ — templates and static assetspelicanconf.py — Pelican configuration (current versions, Markdown setup)output/ — generated site (not committed)