docmd@0.5.2 π (Menubar Release)
This release introduces the Menubar component, significantly hardens the Zero-Config engine, and transforms the developer experience with a robust dev server and a built-in _playground.
β¨ Highlights
Menubar
The focus of this release is the new Menubar, providing a top-level navigation layer for your documentation.
- Versatile Positioning: Can be placed at the very top of the viewport (
fixed) or inside the header slot (sticky). - Rich Components: Supports branding (logo + title), link items, and nested dropdowns for complex navigation needs.
- Responsive Design: Automatically collapses on mobile devices to maintain a clean reading experience.
Built-in _playground
We've added a dedicated _playground package within the repository. Developers can now test core engine changes, UI components, and parser rules in real-time without leaving the codebase.
Smarter Options Menu + New Positioning
The Options Menu is now more flexible than ever.
- Menubar Integration: A new
menubarposition allows the options menu to sit perfectly on the right side of your navigation bar. - Intelligent Fallbacks: If you configure the options menu to a position that is currently disabled (like
headerormenubar), docmd now automatically falls back tosidebar-topto ensure your users never lose access to essential utilities.
π Complete Changelog
β¨ Dev-UX & Dev Server Hardening
- Auto Port Selection:
docmd devnow automatically finds and binds to the next available port if3000is in use, eliminating interactive prompts and speeding up launch times. - Log Refinement: We've eliminated repeating build logs and improved visual highlights, providing clearer details about the build process and PWA asset generation.
- Robust Rebuilds: Fixed issues where
pnpm devwould fail during active development. The internal watcher is now smarter about tracking core utility changes. - Nested Design: Improved the visual and structural handling of nested containers (e.g., Tabs inside Callouts).
π¦ Zero-Config Evolution
- Selective Activation: Zero-Config is now more surgical about where it activates, implementing "silent kills" to avoid triggering in invalid or non-project directories.
- Stability: Multiple edge cases in directory analysis have been resolved, making the zero-config start much more reliable across different OS environments.
π Bug Fixes
- Indentation Fixes: Reset indentation in common-containers to prevent code block parsing by @svallory in #75
- Container Heading Logic: Fixed a design flaw where headings inside containers (Tabs, Cards, etc.) were receiving permalinks and appearing in the Table of Contents. They are now correctly excluded to keep your TOC focused on main page sections.
- Sidebar-Top Fallback: Fixed an issue where the Options Menu would remain invisible if its primary target container was disabled.
π₯ Upgrade
npm install -g @docmd/coreNew Contributors
Full Changelog: 0.5.1...0.5.2
