762a8948b9
This is mainly to not lose what I have so far. The idea is to run phpdocumentor on a select number of source code files, with the goal of rendering something like https://www.adminer.org/en/extension/ The output should be in Markdown, ideally injected into a file in the docs/ folder, and auto-deployed to the docs website.
15 lines
582 B
Twig
15 lines
582 B
Twig
## Table of Contents
|
|
|
|
| Method | Description |
|
|
|--------|-------------|
|
|
{% for class in project.indexes.classes|sort_asc %}
|
|
{% if not class.abstract %}
|
|
| [**{{ class.name }}**](#{{ class.name }}) | {{ class.summary|raw|replace({'\n': '', '\r': '', '|': '\\|'}) }} |
|
|
{% for method in class.methods %}
|
|
{% if method.visibility == 'public' %}
|
|
| [{{ class.name }}::{{ method.name }}](#{{ class.name }}{{ method.name }}) | {{ method.summary|raw|replace({'\n': '', '\r': '', '|': '\\|'}) }} {{ method.line }} {{ dump(method.getPath) }} |
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|