This repository contains the source for the UserFrosting Learn documentation website — the official documentation hub for UserFrosting.
The site is built on UserFrosting 6 and serves versioned Markdown documentation pages from app/pages/{version}/. The frontend uses Vite and Vue 3 with the Pink Cupcake theme.
Without Docker:
# Terminal 1 – PHP backend
php bakery serve
# Terminal 2 – Vite dev server
npm run vite:devWith Docker:
docker compose up -dThe app is available at http://localhost:8080.
# Frontend
npm run vite:build # Production build
npm run typecheck # TypeScript type checking
npm run lint # ESLint (auto-fix)
npm run test # Vitest unit tests
npm run coverage # Coverage report
# Backend
vendor/bin/phpunit # PHPUnit tests
vendor/bin/phpstan # Static analysisDocumentation pages live in app/pages/{version}/ as Markdown files (e.g. app/pages/6.0/01.quick-start/docs.md). Folder numeric prefixes control sidebar ordering.
- Standalone pages use
docs.md; chapter landing pages usechapter.md - Images must be stored alongside pages and referenced with an absolute path starting with
/(e.g./images/screenshot.png) - Internal links use absolute paths without version numbers (e.g.
/installation/requirements)
> [!NOTE]
> Highlights information that users should take into account, even when skimming.
> [!TIP]
> Optional information to help a user be more successful.
> [!IMPORTANT]
> Crucial information necessary for users to succeed.
> [!WARNING]
> Critical content demanding immediate user attention due to potential risks.
> [!CAUTION]
> Negative potential consequences of an action.
Sample Markdown input:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi[^note1] leo risus, porta ac consectetur ac.
[^note1]: Elit Malesuada Ridiculus```
