Skip to content

Commit

Permalink
crappy docs build script & fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brendano committed Mar 18, 2009
1 parent 1b5c0b1 commit a9e885a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/0-table_of_contents.md
Expand Up @@ -14,7 +14,7 @@ Table of Contents:

[setup]: 1-setup.html
[config]: 2-configuration.html
[request_response]: 3-request_response.html
[request_response]: 3-requests_and_responses.html
[routes]: 4-routes.html
[models]: 5-models.html
[templates]: 6-templates.html
Expand Down
12 changes: 12 additions & 0 deletions doc/build.py
@@ -0,0 +1,12 @@
import sys,os,glob,re
import markdown
print sys
dir = os.path.dirname(sys.argv[0]) or '.'
os.chdir(dir)
for f in glob.glob('*.md') + glob.glob('*.txt'):
base = re.search(r'([^\.]*)',f).group(1)
print base
markdown.markdownFromFile(f, base+'.html')

if sys.platform=='darwin':
os.system("open %s/0-table_of_contents.html" % dir)

0 comments on commit a9e885a

Please sign in to comment.