Tooltips show additional information when hovering over text.
Define abbreviations that show full text on hover:
The HTML specification is maintained by the W3C.
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web ConsortiumThe HTML specification is maintained by the W3C.
*[HTML]: Hyper Text Markup Language *[W3C]: World Wide Web Consortium
Add footnotes with references:
DocsForge is a self-contained documentation build system.[^1]
[^1]: All dependencies are vendored into the project repository.DocsForge is a self-contained documentation build system.1
Enable with content.tooltips feature:
theme:
features:
- content.tooltipsThis adds hover tooltips for abbreviations and links throughout the site.
Use title attribute for link tooltips:
[DocsForge](https://github.com/QQSHI13/docsforge "Self-contained documentation builds")Definition terms can serve as glossary entries:
DocsForge
: A self-contained documentation build system with vendored dependencies.
Material
: The most popular documentation theme, built into DocsForge.DocsForge : A self-contained documentation build system with vendored dependencies.
Material : The most popular documentation theme, built into DocsForge.
Collect all definitions on one page for easy reference:
# Glossary
## A
**API**
: Application Programming Interface — a set of protocols for building software.
## B
**Build**
: The process of converting Markdown files into a static HTML site.
## D
**DocsForge**
: A self-contained documentation engine with vendored dependencies.Automatic link conversion for GitHub references:
See issue #123 and PR #456 for details.Enable with:
markdown_extensions:
- pymdownx.magiclink:
repo_url_shorthand: true
user: QQSHI13
repo: docsforge-docsWhen content.tooltips is enabled, links to external sites show a preview on hover:
theme:
features:
- content.tooltipsHover over this GitHub link to see a preview.
- Keep abbreviations short and commonly used
- Write definitions in your own words, not dictionary copies
- Group related terms in definition lists
- Test tooltips on mobile (they work differently on touch devices)
Footnotes
-
All dependencies are vendored into the project repository. ↩