peps: c7065145df09 (original) (raw)
Mercurial > peps
changeset 53:c7065145df09
Further presentation adjustments, use a style sheet for some things.
Fred Drake fdrake@acm.org | |
---|---|
date | Thu, 27 Jul 2000 18:44:44 +0000 |
parents | 926f80174f89 |
children | 204fb2e23dec |
files | pep2html.py style.css |
diffstat | 2 files changed, 19 insertions(+), 7 deletions(-)[+] [-] pep2html.py 19 style.css 7 |
line wrap: on
line diff
--- a/pep2html.py +++ b/pep2html.py @@ -59,19 +59,24 @@ def fixfile(infile, outfile): if pep: title = "PEP " + pep + " -- " + title if title:
fo.write(" <title>%s</title>\n" % cgi.escape(title))[](#l1.7)
fo.write(" <title>%s</title>\n"[](#l1.8)
' <link rel="STYLESHEET" href="style.css">\n'[](#l1.9)
fo.write("\n")% cgi.escape(title))[](#l1.10)
body
- fo.write('\n')
- fo.write('[home]\n')
- fo.write('\n'
'<div class="navigation">\n')[](#l1.16)
- fo.write('[home]\n') if os.path.basename(infile) != "pep-0000.txt":
fo.write('[<b><a href=".">index</a></b>]\n')[](#l1.21)
- fo.write('\n'
for k, v in header: fo.write("'<div class="header">\n<table border="0">\n')[](#l1.23)
\n" % (cgi.escape(k), cgi.escape(v))) title = 0%s: %s
@@ -110,7 +115,7 @@ def main(): raise "Syntax: "+sys.argv[0]+" [-n] [sf_username]" if update:
os.system("scp pep-*.html " + username + HOST + ":" + HDIR)[](#l1.38)
os.system("scp pep-*.html style.css " + username + HOST + ":" + HDIR)[](#l1.39) os.system("ssh " + username + HOST + " chmod 664 " + HDIR + "/*")[](#l1.40)
new file mode 100644 --- /dev/null +++ b/style.css @@ -0,0 +1,7 @@ +.navigation { background: #99ccff;
border: thin solid #ffffff;[](#l2.6)
width: 100%;[](#l2.7)
padding: 4pt;[](#l2.8)
}[](#l2.9)