diff --git a/+++/jules-henri.ico b/+++/jules-henri.ico new file mode 100644 index 0000000..e42ebe7 Binary files /dev/null and b/+++/jules-henri.ico differ diff --git a/+++/lestyle.css b/+++/lestyle.css new file mode 100644 index 0000000..bf4e5a4 --- /dev/null +++ b/+++/lestyle.css @@ -0,0 +1,57 @@ +body { + width: 100%; + height: 100%; + margin: 0; + padding: 0; +} + +.tableau { + border: 10px grey ridge; + margin: 5em; + margin-bottom: 1em; +} + +table { + display: block; + margin: 1em; + border: 10px grey ridge; + font-size: small; + text-align: left; + width: 55em; +} + +table td { + border: 2px grey ridge; + padding: 1em; +} + +table td img { + width: 20em; + border: 2px grey ridge; +} + +.lst ul li { display: inline; } + +.lst ul li img { + border: 10px grey ridge; + margin: 2em; + margin-bottom: 1em; + width: 450; +} + +.lst ul li video { + border: 10px grey ridge; + margin: 2em; + margin-bottom: 1em; + width: 450; +} + +address { + margin: 20px; +} + +#index_tile h1 { + margin: 20px; +} + + diff --git a/+++/yeux.png b/+++/yeux.png new file mode 100644 index 0000000..bc7b9bc Binary files /dev/null and b/+++/yeux.png differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..be8fcf2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ ++++/*.jpg ++++/*.pdf ++++/Screen-Shot-2014-05-26-at-20.40.24-b.png \ No newline at end of file diff --git a/ b/
new file mode 100644 index 0000000..4e04549 --- /dev/null +++ b/
@@ -0,0 +1,10 @@ +
+ + + + +
+ [[text_md]] + + [[link_md]] +
\ No newline at end of file diff --git a/README.md b/README.md index 0ee3ac6..e5c503f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# __sssstatic __sssstatic __sssstatic __sssstatic __sssstatic + diff --git a/gen.py b/gen.py new file mode 100644 index 0000000..8098cdb --- /dev/null +++ b/gen.py @@ -0,0 +1,207 @@ +#!/usr/bin/env python + +import sys, os, string, markdown, argparse, shutil, json, glob, re +from distutils import dir_util as dirutil + +arg_parser = argparse.ArgumentParser(description='Generates html file accroding to directory content'); + +input_dir = '../content/'; +output_dir = '../deploy/'; + +def parse_args(): + global input_dir, output_dir, clean + arg_parser.add_argument('--input', help='input directory'); + arg_parser.add_argument('--output', help='output directory'); + arg_parser.add_argument('--clean', help='cleans the output directory'); + args = arg_parser.parse_args(); + if args.input and os.path.isdir(args.input): + input_dir = args.input; + if args.output and os.path.isdir(args.output): + output_dir = args.output; + +def translate(txt, dirname): + try: + table = open(os.path.join('.', ''), 'r+'); + except: + print('error opening
file. aborting...'); + sys.exit(0); + + [text, link] = txt.split('- - -'); + text_md = markdown.markdown(text); + link_md = markdown.markdown(link); + + # revise this - perhaps with a better + link_md = link_md.replace('data/', dirname + '/'); + + out = table.read().replace('[[text_md]]', text_md); + return out.replace('[[link_md]]', link_md); + +def escape_date(dirname): + return re.sub('^20\d{2}?.', '', dirname) + +def emit_img(file): + return '' + +def emit_video_mp4(file): + return '