Further presentation adjustments, use a style sheet for some things.

This commit is contained in:
Fred Drake 2000-07-27 18:44:44 +00:00
parent f02862305b
commit 7896bf218d
2 changed files with 19 additions and 7 deletions

View File

@ -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))
fo.write(" <title>%s</title>\n"
' <link rel="STYLESHEET" href="style.css">\n'
% cgi.escape(title))
fo.write("</head>\n")
# body
fo.write('<body bgcolor="white">\n')
fo.write('[<a href="../">home</a>]\n')
fo.write('<body bgcolor="white">\n'
'<div class="navigation">\n')
fo.write('[<b><a href="../">home</a></b>]\n')
if os.path.basename(infile) != "pep-0000.txt":
fo.write('[<a href=".">index</a>]\n')
fo.write('<hr />\n<table border="0">\n')
fo.write('[<b><a href=".">index</a></b>]\n')
fo.write('</div>\n'
'<div class="header">\n<table border="0">\n')
for k, v in header:
fo.write(" <tr><th align='right'>%s:</th><td>%s</td></tr>\n"
% (cgi.escape(k), cgi.escape(v)))
title = 0
fo.write("</table>\n<hr />\n<pre>")
fo.write("</table>\n</div>\n<hr />\n"
"<pre>")
while 1:
line = fi.readline()
if not line:
@ -110,7 +115,7 @@ def main():
raise "Syntax: "+sys.argv[0]+" [-n] [sf_username]"
if update:
os.system("scp pep-*.html " + username + HOST + ":" + HDIR)
os.system("scp pep-*.html style.css " + username + HOST + ":" + HDIR)
os.system("ssh " + username + HOST + " chmod 664 " + HDIR + "/*")

7
style.css Normal file
View File

@ -0,0 +1,7 @@
.navigation { background: #99ccff;
border: thin solid #ffffff;
width: 100%;
padding: 4pt;
}
.header th:after { content: " " }