mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 15:05:50 +00:00
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:
parent
19be50733d
commit
b53b3c5c89
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user