@docmd/plugin-pwa
v0.6.2
Published
Progressive Web App (PWA) plugin for docmd.
Downloads
843
Maintainers
Readme
@docmd/plugin-pwa
Turns your docmd documentation into a blazingly fast, installable Progressive Web App (PWA).
Configuration
The plugin is included in @docmd/core and can be enabled with a single line.
// docmd.config.js
module.exports = {
plugins: {
pwa: {
// All options are optional
themeColor: '#0097ff',
bgColor: '#ffffff',
logo: 'assets/images/logo.png', // Fallback to config.logo or config.favicon
}
}
}Features
- Web Manifest: Automatically generates
manifest.webmanifest. - Service Worker: Intelligent offline caching with background updates.
- Cache Busting: Automatic timestamp-based cache purging on every build.
- Ghost Removal: Automatically unregisters workers if the plugin is disabled.
The docmd Ecosystem
docmd is a modular system. Here are the official packages:
The Engine
- @docmd/core - The CLI runner and build orchestrator.
- @docmd/parser - The pure Markdown-to-HTML logic.
- @docmd/live - The browser-based Live Editor bundle.
Interface & Design
- @docmd/ui - Base EJS templates and assets.
- @docmd/themes - Official themes (Sky, Ruby, Retro).
Plugins
- @docmd/plugin-installer - Plugin installer for docmd.
- @docmd/plugin-search - Offline full-text search.
- @docmd/plugin-pwa - Progressive Web App support.
- @docmd/plugin-mermaid - Diagrams and flowcharts.
- @docmd/plugin-seo - Meta tags and Open Graph data.
- @docmd/plugin-sitemap - Automatic sitemap generation.
- @docmd/plugin-llms - AI context generation.
- @docmd/plugin-analytics - Google Analytics integration.
License
Distributed under the MIT License. See LICENSE for more information.
