Markupupdowndown is a ridiculous name for a simple script. It translates the markdown found in you src
directory into html and puts it in your html
directory using Trent Mick's markdown2 library.
The code is available here: https://github.com/j2labs/markupupdowndown.
To install markdown2
, use the command below.
pip install markdown2
Create your config by putting the following lines in an upupdowndown.py
and
adjust as necessary.
src_dir = './src/'
html_dir = './html/'
header_file = '%s%s' % (src_dir, 'header.html')
footer_file = '%s%s' % (src_dir, 'footer.html')
Then just do it.
C'mon... do it.
./cmon_doit.py
How about some headers??
Some text
Some text
Some text
And maybe a list?
- bullet point a
- bullet point b
- bullet point c
And a numbered list?
- hi
- hi
- hi
- hi
- hi
Sweet.
BSD, as usual