@@ -245,7 +245,7 @@
Documentation is powered by phpDocumentor and authored
- on October 29th, 2015 at 18:14.
+ on November 3rd, 2015 at 16:05.
diff --git a/phpDoc/master/files/lib/Pico.php.txt b/phpDoc/master/files/lib/Pico.php.txt
index bc03e0a..18c2a05 100644
--- a/phpDoc/master/files/lib/Pico.php.txt
+++ b/phpDoc/master/files/lib/Pico.php.txt
@@ -427,6 +427,7 @@ class Pico
*/
protected function loadConfig()
{
+ $config = null;
$defaultConfig = array(
'site_title' => 'Pico',
'base_url' => '',
@@ -436,13 +437,15 @@ class Pico
'twig_config' => array('cache' => false, 'autoescape' => false, 'debug' => false),
'pages_order_by' => 'alpha',
'pages_order' => 'asc',
- 'content_dir' => $this->getRootDir() . 'content-sample/',
+ 'content_dir' => null,
'content_ext' => '.md',
'timezone' => ''
);
$configFile = $this->getConfigDir() . 'config.php';
- $config = file_exists($configFile) ? require($configFile) : null;
+ if (file_exists($configFile)) {
+ require $configFile;
+ }
$this->config = is_array($this->config) ? $this->config : array();
$this->config += is_array($config) ? $config + $defaultConfig : $defaultConfig;
@@ -450,7 +453,14 @@ class Pico
if (empty($this->config['base_url'])) {
$this->config['base_url'] = $this->getBaseUrl();
}
- if (!empty($this->config['content_dir'])) {
+ if (empty($this->config['content_dir'])) {
+ // try to guess the content directory
+ if (is_dir($this->getRootDir() . 'content')) {
+ $this->config['content_dir'] = $this->getRootDir() . 'content/';
+ } else {
+ $this->config['content_dir'] = $this->getRootDir() . 'content-sample/';
+ }
+ } else {
$this->config['content_dir'] = $this->getAbsolutePath($this->config['content_dir']);
}
if (!empty($this->config['timezone'])) {
diff --git a/phpDoc/master/files/plugins.DummyPlugin.html b/phpDoc/master/files/plugins.DummyPlugin.html
index 2fe15c8..33a23e0 100644
--- a/phpDoc/master/files/plugins.DummyPlugin.html
+++ b/phpDoc/master/files/plugins.DummyPlugin.html
@@ -136,10 +136,10 @@
-
+
@@ -245,7 +245,7 @@
Documentation is powered by phpDocumentor and authored
- on October 29th, 2015 at 18:14.
+ on November 3rd, 2015 at 16:05.
diff --git a/phpDoc/master/graphs/class.html b/phpDoc/master/graphs/class.html
index 571e3b6..b3c51ef 100644
--- a/phpDoc/master/graphs/class.html
+++ b/phpDoc/master/graphs/class.html
@@ -152,7 +152,7 @@
Documentation is powered by phpDocumentor and authored
- on October 29th, 2015 at 18:14.
+ on November 3rd, 2015 at 16:05.
diff --git a/phpDoc/master/index.html b/phpDoc/master/index.html
index 4a10bae..36c5497 100644
--- a/phpDoc/master/index.html
+++ b/phpDoc/master/index.html
@@ -88,10 +88,10 @@
-
+
@@ -195,7 +195,7 @@
Documentation is powered by phpDocumentor and authored
- on October 29th, 2015 at 18:14.
+ on November 3rd, 2015 at 16:05.
diff --git a/phpDoc/master/namespaces/default.html b/phpDoc/master/namespaces/default.html
index 0c4d902..1a4f5f5 100644
--- a/phpDoc/master/namespaces/default.html
+++ b/phpDoc/master/namespaces/default.html
@@ -88,10 +88,10 @@
-
+
@@ -195,7 +195,7 @@
Documentation is powered by phpDocumentor and authored
- on October 29th, 2015 at 18:14.
+ on November 3rd, 2015 at 16:05.
diff --git a/phpDoc/master/reports/deprecated.html b/phpDoc/master/reports/deprecated.html
index 25194f5..55b3b75 100644
--- a/phpDoc/master/reports/deprecated.html
+++ b/phpDoc/master/reports/deprecated.html
@@ -142,7 +142,7 @@
Documentation is powered by phpDocumentor and authored
- on October 29th, 2015 at 18:14.
+ on November 3rd, 2015 at 16:05.
diff --git a/phpDoc/master/reports/errors.html b/phpDoc/master/reports/errors.html
index 9b79d24..b910765 100644
--- a/phpDoc/master/reports/errors.html
+++ b/phpDoc/master/reports/errors.html
@@ -89,10 +89,10 @@
@@ -104,32 +104,6 @@
-
-
-
-
- plugins/DummyPlugin.php
- 1
-
-
-
-
-
- Type |
- Line |
- Description |
-
-
-
-
- error |
- 0 |
- PPC:ERR-50000 |
-
-
-
-
-
-
+
- lib/Pico.php
+ lib/PicoPluginInterface.php
1
@@ -253,10 +227,36 @@
-
+
- lib/PicoPluginInterface.php
+ plugins/DummyPlugin.php
+ 1
+
+
+
+
+
+ Type |
+ Line |
+ Description |
+
+
+
+
+ error |
+ 0 |
+ PPC:ERR-50000 |
+
+
+
+
+
+
+
+
+
+ lib/Pico.php
1
@@ -343,7 +343,7 @@
Documentation is powered by phpDocumentor and authored
- on October 29th, 2015 at 18:14.
+ on November 3rd, 2015 at 16:05.
diff --git a/phpDoc/master/reports/markers.html b/phpDoc/master/reports/markers.html
index fa3248c..68bd5b4 100644
--- a/phpDoc/master/reports/markers.html
+++ b/phpDoc/master/reports/markers.html
@@ -88,8 +88,8 @@
@@ -163,7 +163,7 @@
Documentation is powered by phpDocumentor and authored
- on October 29th, 2015 at 18:14.
+ on November 3rd, 2015 at 16:05.