Skip to content

userfrosting/learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

955 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UserFrosting Learn Documentation

Build Codecov Join the chat Donate

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.

Running Locally

Without Docker:

# Terminal 1 – PHP backend
php bakery serve

# Terminal 2 – Vite dev server
npm run vite:dev

With Docker:

docker compose up -d

The app is available at http://localhost:8080.

Building & Testing

# 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 analysis

Contributing Documentation

Documentation 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 use chapter.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)

Markdown Syntax

Alert Syntax

> [!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.

Result : Result

Footnote Syntax

Sample Markdown input:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi[^note1] leo risus, porta ac consectetur ac.

[^note1]: Elit Malesuada Ridiculus```


About

Documentation and guide for UserFrosting

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Contributors