Added versions of documentation in.

git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@119989 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2011-07-01 00:54:59 +00:00
parent 19be50733d
commit b53b3c5c89
1 changed files with 7 additions and 2 deletions

View File

@ -14,6 +14,11 @@ MySQLDatabase::set_connection_charset('utf8');
// downloaded from http://www.silverstripe.org/themes/
SSViewer::set_theme('docs');
if(@$_GET['db'] == "sqlite3") {
global $databaseConfig;
$databaseConfig['type'] = 'SQLite3Database';
}
// enable nested URLs for this site (e.g. page/sub-page/)
SiteTree::enable_nested_urls();
@ -41,9 +46,9 @@ DocumentationService::set_automatic_registration(false);
DocumentationSearch::enable();
try{
// DocumentationService::register("sapphire", BASE_PATH ."/src/sapphire_master/docs/", 'trunk');
DocumentationService::register("sapphire", BASE_PATH ."/src/sapphire_master/docs/", 'trunk');
DocumentationService::register("sapphire", BASE_PATH ."/src/sapphire_2.4/docs/", '2.4');
// DocumentationService::register("sapphire", BASE_PATH ."/src/sapphire_2.3/docs/", '2.3');
DocumentationService::register("sapphire", BASE_PATH ."/src/sapphire_2.3/docs/", '2.3');
} catch(InvalidArgumentException $e) {
} // Silence if path is not found (for CI environment)