mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-09-27 20:06:24 +02:00
MINOR Changed default routing from cms/ to sapphire/ (committed for wrossiter)
git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@115347 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
33dfd2a931
commit
225447ef8e
@ -33,14 +33,18 @@ $isRunningTest = (
|
||||
if(!$isRunningTest) {
|
||||
Director::addRules(10, array(
|
||||
'$Action' => 'DocumentationViewer',
|
||||
'' => '->current/en/cms'
|
||||
'' => '->current/en/sapphire'
|
||||
));
|
||||
}
|
||||
|
||||
DocumentationService::set_automatic_registration(false);
|
||||
DocumentationSearch::enable();
|
||||
|
||||
try{
|
||||
DocumentationService::register("cms", realpath("../src/github/master/cms/docs/"), '2.4');
|
||||
} catch(InvalidArgumentException $e) {} // Silence if path is not found (for CI environment)
|
||||
DocumentationService::register("sapphire", BASE_PATH ."/src/github/master/sapphire/docs/", '2.4');
|
||||
} catch(InvalidArgumentException $e) {
|
||||
Debug::show($e);
|
||||
} // Silence if path is not found (for CI environment)
|
||||
|
||||
|
||||
// We want this to be reviewed by the whole community
|
||||
|
Loading…
Reference in New Issue
Block a user