From 225447ef8e756f061acbf0ab637c0f51ce99f585 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 23 Dec 2010 01:09:31 +0000 Subject: [PATCH] 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 --- mysite/_config.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mysite/_config.php b/mysite/_config.php index 5c916bc..0e21ecf 100644 --- a/mysite/_config.php +++ b/mysite/_config.php @@ -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