Lines Matching refs:path
47 t += open(os.path.join(TEMPLATE_DIR, f), 'r').read()
51 if os.path.exists(HTML_DIR):
60 def md(path): argument
61 text = codecs.open(path, encoding='utf8').read()
67 curdir = os.path.normpath(curdir)
68 outdir = curdir.split(os.path.sep)
72 outdir = os.path.join(*outdir)
76 os.mkdir(os.path.join(outdir, subdir))
81 parentdir = os.path.dirname(curdir)
88 sidebar = md(os.path.join(curdir, 'sidebar.md'))
94 sidebar2 = md(os.path.join(curdir, 'sidebar2.md'))
100 sidebar3 = md(os.path.join(curdir, 'sidebar3.md'))
111 absfilename = os.path.join(curdir, f)
118 html = codecs.open(os.path.join(outdir, f.replace('.md', '.html')), 'w', encoding="utf8")
121 shutil.copy(absfilename, os.path.join(outdir, f))