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:
Ingo Schommer 2010-12-23 01:09:31 +00:00
parent 33dfd2a931
commit 225447ef8e
1 changed files with 7 additions and 3 deletions

View File

@ -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