From ab946809508638794fc3f4a8e582ba7d89b6b80b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= <arsen@aarsen.me> Date: Sun, 20 Nov 2022 17:57:46 +0100 Subject: [PATCH] docs: Create Indices appendix The GCC manual has multiple indices. By creating an appendix which lists them, we help makeinfo present a more accessible way for the reader to see all the indices. gcc/ChangeLog: * doc/gcc.texi: Add the Indices appendix, to make texinfo generate nice indices overview page. --- gcc/doc/gcc.texi | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/gcc/doc/gcc.texi b/gcc/doc/gcc.texi index 7019365429d9..a284dd2fd933 100644 --- a/gcc/doc/gcc.texi +++ b/gcc/doc/gcc.texi @@ -159,8 +159,7 @@ object files. * GNU Free Documentation License:: How you can copy and share this manual. * Contributors:: People who have contributed to GCC. -* Option Index:: Index to command line options. -* Keyword Index:: Index of concepts and symbol names. +* Indices:: List of indices in this manual. @end menu @include frontends.texi @@ -196,19 +195,28 @@ object files. @c Indexes @c --------------------------------------------------------------------- +@node Indices +@appendix Indices + +@menu +* Option Index:: Index to command line options. +* Concept and Symbol Index:: Index of concepts and symbols names. +@end menu + @node Option Index -@unnumbered Option Index +@appendixsec Option Index -GCC's command line options are indexed here without any initial @samp{-} -or @samp{--}. Where an option has both positive and negative forms -(such as @option{-f@var{option}} and @option{-fno-@var{option}}), -relevant entries in the manual are indexed under the most appropriate -form; it may sometimes be useful to look up both forms. +GCC's command line options are indexed here without any initial +@samp{-} or @samp{--}. Where an option has both positive and negative +forms (such as @option{-f@var{option}} and +@option{-fno-@var{option}}), relevant entries in the manual are +indexed under the most appropriate form; it may sometimes be useful to +look up both forms. @printindex op -@node Keyword Index -@unnumbered Keyword Index +@node Concept and Symbol Index +@appendixsec Concept and Symbol Index @printindex cp -- GitLab