diff --git a/_config.php b/_config.php index 4dbb000..13c1b24 100755 --- a/_config.php +++ b/_config.php @@ -16,13 +16,6 @@ if(!defined('DOCSVIEWER_DIR')) { define('DOCSVIEWER_DIR', array_pop($dir)); } - -// default location for documentation. If you want this under a custom url -// define your own rule in your mysite/_config.php -Director::addRules(100, array( - 'dev/docs' => 'DocumentationViewer' -)); - // define filetypes to ignore DocumentationService::set_ignored_files(array( '.', '..', '.DS_Store', diff --git a/_config/routes.yml b/_config/routes.yml new file mode 100644 index 0000000..d4fbbd5 --- /dev/null +++ b/_config/routes.yml @@ -0,0 +1,8 @@ +--- +Name: docs +After: framework/routes#coreroutes +--- +Director: + rules: + 'dev/docs': 'DocumentationViewer' + 'DocumentationOpenSearchController//$Action': 'DocumentationOpenSearchController'