1
0
Fork 0
mirror of https://github.com/fmap/muflax65ngodyewp.onion synced 2024-06-18 09:16:48 +02:00
Go to file
2011-03-11 10:40:08 +01:00
layout design done 2010-05-06 10:56:28 +02:00
src ported two blog posts, took out srs article for now 2011-03-11 10:40:08 +01:00
styles removed poetry drafts 2010-12-03 18:59:05 +01:00
.gitignore typo 2010-08-26 08:59:42 +02:00
PyRSS2Gen.py first commit, builds already 2010-04-28 02:49:23 +02:00
README first commit, builds already 2010-04-28 02:49:23 +02:00
webifier.py forgot a debug message 2010-05-28 15:14:51 +02:00

Ceci n'est pas un lisez-moi.

Just a few short notes how this stuff works so I don't forget it over time.

Structure
---------
    layout -> templates
    out -> result, upload this
    src -> all content files
    styles -> css files

Each directory in src is a separate (sub-)category. It contains each content
page as a separate text file (*.pdc) of the following form:
    % title
    [content in (pandoc-enhanced) Markdown markup]

Each directory also contains a meta.yaml specifying the necessary metadata, like
the category name, some layout data and so on. Note that each directory inherits
all unset data from its parent.

Any additional data, like images, reside in the same dir as their .pdc and are
just copied with them. (Everything except *.pdc and meta.yaml is.)

Additionally, changelog.pdc is used to build the rss.xml.

Process
-------
webifier.py goes through all directories in src, reads meta.yaml, generates all
necessary metadata out of it and then takes every *.pdc, pipes it through pandoc
and tidy (adding data if necessary) and finally puts the result into out. 

Also, an index.html is generated for every category.

Finally, changelog.html is parsed, transformed into an RSS feed and put at
out/rss.xml.

Done!