Glossary Summary¶
Basic Usage¶
To create a summary of all definitions and references for a glossary section, add a summary tag anywhere in your documentation:
Example
Let's generate a summary for the section demo
:
This will produce the following summary, containing links to all definitions and references of terms in your documentation:
Customizing Output¶
You can override the default behavior for list_definitions
and
list_references
by adding modifiers to the glossary reference:
Note
When using modifiers in tables, you need to escape the |
character:
Available Modifiers¶
no_refs
¶
Exclude reference links from the summary.
no_defs
¶
Exclude definitions from the summary.
Output
do_defs
and do_refs
¶
Explicitly include definitions and/or references.
Output
Configuration¶
- list_definitions
- Controls whether definitions appear in the summary. Default is
true
.
- list_references
- Controls whether references appear in the summary. Default is
true
.
Themes¶
You can customize the summary appearance by passing a theme
option:
The theme option loads a custom Jinja template named summary-<theme>.html
.
Example
This theme shows the term definitions in the glossary:
Output
- my_term1
-
Definition of my_term 1
- page_reference
-
Page references
Available Themes¶
- detailed
- Displays the term definition in the summary.
- table
- Presents the summary in a tabular format.
Further Reading¶
- See sections documentation for section configuration details.
- Check customization for creating custom summary templates.