@@ -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 bc03e0abe652a669b2830aa16b82ff61143285ad..18c2a05d064f7b524c4fb8096f9627694452f25b 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 2fe15c84835b9e7845befe674e2be22aaeec42c1..33a23e0cbadd6983e776d8119151aad4e6735a69 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 571e3b6d7d051aee62140f3ffc8d2c9970848de7..b3c51ef547f231cd91e4f3097ea7d1e6f8e77b54 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 4a10bae7994428bda8be08e0a21ba0c85fe18a5c..36c5497a21bb3db4ce4cd608e593f4877e264601 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 0c4d902c54855c49b63d3d211064cd89af8cc30a..1a4f5f5a4eef889354aa7161bb493313bf7d6e43 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 25194f588129264f1c41ed6455770470b6e8ece4..55b3b75706fac54f12bd607649a3fa8360266063 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 9b79d240f0f4a4dd81f3ee8a212b498d966e1558..b910765e051249cf5a6a8499c56dd0c75b2af1bf 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 fa3248c512766157f037efd8a2a40b586139bdfb..68bd5b4335f309af269c1b181afe84c21c52c3b7 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.