Skip to content

docmd@0.5.2 πŸš€ (Menubar Release)

Choose a tag to compare

@mgks mgks released this 09 Mar 21:46
· 84 commits to main since this release

docmd logo

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 menubar position 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 header or menubar), docmd now automatically falls back to sidebar-top to ensure your users never lose access to essential utilities.

πŸ“ Complete Changelog

✨ Dev-UX & Dev Server Hardening

  • Auto Port Selection: docmd dev now automatically finds and binds to the next available port if 3000 is 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 dev would 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/core

New Contributors

Full Changelog: 0.5.1...0.5.2