Official documentation site for the Phenix framework, built with VitePress.
The repository contains the source code for the documentation portal, including the landing page, the guide pages, and the custom VitePress theme used to publish the site.
- Website: https://phenixphp.com
- Framework repository: https://github.com/phenixphp/framework
- Aplication repository: https://github.com/phenixphp/phenix
- Documentation repository: https://github.com/phenixphp/phenix-docs
- VitePress for the documentation site
- Vite for local development
- Tailwind CSS for styling utilities
- Custom VitePress theme components under
src/.vitepress/theme
Clone the repository with HTTPS:
git clone https://github.com/phenixphp/phenix-docs.git docs
cd docsIf you already have GitHub SSH access configured, you can also use:
git clone git@github.com:phenixphp/phenix-docs.git docs
cd docsInstall dependencies:
npm installStart the local development server:
npm run devBy default, VitePress serves the site locally so you can preview content and theme changes while editing.
npm run devStarts the local VitePress development server.
npm run buildBuilds the static documentation site.
npm run previewServes the production build locally for verification.
npm run formatRuns standard --fix on the project.
.
├── src/
│ ├── index.md # Home page
│ ├── guide/ # Documentation pages
│ ├── public/ # Static assets
│ └── .vitepress/
│ ├── config.js # VitePress site configuration
│ └── theme/ # Custom theme components and styles
├── .github/workflows/ # GitHub Actions workflows
├── package.json
└── vite.config.js
- Edit the home page in
src/index.md. - Add or update guide pages in
src/guide/. - Update navigation and sidebar entries in
src/.vitepress/config.js. - Adjust branding and UI behavior in
src/.vitepress/theme/.
The repository includes a GitHub Actions workflow at .github/workflows/deploy-production.yml.
The workflow currently connects to the production host over SSH, but the actual deployment commands are still placeholders. Before using it in production, configure the required GitHub secrets and replace the example script with the real build and publish steps for your server.
Contributions are welcome. A typical workflow is:
- Create a branch for your changes.
- Update or add documentation pages.
- Run
npm run buildto verify the site compiles correctly. - Open a pull request.
MIT