Adjust the index inclusion for the new index support.
diff --git a/Doc/api.tex b/Doc/api.tex
index fdc19b0..7d99848 100644
--- a/Doc/api.tex
+++ b/Doc/api.tex
@@ -2906,6 +2906,6 @@
 XXX Explain Py_DEBUG, Py_TRACE_REFS, Py_REF_DEBUG.
 
 
-\input{api.ind}			% Index -- must be last
+\inputindex{api.ind}			% Index -- must be last
 
 \end{document}
diff --git a/Doc/api/api.tex b/Doc/api/api.tex
index fdc19b0..7d99848 100644
--- a/Doc/api/api.tex
+++ b/Doc/api/api.tex
@@ -2906,6 +2906,6 @@
 XXX Explain Py_DEBUG, Py_TRACE_REFS, Py_REF_DEBUG.
 
 
-\input{api.ind}			% Index -- must be last
+\inputindex{api.ind}			% Index -- must be last
 
 \end{document}
diff --git a/Doc/ext.tex b/Doc/ext.tex
index 0c9f779..d2d11ad 100644
--- a/Doc/ext.tex
+++ b/Doc/ext.tex
@@ -1489,8 +1489,6 @@
 files).  No \samp{-l} options can be used.
 
 
-%\input{extref}
-
-\input{ext.ind}
+\inputindex{ext.ind}
 
 \end{document}
diff --git a/Doc/ext/ext.tex b/Doc/ext/ext.tex
index 0c9f779..d2d11ad 100644
--- a/Doc/ext/ext.tex
+++ b/Doc/ext/ext.tex
@@ -1489,8 +1489,6 @@
 files).  No \samp{-l} options can be used.
 
 
-%\input{extref}
-
-\input{ext.ind}
+\inputindex{ext.ind}
 
 \end{document}
diff --git a/Doc/lib.tex b/Doc/lib.tex
index 76fddca..ca587ce 100644
--- a/Doc/lib.tex
+++ b/Doc/lib.tex
@@ -8,7 +8,9 @@
 
 \input{boilerplate}
 
-\makeindex			% tell \index to actually write the .idx file
+\makeindex			% tell \index to actually write the
+				% .idx file
+\makemodindex			% ... and the module index as well.
 
 
 \begin{document}
@@ -222,9 +224,11 @@
 \input{libundoc}
 
 \renewcommand{\indexname}{Module Index}
-\input{modlib.ind}		% Module Index
+\renewcommand{\indexlabel}{modindex}
+\inputindex{modlib.ind}		% Module Index
 
 \renewcommand{\indexname}{Index}
-\input{lib.ind}			% Index
+\renewcommand{\indexlabel}{genindex}
+\inputindex{lib.ind}			% Index
 
 \end{document}
diff --git a/Doc/lib/lib.tex b/Doc/lib/lib.tex
index 76fddca..ca587ce 100644
--- a/Doc/lib/lib.tex
+++ b/Doc/lib/lib.tex
@@ -8,7 +8,9 @@
 
 \input{boilerplate}
 
-\makeindex			% tell \index to actually write the .idx file
+\makeindex			% tell \index to actually write the
+				% .idx file
+\makemodindex			% ... and the module index as well.
 
 
 \begin{document}
@@ -222,9 +224,11 @@
 \input{libundoc}
 
 \renewcommand{\indexname}{Module Index}
-\input{modlib.ind}		% Module Index
+\renewcommand{\indexlabel}{modindex}
+\inputindex{modlib.ind}		% Module Index
 
 \renewcommand{\indexname}{Index}
-\input{lib.ind}			% Index
+\renewcommand{\indexlabel}{genindex}
+\inputindex{lib.ind}			% Index
 
 \end{document}