silverstripe / docstation
A module for viewing user docs in the CMS
Installs: 773
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 3
Open Issues: 1
Type:silverstripe-vendormodule
Requires
- php: ^7.4 || ^8.0
- league/commonmark: ^2.0.2
- silverstripe/admin: ^1.6
- silverstripe/framework: ^4.10
- silverstripe/graphql: ^4
- silverstripe/vendor-plugin: ^1
- silverstripe/versioned: ^1.6
Requires (Dev)
- phpunit/phpunit: ^9.5
- silverstripe/cms: ^4.6
- squizlabs/php_codesniffer: ^3
This package is auto-updated.
Last update: 2024-10-23 17:16:23 UTC
README
Provides a CMS UI for browsing markdown documentation colocated with the project.
Installation
composer require silverstripe/docstation
Requirements
- silverstripe/graphql:4.x-dev
- PHP >= 7.4
Example:
app/
docs/
Adding-a-Product.md
Cancelling-an-Order.md
app/docs/Adding-a-Product.md
---
title: How do add a product
sort: 1
---
## Been wondering how to add a product?
This guide will give you a
* Step
* by
* step
Tutorial!
Customising the documentation directory
Defaults to app/docs
.
SilverStripe\Docstation\Docstation:
docs_dir: 'app/mydocs'
It also supports module resolution syntax.
SilverStripe\Docstation\Docstation:
docs_dir: 'somevendor/somemodule: docs'
To do:
- Nested documentation, hierarchical navigation (not sure this is a great idea)
- Make it look not terrible