Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d20ffe

Browse files
committed
Adjust the index inclusion for the new index support.
1 parent 568113a commit 7d20ffe

6 files changed

Lines changed: 18 additions & 14 deletions

File tree

Doc/api.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2906,6 +2906,6 @@ \chapter{Debugging}
29062906
XXX Explain Py_DEBUG, Py_TRACE_REFS, Py_REF_DEBUG.
29072907
29082908
2909-
\input{api.ind} % Index -- must be last
2909+
\inputindex{api.ind} % Index -- must be last
29102910
29112911
\end{document}

Doc/api/api.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2906,6 +2906,6 @@ \chapter{Debugging}
29062906
XXX Explain Py_DEBUG, Py_TRACE_REFS, Py_REF_DEBUG.
29072907
29082908
2909-
\input{api.ind} % Index -- must be last
2909+
\inputindex{api.ind} % Index -- must be last
29102910
29112911
\end{document}

Doc/ext.tex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,8 +1489,6 @@ \subsection{GNU Dynamic Loading}
14891489
files). No \samp{-l} options can be used.
14901490

14911491

1492-
%\input{extref}
1493-
1494-
\input{ext.ind}
1492+
\inputindex{ext.ind}
14951493

14961494
\end{document}

Doc/ext/ext.tex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,8 +1489,6 @@ \subsection{GNU Dynamic Loading}
14891489
files). No \samp{-l} options can be used.
14901490

14911491

1492-
%\input{extref}
1493-
1494-
\input{ext.ind}
1492+
\inputindex{ext.ind}
14951493

14961494
\end{document}

Doc/lib.tex

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
\input{boilerplate}
1010

11-
\makeindex % tell \index to actually write the .idx file
11+
\makeindex % tell \index to actually write the
12+
% .idx file
13+
\makemodindex % ... and the module index as well.
1214

1315

1416
\begin{document}
@@ -222,9 +224,11 @@
222224
\input{libundoc}
223225

224226
\renewcommand{\indexname}{Module Index}
225-
\input{modlib.ind} % Module Index
227+
\renewcommand{\indexlabel}{modindex}
228+
\inputindex{modlib.ind} % Module Index
226229

227230
\renewcommand{\indexname}{Index}
228-
\input{lib.ind} % Index
231+
\renewcommand{\indexlabel}{genindex}
232+
\inputindex{lib.ind} % Index
229233

230234
\end{document}

Doc/lib/lib.tex

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
\input{boilerplate}
1010

11-
\makeindex % tell \index to actually write the .idx file
11+
\makeindex % tell \index to actually write the
12+
% .idx file
13+
\makemodindex % ... and the module index as well.
1214

1315

1416
\begin{document}
@@ -222,9 +224,11 @@
222224
\input{libundoc}
223225

224226
\renewcommand{\indexname}{Module Index}
225-
\input{modlib.ind} % Module Index
227+
\renewcommand{\indexlabel}{modindex}
228+
\inputindex{modlib.ind} % Module Index
226229

227230
\renewcommand{\indexname}{Index}
228-
\input{lib.ind} % Index
231+
\renewcommand{\indexlabel}{genindex}
232+
\inputindex{lib.ind} % Index
229233

230234
\end{document}

0 commit comments

Comments
 (0)