@@ -0,0 +1,570 @@
+#!/bin/python%0A%0Aimport glob%0Afrom subprocess import call%0Aimport os%0A%0Alst_filepaths = glob.glob(%22pages/*.md%22)%0Alst_filenames = %5Bos.path.basename(i) for i in lst_filepaths%5D%0Alst_routenames = %5Bos.path.splitext(i)%5B0%5D for i in lst_filenames%5D%0A%0Adef generate_html():%0A    for n, filepath in enumerate(lst_filepaths):%0A        command = %22pandoc -f markdown -t html -s --base-header-level=2 -o _site/%7Broutename%7D %7Bfilepath%7D%22.format(filepath=filepath, routename=lst_routenames%5Bn%5D)%0A        print command%0A        #call(command, shell=True)%0A%0Aif os.path.exists(%22_site/%22):%0A    generate_html()%0A%0A

add generator