Skip to content

docmd v0.1.2

Choose a tag to compare

@mgks mgks released this 12 May 06:17
· 1782 commits to main since this release

✨ Features and Improvements

Added

  • New assets management system:
    • Added support for a root-level assets/ folder that gets automatically copied to the output directory
    • User assets now take precedence over docmd's built-in assets with the same name
    • docmd init now creates an assets/ directory with css, js, and images subdirectories
  • New documentation:
    • Added dedicated documentation for assets management
    • Improved custom CSS and JS documentation
    • Added cross-references between related documentation pages

Changed

  • Build process improvements:
    • Added --preserve flag to keep existing asset files when needed
    • Improved the build process to only clean HTML files and sitemap.xml, preserving all other files
    • Reduced console output verbosity in development mode
  • Project initialization:
    • Enhanced init command to create assets directory structure
    • Improved handling of existing files during initialization
    • Better console output during initialization
  • Development server:
    • Added support for watching the root assets/ directory for changes
    • Improved console output to hide internal implementation details
    • Added DOCMD_DEV environment variable for development mode
    • Enhanced browser auto-refresh with WebSocket reconnection and polling fallback
    • Improved browser compatibility for Safari and other browsers

🐞 Bug Fixes

  • Fixed issue where all file creation was skipped if user chose not to override existing files
  • Fixed issue where directories were listed in the warning about existing files
  • Fixed issue where existing assets were wiped during build process
  • Fixed GitHub Pages deployment compatibility issues with assets
  • Fixed dev server not detecting changes in user assets directory
  • Fixed browser auto-refresh not working reliably in Safari and other browsers
  • Fixed excessive console output during development mode

❤️ Support the Project – Buy me a coffee ☕.

This is a beta release. While we've tested extensively, you may encounter unexpected issues. Please report them to help improve future releases.