diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-10-21 20:57:10 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-10-21 20:57:10 +0000 |
commit | 8657f3bb9b6d9e6a005994ebdc191ec49e4fb65c (patch) | |
tree | 11aa3b85fdbf643265d8ac368af8e1c133ccbf1d /doc/build/runhtml.py | |
parent | f2b58b79777dc3e671ae1d2f20033d29c66dbe04 (diff) | |
download | sqlalchemy-8657f3bb9b6d9e6a005994ebdc191ec49e4fb65c.tar.gz |
merge of new documentation generation system
Diffstat (limited to 'doc/build/runhtml.py')
-rwxr-xr-x | doc/build/runhtml.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/doc/build/runhtml.py b/doc/build/runhtml.py index 591e3b7f7..c5b34e4bf 100755 --- a/doc/build/runhtml.py +++ b/doc/build/runhtml.py @@ -1,15 +1,13 @@ #!/usr/bin/env python
import sys,re,os
-print "Running txt2myt.py..."
-execfile("txt2myt.py")
+"""starts an HTTP server which will serve generated .myt files from the ./components and
+./output directories."""
-print "Generating docstring data"
-execfile("compile_docstrings.py")
component_root = [
{'components': './components'},
- {'content' : './content'}
+ {'content' : './output'}
]
doccomp = ['document_base.myt']
output = os.path.dirname(os.getcwd())
@@ -18,15 +16,16 @@ sys.path = ['./lib/'] + sys.path import myghty.http.HTTPServerHandler as HTTPServerHandler
+port = 8080
httpd = HTTPServerHandler.HTTPServer(
- port = 8080,
-
+ port = port,
handlers = [
- {'.*(?:\.myt|/$)' : HTTPServerHandler.HSHandler(path_translate=[(r'^/$', r'/index.myt')], data_dir = './cache', component_root = component_root)},
+ {'.*(?:\.myt|/$)' : HTTPServerHandler.HSHandler(path_translate=[(r'^/$', r'/index.myt')], data_dir = './cache', component_root = component_root, output_encoding='utf-8')},
],
docroot = [{'.*' : '../'}],
)
-
+
+print "Listening on %d" % port
httpd.serve_forever()
|