mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-09-30 05:09:21 +02:00
aab89e65f8
git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@108782 467b73ca-7a2a-4603-9d3b-597d59a354a9
35 lines
970 B
PHP
35 lines
970 B
PHP
<?php
|
|
|
|
global $project;
|
|
$project = 'mysite';
|
|
|
|
global $database;
|
|
$database = 'SS_ssnewdocstest';
|
|
|
|
require_once('conf/ConfigureFromEnv.php');
|
|
|
|
MySQLDatabase::set_connection_charset('utf8');
|
|
|
|
// This line set's the current theme. More themes can be
|
|
// downloaded from http://www.silverstripe.org/themes/
|
|
SSViewer::set_theme('docs');
|
|
|
|
// enable nested URLs for this site (e.g. page/sub-page/)
|
|
SiteTree::enable_nested_urls();
|
|
|
|
// render the user documentation first
|
|
Director::addRules(20, array(
|
|
'Security//$Action/$ID/$OtherID' => 'Security',
|
|
));
|
|
DocumentationViewer::set_link_base('');
|
|
DocumentationViewer::$check_permission = false;
|
|
Director::addRules(10, array(
|
|
'$Action' => 'DocumentationViewer',
|
|
'' => '->current/en/cms'
|
|
));
|
|
DocumentationService::set_automatic_registration(false);
|
|
DocumentationService::register("cms", realpath("../src/github/master/cms/docs/"), '2.4');
|
|
|
|
// We want this to be reviewed by the whole community
|
|
BasicAuth::protect_entire_site(false);
|