]> granicus.if.org Git - python/commitdiff
Generate index.html from index.html.in. This avoids having to modify the
authorFred Drake <fdrake@acm.org>
Thu, 29 Apr 1999 15:42:19 +0000 (15:42 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 29 Apr 1999 15:42:19 +0000 (15:42 +0000)
index to update the version number; boilerplate.tex remains the only document
source for this information.

Doc/html/.cvsignore
Doc/html/Makefile
Doc/html/index.html [deleted file]
Doc/html/index.html.in [new file with mode: 0644]

index 3e6a28ef64d262c47de06f3de05b5958b460d5c1..0f745f32a6012fbbd8faeb60ab9633d4d2033ed7 100644 (file)
@@ -6,5 +6,6 @@ lib
 mac
 ref
 tut
+index.html
 modindex.html
 @webchecker.pickle
index 44c5c2e9aa2fdcbfde3fd66c89c8d6d51fcc3df4..11c3d45976d7bd36d664fbbe495ee16fe6439d87 100644 (file)
@@ -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 (file)
index 1a9f23d..0000000
+++ /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 (file)
index 0000000..5db55e9
--- /dev/null
@@ -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>