mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00:00
MINOR: tidied up documentation formatting and added missing statement
This commit is contained in:
parent
b41ab528b7
commit
a9e5a78037
@ -18,19 +18,22 @@ you need to add the following to your applications _config.php file:
|
||||
|
||||
DocumentationSearch::enable();
|
||||
|
||||
After adding that line you will also need to build the indexes of the search. You can run the following from your webbrowser or via sake
|
||||
After adding that line you will also need to build the indexes of the search. You can do this either via your web browser by accessing
|
||||
|
||||
http://yoursite.com/dev/tasks/RebuildLuceneDocsIndex?flush=1
|
||||
|
||||
Or rebuild it via sake. You will want to set this up as a cron job if your documentation search needs to be updated on the fly
|
||||
|
||||
sake dev/tasks/RebuildLuceneDocsIndex flush=1
|
||||
|
||||
|
||||
### Using a URL other than /dev/docs/
|
||||
|
||||
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`:
|
||||
add the following configuration to your.
|
||||
|
||||
DocumentationViewer::set_link_base('');
|
||||
Director::addRules(1, array(
|
||||
'$Action' => 'DocumentationViewer',
|
||||
'' => 'DocumentationViewer'
|
||||
));
|
||||
|
Loading…
x
Reference in New Issue
Block a user