A VitePress based documentation skeleton for creating CakePHP branded documentation sites.
- 🎨 CakePHP branded theme and styling
- ⚙️ Easy configuration overrides
npm install
Start the development server:
npm run docs:dev
The documentation will be available at http://localhost:5173
Build the static site:
npm run docs:build
Preview the production build:
npm run docs:preview
The 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.js
toconfig.js
in 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 lint
Auto-fix linting issues:
npm run lint:fix
Licensed 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