From: Fred Drake Date: Tue, 9 Jan 2001 22:02:10 +0000 (+0000) Subject: Added a --global-module-index option to specify a (possibly relative) URL X-Git-Tag: v2.1a1~367 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42181dba8ecf9736ae0ec2384aa4307533c835e1;p=python 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!) --- diff --git a/Doc/html/Makefile b/Doc/html/Makefile index 6b2827bc7e..5da7cabb7e 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 4ffcc589f1..d3720d9997 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 .= <