Statamic Sidecar driver for LaraDocs. Edit your docs/ markdown files in the Statamic Control Panel without changing how LaraDocs builds or serves them.
composer require statamic/cms petebishwhip/laradocs statamic/sidecar-laradocs
php please sidecar:install laradocsOr add the collection manually in config/statamic/sidecar.php:
'collections' => [
'docs' => [
'driver' => 'laradocs',
'directory' => base_path('docs'),
],
],- Registers a
docscollection pointed at your LaraDocs content directory - Enables full Tree mode — drag pages to nest; files move on disk (
docs/guide/routing.md) - Section pages with children become
{slug}/_index.md; the site root isdocs/_index.md - Slugs stay plain filenames (no
/); nesting comes from the tree - Syncs per-level
orderfront matter on reorder - Clears the LaraDocs cache after saves/deletes/reorders
- Live Preview + Visit URL via LaraDocs routes
MIT