Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sidecar LaraDocs

Statamic Sidecar driver for LaraDocs. Edit your docs/ markdown files in the Statamic Control Panel without changing how LaraDocs builds or serves them.

Installation

composer require statamic/cms petebishwhip/laradocs statamic/sidecar-laradocs
php please sidecar:install laradocs

Or add the collection manually in config/statamic/sidecar.php:

'collections' => [
    'docs' => [
        'driver' => 'laradocs',
        'directory' => base_path('docs'),
    ],
],

What it does

  • Registers a docs collection 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 is docs/_index.md
  • Slugs stay plain filenames (no /); nesting comes from the tree
  • Syncs per-level order front matter on reorder
  • Clears the LaraDocs cache after saves/deletes/reorders
  • Live Preview + Visit URL via LaraDocs routes

License

MIT

About

Statamic Sidecar adapter for LaraDocs

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages