mirror of https://github.com/python/cpython.git
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.
This commit is contained in:
parent
fe1e207841
commit
5cc0a9b252
|
@ -6,5 +6,6 @@ lib
|
|||
mac
|
||||
ref
|
||||
tut
|
||||
index.html
|
||||
modindex.html
|
||||
@webchecker.pickle
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in New Issue