A VitePress based documentation skeleton for creating CakePHP branded documentation sites.
- 🎨 CakePHP branded theme and styling
- ⚙️ Easy configuration overrides
npm installStart the development server:
npm run docs:devThe documentation will be available at http://localhost:5173
Build the static site:
npm run docs:buildPreview the production build:
npm run docs:previewThe default VitePress configuration is located in .vitepress/config.js. This file contains all the base settings for your documentation site.
For detailed information about VitePress configuration options, please refer to the VitePress Configuration Reference.
To customize the configuration without modifying the core files:
- Copy
config.default.jstoconfig.jsin the project root - Add your configuration overrides to the exported object
- Your overrides will be deep merged with the default configuration
Example (config.js):
export default {
title: 'My Plugin Documentation',
themeConfig: {
sidebar: {
'/': [
{ text: 'Home', link: '/' },
{ text: 'Guide', link: '/guide' }
]
}
}
}All markdown documentation files should be placed in the docs/ directory.
.
├── .vitepress/ # VitePress configuration
│ ├── config.js # Main VitePress config (defaults)
│ ├── utils.js # Utility functions
│ ├── theme/ # Custom theme components
│ └── plugins/ # Markdown-it plugins
├── docs/ # Documentation content (markdown files)
├── config.js # Your configuration overrides (create from config.default.js)
└── config.default.js # Template for configuration overrides
Lint your configuration and scripts:
npm run lintAuto-fix linting issues:
npm run lint:fixLicensed under The MIT License. For full copyright and license information, please see the LICENSE file.
CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Associative Data Mapping, Front Controller, and MVC. Learn more at https://cakephp.org