-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Description
Note
The new tags plugin is available as of 9.5.3+insiders-4.48.0
Hello everyone,
We're currently rethinking the tags plugin, transforming it into something much more powerful with the help of your feedback. Here's a sneak peek into the progress we've made and the innovations on the horizon:
-
Inline Tag Indexes: Introducing a new feature where you can integrate tag indexes directly within your Markdown content. By simply adding an inline comment like
<!-- material/tags -->
, you can create a dynamic tag index within any page, offering unprecedented flexibility in how and where tags are displayed. -
Context-Aware Tag Rendering: The plugin will intelligently render tags based on their context. For instance, if a tag index is placed below an
h3
heading in your Markdown file, the tags will appear withh4
styling. This ensures that the tag index naturally fits into the structure of your document, maintaining both readability and aesthetic appeal. -
Shadow Tags for Cleaner Presentations: Some tags might be necessary for organization but not ideal for display. We're looking to introduce functionality to mark certain tags as hidden. These tags can be used for internal structuring without cluttering your page, keeping the focus on the content that matters most to your readers.
-
Enhanced Flexibility with Customizable Front Matter Properties: The plugin will support customizable front matter properties. This means you can run multiple instances of the tags plugin with different configurations simultaneously, allowing for more complex and nuanced tagging systems, e.g., using
tags
andcategories
alongside each other. -
Scoped Tag Listings for Large Documentations: For extensive documentation, we plan to implement a scoped mode where a tags index includes only the pages under a specific section. This feature will enable you to create specialized tags indexes for different subsections easily, improving navigation in large document sets.
-
Declarative Tag Collections in
mkdocs.yml
: You'll be able to define named collections of tags directly in yourmkdocs.yml
. This feature will enable you to group tags declaratively, and these collections can then be referenced in Markdown files, combining them with other features like scope for more precise control. -
Hierarchical Tags: The plugin should allow to define nested tags, i.e.,
foo
andfoo/bar
in order to build trees of tags. -
Custom Templates for Different Index Types: Recognizing that one size does not fit all, we plan to allow users to define custom templates for different types of tag indexes. This means you could have a visually distinct layout for a blog post overview compared to a regular index of pages, enhancing the visual hierarchy and user navigation.
Coming very soon
- Specialized Tag Index Syntax for Blogs and More: We're adding additional shortcode options that cater to specific types of content, such as blog posts. This could include functionality like showcasing the "most recent 3 blog posts" or generating a list of "suggested pages" based on tags, providing a more tailored and engaging user experience.
- Cross-Project Tag Integration: The plugin is set to emit a
tags.json
index, which can be consumed by other plugins. This opens the door for aggregating tags across different projects, fostering a more interconnected documentation ecosystem.
These enhancements aim to transform the tags plugin into a more powerful, flexible, and user-friendly tool, enhancing the overall documentation experience on MkDocs. We're excited to see how these features will be utilized to create more dynamic and interconnected content. Your feedback and ideas are always welcome as we continue to improve the MkDocs ecosystem.
Feel free to share anything that's on your mind.