Add Caption to images
Project Metadata⚓︎
-
Caption Readme
Go toOverview of the plugin and basic usage.
-
Caption Config
Go toDetailed configuration options and defaults.
-
Caption Custom
Go toHow to apply custom CSS and styles.
-
Caption Image
Go toSettings for image-specific captions.
-
Caption Quick-Start
Go toGet up and running in under 5 minutes.
-
Caption References
Go toTechnical API and cross-reference details.
-
Caption Table
Go toFormatting and options for table captions.
-
MaterialX Start Page
Return toBack to the project's main landing page.
-
MkDocs-Material
Return toBack to the root documentation.
-
Project Metadata
-
Technical Information
-
Quick Start
Enhance
-
Enhance your MkDocs documentation with easy figure, table captioning and numbering.
-
But it does not stop there. You can also add captioning and numbering to literally any element you want.
-
And the best part you do not even need to add additional CSS or JavaScript to your site, just enable the plugin and you are good to go.
Features⚓︎
Features
- Easy to use table and figure caption declaration directly in Markdown
- Automatic numbering of tables and figures
- Dynamic link text generation for references
- Highly configurable
- Extendable to support captions for all element types
- Cross page referencing
Installation⚓︎
Credits⚓︎
Credits
-
This is an open source project. It lives from your contributions, be it in form of bug reports, feature requests, discussions, or fixes and other code changes. I am happy to see other people contributing ideas or even building on top of it. If you encounter any issues or have ideas for improvements, feel free to open an issue or a pull request.
-
Of course, I am not the only one who has thought about adding captions to MkDocs. There are numerous other projects or workarounds that try to solve the same problem. What makes this project unique is that it is able to handle captions for images, tables and even custom elements. Also, it is a native MkDocs plugin, which enable it to detect the caption elements more reliably and to integrate well with other plugins.
Alternatives
If you are looking for an alternative, you might want to check out the following projects:
-
markdown_caption native Markdown extension for adding captions to images.
-
mkdocs-img2fig-plugin MkDocs plugin for adding captions to images.
If you know other plugins or projects that should be listed here, feel free to open an issue or a pull request.
Advanced Configuration⚓︎
-
Material for MkDocs comes with many configuration options.
-
The setup section explains in great detail how to configure and customize colors, fonts, icons and much more:
-
Changing the Colors
View GuideCustomise primary and accent colors to match your brand identity.
-
Changing the Fonts
View GuideConfigure Google Fonts or custom web fonts for typography.
-
Changing the Language
View GuideLocalize your site interface and search into 50+ languages.
-
Changing the Logo
View GuideSet a custom logo and choose from thousands of integrated icons.
-
Data Privacy
View GuideEnable GDPR-compliant features and cookie consent management.
-
Site Navigation
View GuideDefine your site structure, tabs, and table of contents behavior.
-
Site Search
View GuideConfigure the built-in search engine with highlighting and indexing.
-
Site Analytics
View GuideIntegrate Google Analytics or other privacy-focused tracking tools.
-
The Header
View GuideCustomize the sticky header, search bar, and repository links.
-
The Footer
View GuideManage "Previous/Next" buttons and the copyright notice area.
-
Social Cards
View GuideGenerate automatic preview images for Twitter and LinkedIn shares.
-
Setting up a Blog
View GuideTransform your documentation into a fully-featured technical blog.
-
Setting up Tags
View GuideOrganize content with categories and tags for easier discovery.
-
Versioning
View GuideHost multiple versions of your documentation simultaneously.
-
Git Repository
View GuideLink your source code to enable "Edit this page" functionality.
-
Comment System
View GuideIntegrate Giscus or Disqus to build community engagement.
-
Optimization
View GuideMinify CSS/JS and optimize images for lightning-fast loading.
-
Offline Usage
View GuidePackage your documentation for use without an internet connection.
Supported Markdown Extensions
Furthermore, see the list of supported Markdown extensions that are natively integrated with Material for MkDocs.