summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-04-29 15:42:19 (GMT)
committerFred Drake <fdrake@acm.org>1999-04-29 15:42:19 (GMT)
commit5cc0a9b252ac61dc79bf694c96e217e6e0097ec9 (patch)
tree2b004fba7f40feecc4ef61783a5f8e45ce590846 /Doc
parentfe1e207841ab44f17ec06ed37f7e789d51fb5512 (diff)
downloadcpython-5cc0a9b252ac61dc79bf694c96e217e6e0097ec9.zip
cpython-5cc0a9b252ac61dc79bf694c96e217e6e0097ec9.tar.gz
cpython-5cc0a9b252ac61dc79bf694c96e217e6e0097ec9.tar.bz2
Generate index.html from index.html.in. This avoids having to modify the
index to update the version number; boilerplate.tex remains the only document source for this information.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/html/.cvsignore1
-rw-r--r--Doc/html/Makefile13
-rw-r--r--Doc/html/index.html38
-rw-r--r--Doc/html/index.html.in61
4 files changed, 74 insertions, 39 deletions
diff --git a/Doc/html/.cvsignore b/Doc/html/.cvsignore
index 3e6a28e..0f745f3 100644
--- a/Doc/html/.cvsignore
+++ b/Doc/html/.cvsignore
@@ -6,5 +6,6 @@ lib
mac
ref
tut
+index.html
modindex.html
@webchecker.pickle
diff --git a/Doc/html/Makefile b/Doc/html/Makefile
index 44c5c2e..11c3d45 100644
--- a/Doc/html/Makefile
+++ b/Doc/html/Makefile
@@ -40,7 +40,7 @@ COMMONPERL= $(TOPDIR)/perl/manual.perl \
$(TOPDIR)/perl/l2hinit.perl
-all: $(INDEXFILES) modindex.html
+all: $(INDEXFILES) index.html modindex.html
.PHONY: api ext lib mac ref tut
@@ -59,6 +59,17 @@ modindex.html: lib/lib.html mac/mac.html $(TOOLSDIR)/mkmodindex
--address $(PYTHONDOCS) \
lib/modindex.html mac/modindex.html
+# This is really ugly, but we're not dependent on $(RELEASE), which isn't
+# defined here. It also maintains the proper dependency on boilerplate.tex.
+
+BOILERPLATE=$(TOPDIR)/texinputs/boilerplate.tex
+index.html: index.html.in $(BOILERPLATE)
+ REL=`grep '\\release{' $(BOILERPLATE) | sed 's/.*\\release{\(.*\)}.*$$/\1/'` ; \
+ sed "s/@RELEASE@/$$REL/g" $< >TEMP
+ DATE=`grep '\\date{' $(BOILERPLATE) | sed 's/.*\\date{\(.*\)}.*$$/\1/'` ; \
+ sed "s/@DATE@/$$DATE/g" TEMP >$@
+ rm -f TEMP
+
api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX)
$(MKHTML) api $(L2HARGS)
diff --git a/Doc/html/index.html b/Doc/html/index.html
deleted file mode 100644
index 1a9f23d..0000000
--- a/Doc/html/index.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<HTML>
- <HEAD>
- <TITLE>Python 1.5.2 Documentation</TITLE>
- <LINK REL=STYLESHEET HREF="lib/lib.css" TYPE="text/css">
- </HEAD>
- <BODY BGCOLOR=WHITE>
- <H1>Python 1.5.2 Documentation</H1>
-
- <UL>
- <LI> <A HREF="tut/tut.html">Tutorial</A>
- (start here)
-
- <LI> <A HREF="modindex.html">Global Module Index</A>
- (for quick access to all documentation)
-
- <LI> <A HREF="lib/lib.html">Library Reference</A>
- (<A HREF="lib/modindex.html">Module Index</A>)
- (keep this under your pillow)
-
- <LI> <A HREF="mac/mac.html">Macintosh Module Reference</A>
- (<A HREF="mac/modindex.html">Module Index</A>)
- (this too, if you use a Macintosh)
-
- <LI> <A HREF="ref/ref.html">Language Reference</A>
- (for language lawyers)
-
- <LI> <A HREF="ext/ext.html">Extending and Embedding</A>
- (tutorial for C/C++ programmers)
-
- <LI> <A HREF="api/api.html">Python/C API</A>
- (reference for C/C++ programmers)
-
- <LI> <A HREF="doc/doc.html">Documenting Python</A>
- (information for documentation authors)
- </UL>
-
- </BODY>
-</HTML>
diff --git a/Doc/html/index.html.in b/Doc/html/index.html.in
new file mode 100644
index 0000000..5db55e9
--- /dev/null
+++ b/Doc/html/index.html.in
@@ -0,0 +1,61 @@
+<html>
+ <head>
+ <title>Python 1.5.2 Documentation</title>
+ <link rel=STYLESHEET href="lib/lib.css" type="text/css">
+ <style type="text/css">
+ a.title { font-weight: bold; font-size: 110%; }
+ </style>
+ </head>
+ <body bgcolor=white>
+ <div align=center>
+ <h1>Python Documentation</h1>
+
+ <p>
+ <strong>Release @RELEASE@</strong>
+ <br>
+ <strong>@DATE@</strong>
+ </p>
+ </div>
+
+ <table>
+ <tbody>
+ <tr><td>
+ <ul>
+ <li> <a href="tut/tut.html" class=title>Tutorial</a>
+ <br>(start here)
+
+ <li> <a href="modindex.html" class=title>Global Module Index</a>
+ <br>(for quick access to all documentation)
+
+ <li> <a href="lib/lib.html" class=title>Library Reference</a>
+ (<a href="lib/modindex.html">Module Index</a>)
+ <br>(keep this under your pillow)
+
+ <li> <a href="mac/mac.html" class=title>Macintosh Module
+ Reference</a> (<a href="mac/modindex.html">Module
+ Index</a>)
+ <br>(this too, if you use a Macintosh)
+ </ul>
+ </td>
+ <td>
+ <ul>
+ <li> <a href="ref/ref.html" class=title>Language Reference</a>
+ <br>(for language lawyers)
+
+ <li> <a href="ext/ext.html" class=title>Extending and
+ Embedding</a>
+ <br>(tutorial for C/C++ programmers)
+
+ <li> <a href="api/api.html" class=title>Python/C API</a>
+ <br>(reference for C/C++ programmers)
+
+ <li> <a href="doc/doc.html" class=title>Documenting Python</a>
+ <br>(information for documentation authors)
+ </ul>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ </body>
+</html>