Printing a summary¶
Basic¶
Place a summary of all definitions for a section anywhere in your documentation:
Example
Lets generate the summary for the section term
:
This will produce the following summary. Note that the summary contains
links to all definitions (def
) and references (ref
) to all terms
in your documentation:
Output
- fency#definition
- fency#definition
-
- my term 2
- my term 3
- my_term1
- page_reference
Overriding the output behaviour¶
Override the default values for list_definitions and list_references by placing a modifier behind the glossary reference:
Note
When overriding the output behaviour in summaries printed in a table,
you need to quote the |
:
no_refs
¶
Dont add reference links to the summary.
output
no_defs
¶
Don't add definitions to the summary:
output
do_defs
and do_refs
¶
output
- fency#definition
- fency#definition
-
- my term 2
- my term 3
- my_term1
- page_reference
Configuration¶
- list_definitions
- If set to
false
, definitions are not listed in the summary. Default istrue
.
- list_references
- If set to
false
, references are not listed in the summary. Default istrue
.
Themes¶
Passing a theme
option to the <glossary::section>
statement will
load a customized jinja template for that theme named summary-<theme>.html
.
Example
This theme shows the term definitions in the glossary:
Quote
- fency#definition
-
a term using the # character
- fency&#35;definition
-
- my term 2
-
Definition of my term 2
- my term 3
-
Definition of my term 3
- my_term1
-
Definition of my_term 1
- page_reference
-
Page references
Available themes are:
- detailed:
- Shows the definition of the term in the summary.
- table:
- Uses tables to display the summary
Further reading¶
- Read the sections documentation to see how to configure sections.