summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscoder <none@none>2007-05-09 13:28:19 +0200
committerscoder <none@none>2007-05-09 13:28:19 +0200
commit156de2fa17c053fa46768bdd464b404f042bb232 (patch)
tree4b7af5ce18283c4a9c0dccb66b85b52663aac7cb
parente19d32cbe3479325868b421917d7420f91b244b8 (diff)
downloadpython-lxml-156de2fa17c053fa46768bdd464b404f042bb232.tar.gz
[svn r2275] date footer in HTML pages
--HG-- branch : trunk
-rw-r--r--doc/html/style.css19
-rw-r--r--doc/mkhtml.py10
2 files changed, 14 insertions, 15 deletions
diff --git a/doc/html/style.css b/doc/html/style.css
index d1eafb92..b2195a6a 100644
--- a/doc/html/style.css
+++ b/doc/html/style.css
@@ -8,14 +8,14 @@ body {
padding: 1em 1em 1em 21em;
}
- div.document {
+ div.document, div.footer {
width: 45em;
background-color: white;
}
}
@media print {
- div.document {
+ div.document, div.footer {
width: auto;
padding-left: 0px;
}
@@ -25,12 +25,20 @@ body {
}
}
-div.document {
+div.document, div.footer {
margin: 1em auto 1em auto;
color: #222;
+}
+
+div.document {
text-align: left;
}
+div.footer {
+ text-align: center;
+ font-size: 70%;
+}
+
/*** TOC ***/
div.contents.topic > ul {
@@ -162,11 +170,6 @@ p a:hover, ul a:hover {
text-decoration: underline;
}
-p.timestamp {
- text-align: right;
- font-size: 70%;
-}
-
p {
/*margin: 0.5em 0em 1em 0em;*/
text-align: justify;
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