UNPKG

create-vue-docs-ui

Version:

Scaffolding tool for Vue Docs UI projects - Create beautiful documentation websites with one command

165 lines (121 loc) โ€ข 5.16 kB
# create-vue-docs-ui ๐Ÿš€ **Scaffolding tool for Vue Docs UI projects** - Create beautiful documentation websites with one command! Create stunning, responsive documentation websites in minutes with Vue Docs UI. This CLI tool provides everything you need to get started quickly. ## Quick Start ```bash # Create a new documentation project npm create vue-docs-ui my-docs # Navigate to your project cd my-docs # Install dependencies npm install # Start the development server npm run dev ``` Your documentation website will be running at `http://localhost:5173`! ๐ŸŽ‰ ## Features โœจ **Zero Configuration** - Works out of the box with sensible defaults ๐Ÿ“ฑ **Responsive Design** - Looks great on all devices ๐ŸŽจ **Customizable Themes** - Light and dark themes with full customization ๐Ÿ“ **Markdown Support** - Write your docs in Markdown with enhanced features ๐Ÿ” **Built-in Search** - Powerful search functionality โšก **Lightning Fast** - Built with Vite for incredible performance ๐ŸŒ **SEO Optimized** - Perfect for public documentation sites ## What You Get When you run `npm create vue-docs-ui`, you get a complete documentation website with: - **Modern Vue 3 + TypeScript** setup - **Pre-configured routing** for seamless navigation - **Responsive layout** that works on all devices - **Sample documentation** to get you started - **Production-ready build** configuration - **Hot reload** for fast development ## Project Structure ``` my-docs/ โ”œโ”€โ”€ public/ โ”‚ โ”œโ”€โ”€ config/ โ”‚ โ”‚ โ””โ”€โ”€ site.yaml # Site configuration โ”‚ โ””โ”€โ”€ docs/ โ”‚ โ”œโ”€โ”€ guide/ โ”‚ โ”‚ โ”œโ”€โ”€ introduction.md โ”‚ โ”‚ โ”œโ”€โ”€ installation.md โ”‚ โ”‚ โ””โ”€โ”€ quick-start.md โ”‚ โ””โ”€โ”€ examples/ โ”‚ โ””โ”€โ”€ basic.md โ”œโ”€โ”€ src/ โ”‚ โ”œโ”€โ”€ App.vue # Main app component โ”‚ โ””โ”€โ”€ main.ts # Application entry point โ”œโ”€โ”€ index.html โ”œโ”€โ”€ package.json โ””โ”€โ”€ vite.config.js ``` ## Customization ### Site Configuration Edit `public/config/site.yaml` to customize your site: ```yaml site: title: "My Documentation" description: "My awesome documentation website" logo: "๐Ÿ“š" author: "Your Name" navbar: items: - title: "Home" link: "/" - title: "GitHub" link: "https://github.com/username/repo" external: true theme: defaultMode: "light" allowToggle: true colors: primary: "#3b82f6" secondary: "#64748b" ``` ### Writing Documentation Create Markdown files in `public/docs/` and they'll automatically be available as pages. Vue Docs UI supports: - **Enhanced Markdown** with syntax highlighting - **Tables and lists** with beautiful styling - **Code blocks** with language-specific highlighting - **Math equations** (LaTeX support) - **Custom HTML** when needed ## Commands ```bash # Development npm run dev # Start development server # Production npm run build # Build for production npm run preview # Preview production build ``` ## Requirements - **Node.js** 14.18+ or 16+ - **npm** 6+ or **yarn** 1.22+ ## Related Projects - [vue-docs-ui](https://github.com/shenjianZ/vue-docs-ui) - The underlying documentation framework - [Vue.js](https://vuejs.org/) - The progressive JavaScript framework - [Vite](https://vitejs.dev/) - Next generation frontend tooling ## ๐Ÿ“ž Support & Community - ๐Ÿ“– [Documentation](https://github.com/shenjianZ/vue-docs-ui) - ๐Ÿ› [Report Issues](https://github.com/shenjianZ/create-vue-docs-ui/issues) - ๐Ÿ’ก [Feature Requests](https://github.com/shenjianZ/create-vue-docs-ui/discussions) - ๐Ÿ’ฌ [Join Discussions](https://github.com/shenjianZ/vue-docs-ui/discussions) - ๐Ÿ“ง [Email Support](mailto:contact@vuedocsui.com) ## ๐Ÿค Contributing We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details. ๐Ÿ“– **Documentation in multiple languages:** - ๐Ÿ‡บ๐Ÿ‡ธ [English Contributing Guide](CONTRIBUTING.md) - ๐Ÿ‡จ๐Ÿ‡ณ [ไธญๆ–‡่ดก็ŒฎๆŒ‡ๅ—](CONTRIBUTING-zh.md) ### Quick Contributing - ๐Ÿ› [Report bugs](https://github.com/shenjianZ/create-vue-docs-ui/issues/new) - ๐Ÿ’ก [Request features](https://github.com/shenjianZ/create-vue-docs-ui/discussions/new) - ๐Ÿ“– [Improve documentation](https://github.com/shenjianZ/create-vue-docs-ui/edit/master/README.md) - ๐ŸŽจ [Enhance templates](https://github.com/shenjianZ/create-vue-docs-ui/tree/master/template) ## ๐Ÿ“Š Stats ![npm](https://img.shields.io/npm/v/create-vue-docs-ui?style=flat-square&logo=npm) ![downloads](https://img.shields.io/npm/dt/create-vue-docs-ui?style=flat-square&logo=npm) ![GitHub stars](https://img.shields.io/github/stars/shenjianZ/create-vue-docs-ui?style=flat-square&logo=github) ![GitHub issues](https://img.shields.io/github/issues/shenjianZ/create-vue-docs-ui?style=flat-square&logo=github) ## License MIT ยฉ [Vue Docs UI Team](https://github.com/shenjianZ/vue-docs-ui) --- **Happy documenting! ๐Ÿ“š**