From be3b5f1141ac5c1b8d904e897429149cf4be7713 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Tue, 23 Jan 2024 17:59:30 +0100 Subject: [PATCH] Add phpDocumentor tooling --- .gitignore | 2 ++ .phpdoc/guide/index.rst | 0 .phpdoc/template/base.html.twig | 14 ++++++++++++ phpdoc.dist.xml | 38 +++++++++++++++++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 .phpdoc/guide/index.rst create mode 100644 .phpdoc/template/base.html.twig create mode 100644 phpdoc.dist.xml diff --git a/.gitignore b/.gitignore index fe915ae..60377ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ +/.phpdoc/cache/ /.vscode/ /vendor/ .php-cs-fixer.php composer.lock phpcs.xml +phpdoc.xml phpstan.neon diff --git a/.phpdoc/guide/index.rst b/.phpdoc/guide/index.rst new file mode 100644 index 0000000..e69de29 diff --git a/.phpdoc/template/base.html.twig b/.phpdoc/template/base.html.twig new file mode 100644 index 0000000..926c30b --- /dev/null +++ b/.phpdoc/template/base.html.twig @@ -0,0 +1,14 @@ +{% extends 'layout.html.twig' %} + +{% +set topMenu = { + "menu": [ + { "name": "Packagist", "url": "https://packagist.org/packages/opencultureconsulting/basics"} + ], + "social": [ + { "iconClass": "fab fa-github", "url": "https://github.com/opencultureconsulting/php-basics"}, + { "iconClass": "fab fa-mastodon", "url": "https://openbiblio.social/@occ"}, + { "iconClass": "fas fa-envelope-open-text", "url": "mailto:office@opencultureconsulting.com"} + ] +} +%} diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml new file mode 100644 index 0000000..394ebee --- /dev/null +++ b/phpdoc.dist.xml @@ -0,0 +1,38 @@ + + + PHP Basics + + doc + .phpdoc/cache + + + + + /src + + + php + + Basics + true + + extends + implements + phpstan-require-implements + + + + + /.phpdoc/guide + + guides + + + + + +