From 42181dba8ecf9736ae0ec2384aa4307533c835e1 Mon Sep 17 00:00:00 2001
From: Fred Drake
Date: Tue, 9 Jan 2001 22:02:10 +0000
Subject: Added a --global-module-index option to specify a (possibly relative)
URL to the Global Module Index for a set of documents. This is used to
include a reference to the global index from the per-document module indexes,
so that it is just a little easier to find.
(Someone suggested this, but I do not remember who. Please let me know if
it was you -- thanks!)
---
Doc/html/Makefile | 3 ++-
Doc/perl/l2hinit.perl | 10 ++++++++++
Doc/tools/mkhowto | 7 ++++++-
3 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/Doc/html/Makefile b/Doc/html/Makefile
index 6b2827b..5da7cab 100644
--- a/Doc/html/Makefile
+++ b/Doc/html/Makefile
@@ -14,7 +14,8 @@ PYTHON= python
WEBCHECKER=$(PYTHON) $(TOPDIR)/../Tools/webchecker/webchecker.py
MKHOWTO= $(TOOLSDIR)/mkhowto --about $(TOPDIR)/html/stdabout.dat \
--address $(PYTHONDOCS) --up-link ../index.html \
- --up-title "Python Documentation Index"
+ --up-title "Python Documentation Index" \
+ --global-module-index "../modindex.html"
MKHTML= $(MKHOWTO) --html
BUILDINDEX=$(TOOLSDIR)/buildindex.py
diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl
index 4ffcc58..d3720d9 100644
--- a/Doc/perl/l2hinit.perl
+++ b/Doc/perl/l2hinit.perl
@@ -332,6 +332,16 @@ sub add_module_idx {
. "$key$plat###\n";
}
close(MODIDXFILE);
+
+ if ($GLOBAL_MODULE_INDEX) {
+ $prefix = < This index only lists modules documented in this manual.
+ The Global Module
+ Index lists all modules that are documented in this set
+ of manuals.
+MODULE_INDEX_PREFIX
+ }
if (!$allthesame) {
$prefix .= <