Home | History | Annotate | Download | only in scripts

Lines Matching defs:md

56 # Step 3, recursively mirror SRC_DIR to HTML_DIR, directory by directory, translating *.md
60 def md(path):
87 if 'sidebar.md' in files:
88 sidebar = md(os.path.join(curdir, 'sidebar.md'))
89 del files[files.index('sidebar.md')]
93 if 'sidebar2.md' in files:
94 sidebar2 = md(os.path.join(curdir, 'sidebar2.md'))
95 del files[files.index('sidebar2.md')]
99 if 'sidebar3.md' in files:
100 sidebar3 = md(os.path.join(curdir, 'sidebar3.md'))
101 del files[files.index('sidebar3.md')]
107 # Step D: mirror all non-*.md files, and translate (file).md files into (file).html
113 if f.endswith('.md'):
114 main = md(absfilename)
118 html = codecs.open(os.path.join(outdir, f.replace('.md', '.html')), 'w', encoding="utf8")