2010-03-04 05:39:02 +01:00
|
|
|
<?php
|
2011-01-11 02:35:59 +01:00
|
|
|
/**
|
|
|
|
* Documentation Configuration
|
|
|
|
*
|
|
|
|
* Please override any of these options in your own projects _config.php file.
|
2012-04-08 11:36:16 +02:00
|
|
|
* For more information and documentation see docsviewer/docs/en
|
2011-01-11 02:35:59 +01:00
|
|
|
*/
|
|
|
|
|
2012-04-08 11:36:16 +02:00
|
|
|
if(!defined('DOCSVIEWER_PATH')) {
|
|
|
|
define('DOCSVIEWER_PATH', dirname(__FILE__));
|
2012-04-08 11:23:49 +02:00
|
|
|
}
|
|
|
|
|
2012-04-08 11:36:16 +02:00
|
|
|
if(!defined('DOCSVIEWER_DIR')) {
|
2012-04-14 07:00:22 +02:00
|
|
|
$dir = explode(DIRECTORY_SEPARATOR, DOCSVIEWER_PATH);
|
|
|
|
|
|
|
|
define('DOCSVIEWER_DIR', array_pop($dir));
|
2012-04-08 11:23:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-01-21 05:10:41 +01:00
|
|
|
// default location for documentation. If you want this under a custom url
|
|
|
|
// define your own rule in your mysite/_config.php
|
2010-03-04 05:39:02 +01:00
|
|
|
Director::addRules(100, array(
|
|
|
|
'dev/docs' => 'DocumentationViewer'
|
2012-11-08 17:26:17 +01:00
|
|
|
));
|
|
|
|
|
|
|
|
// define filetypes to ignore
|
|
|
|
DocumentationService::set_ignored_files(array(
|
|
|
|
'.', '..', '.DS_Store',
|
|
|
|
'.svn', '.git', 'assets', 'themes', '_images', '_resources'
|
|
|
|
));
|