2010-08-01 06:46:41 +02:00
# Sapphire Documentation Module
2010-06-24 16:22:41 +02:00
This module has been developed to read and display content from markdown files in webbrowser. It is an easy
way to bundle end user documentation within a SilverStripe installation.
2010-07-23 12:43:43 +02:00
See [Writing Documentation ](dev/docs/en/sapphiredocs/writing-documentation ) for more information on how to write markdown files which
2010-06-24 16:22:41 +02:00
are available here.
2010-07-23 12:43:43 +02:00
To include your docs file here create a __docs/en/index.md__ file. You can also include custom paths and versions. To configure the documentation system the configuration information is available on the [Configurations ](dev/docs/en/sapphiredocs/configuration-options )
2010-06-24 16:22:41 +02:00
page.
2010-08-01 06:46:41 +02:00
## Setup
By default, the documentation is available in `dev/docs` . If you want it to live on the webroot instead of a subfolder,
add the following configuration to your `mysite/_config.php` :
DocumentationViewer::set_link_base('');
Director::addRules(1, array(
'$Action' => 'DocumentationViewer',
'' => 'DocumentationViewer'
));