Defining Glossary Terms¶
Basic Usage¶
ezglossary uses Material definition lists to define glossary terms. Simply add a definition list with section specifiers anywhere in your documentation:
Note
Alternatively, you can directly use html description lists in your page as well.
The format is section:term
, where section
specifies the glossary section
this term belongs to.
Note
You can also use HTML description lists directly in your page.
Example
Define terms in the section demo
:
*demo:my_term1*
: Definition of my_term 1
demo:my_term2
: Definition of my_term 2
*`demo:my_term2`*
: Definition of my_term 2
- my_term1
- Definition of my_term 1
Text Formatting¶
You can use Markdown formatting in your definitions:
demo:formatted_term
: A term with **bold**, *italic*, and `code` formatting.
You can even use multiple paragraphs and other Markdown elements:
- Lists
- Tables
- Code blocks
Reference Links¶
By setting inline_refs
in your configuration, you can enable reference links
directly in term definitions:
Or configure it per section:
Special Characters¶
The following characters require special handling in section names and terms. Replace them with their HTML entities:
Character | HTML Entity | Usage |
---|---|---|
# (start) |
# |
Section/term starting with # |
& (start) |
& |
Section/term starting with & |
/ |
/ |
Path separator |
\| |
¦ |
Vertical bar |
" |
" |
Double quote |
< |
&#lt; |
Less than |
> |
&#gt; |
Greater than |
: |
: |
Colon |
@ |
@ |
At sign |
Configuration¶
- ignore_case
When enabled, terms are matched case-insensitively. Default:
false
- inline_refs
Controls how references appear in term definitions. Options: -
none
(default): No inline references -short
: Numbered references like[1]
-list
: Full reference list with page names
Further Reading¶
- Linking to Terms: Learn how to reference defined terms
- Sections: Organize terms in different sections
- Summary: Generate glossary summaries