diff --git a/RoboFile.php b/RoboFile.php
index 340cb43..8e44e49 100644
--- a/RoboFile.php
+++ b/RoboFile.php
@@ -43,9 +43,9 @@ class RoboFile extends Tasks {
->addTask($this->taskFilesystemStack()
->copy('CHANGELOG.md', 'doc/about/changelog.md')
->copy('LICENSE.md', 'doc/about/license.md'))
- ->addTask($this->taskExec('mkdocs build --config-file=doc/mkdocs.yml'))
+ ->addTask($this->taskExec('mkdocs build --config-file=etc/mkdocs.yml'))
->addTask($this->taskFilesystemStack()
- ->remove(['doc/about/changelog.md', 'doc/about/license.md', 'web/mkdocs.yml', 'web/phpdoc.xml']))
+ ->remove(['doc/about/changelog.md', 'doc/about/license.md']))
->run();
}
@@ -56,7 +56,7 @@ class RoboFile extends Tasks {
function lint(): Result {
return $this->taskExecStack()
->exec('php -l example/main.php')
- ->exec('phpstan analyse')
+ ->exec('phpstan analyse --configuration=etc/phpstan.neon')
->run();
}
@@ -65,7 +65,7 @@ class RoboFile extends Tasks {
* @return Result The task result.
*/
function test(): Result {
- return $this->_exec('phpunit --configuration=test/phpunit.xml');
+ return $this->_exec('phpunit --configuration=etc/phpunit.xml');
}
/**
diff --git a/doc/mkdocs.yml b/etc/mkdocs.yml
similarity index 98%
rename from doc/mkdocs.yml
rename to etc/mkdocs.yml
index f4ebd12..82773f5 100644
--- a/doc/mkdocs.yml
+++ b/etc/mkdocs.yml
@@ -3,7 +3,7 @@ site_description: Gitea client library, in PHP.
site_author: SAB International - contact@sabcomputer.com
site_url: https://dev.sabcomputer.com/gitea.php
-docs_dir: .
+docs_dir: ../doc
site_dir: ../web
repo_name: GitHub
diff --git a/doc/phpdoc.xml b/etc/phpdoc.xml
similarity index 90%
rename from doc/phpdoc.xml
rename to etc/phpdoc.xml
index 14a943f..4a423d8 100644
--- a/doc/phpdoc.xml
+++ b/etc/phpdoc.xml
@@ -6,7 +6,7 @@
../var
- api
+ ../doc/api
diff --git a/phpstan.neon b/etc/phpstan.neon
similarity index 100%
rename from phpstan.neon
rename to etc/phpstan.neon
diff --git a/test/phpunit.xml b/etc/phpunit.xml
similarity index 88%
rename from test/phpunit.xml
rename to etc/phpunit.xml
index 00b4ecf..1ac4356 100644
--- a/test/phpunit.xml
+++ b/etc/phpunit.xml
@@ -12,7 +12,7 @@
- .
+ ../test