diff options
| author | scoder <none@none> | 2007-05-09 13:28:19 +0200 |
|---|---|---|
| committer | scoder <none@none> | 2007-05-09 13:28:19 +0200 |
| commit | 156de2fa17c053fa46768bdd464b404f042bb232 (patch) | |
| tree | 4b7af5ce18283c4a9c0dccb66b85b52663aac7cb /doc/mkhtml.py | |
| parent | e19d32cbe3479325868b421917d7420f91b244b8 (diff) | |
| download | python-lxml-156de2fa17c053fa46768bdd464b404f042bb232.tar.gz | |
[svn r2275] date footer in HTML pages
--HG--
branch : trunk
Diffstat (limited to 'doc/mkhtml.py')
| -rw-r--r-- | doc/mkhtml.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/doc/mkhtml.py b/doc/mkhtml.py index 8eb77580..9b943cd7 100644 --- a/doc/mkhtml.py +++ b/doc/mkhtml.py @@ -13,6 +13,8 @@ SITE_STRUCTURE = [ RST2HTML_OPTIONS = " ".join([ "--no-toc-backlinks", "--strip-comments", + "--language en", + "--date", ]) find_title = XPath("/h:html/h:head/h:title/text()", @@ -105,15 +107,9 @@ def publish(dirname, lxml_path, release): build_menu(tree, basename, section, menu) - # integrate menu and date - date = Element("{http://www.w3.org/1999/xhtml}p", {"class":"timestamp"}) - date.text = "Page generated on " + time.strftime("%Y-%m-%d") + # integrate menu for tree, basename, outpath in trees.itervalues(): new_tree = merge_menu(tree, menu, basename) - div = find_page_end(new_tree) - if div: - div[-1].append(copy.deepcopy(date)) - new_tree.write(outpath) # also convert INSTALL.txt and CHANGES.txt |
