Skip to content

Commit

Permalink
Update documentation and a bit of styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mvriel committed Mar 7, 2021
1 parent 26b852b commit fee60c5
Show file tree
Hide file tree
Showing 17 changed files with 284 additions and 496 deletions.
2 changes: 1 addition & 1 deletion data/templates/default/guides/toc-level.html.twig
@@ -1,5 +1,5 @@
{% spaceless %}
<ul>
<ul class="phpdocumentor-list">
{% for tocItem in tocItems %}
{% include "guides/toc-item.html.twig" %}
{% endfor %}
Expand Down
1 change: 0 additions & 1 deletion data/templates/default/objects/headings.css.twig
Expand Up @@ -20,7 +20,6 @@
font-size: var(--text-xxxl);
letter-spacing: var(--letter-spacing--primary);
line-height: 1.25;
margin-top: 0;
}

.phpdocumentor h3 {
Expand Down
8 changes: 8 additions & 0 deletions data/templates/default/objects/lists.css.twig
Expand Up @@ -31,3 +31,11 @@ ol.phpdocumentor-list ul.phpdocumentor-list {
li.phpdocumentor-list {
margin-bottom: var(--spacing-md);
}

.phpdocumentor dl dt {
margin-bottom: var(--spacing-xs);
}

.phpdocumentor dl dd {
margin-bottom: var(--spacing-md);
}
145 changes: 0 additions & 145 deletions docs/getting-started/changing-the-look-and-feel.rst

This file was deleted.

144 changes: 0 additions & 144 deletions docs/getting-started/creating-your-own-template-using-twig.rst

This file was deleted.

52 changes: 52 additions & 0 deletions docs/getting-started/generating-documentation.rst
@@ -0,0 +1,52 @@
Generating documentation
========================

After you have :doc:`installed<installing>` phpDocumentor you can use the ``phpdoc`` command to generate
your documentation.

Throughout this documentation we expect that the ``phpdoc`` command is available; thus whenever we ask you
to run a command, it will be in the following form

.. code-block:: shell-session
$ phpdoc
.. hint::

When you have installed a version via composer or manually you should invoke the ``phpdoc`` script in
the ``bin`` folder of your phpDocumentor installation.

Under Linux / MacOSX that would be

.. code-block:: shell-session
$ [PHPDOC_FOLDER]/bin/phpdoc
And under Windows that would be

.. code-block:: shell-session
$ [PHPDOC_FOLDER]\bin\phpdoc.bat
The basic usage of phpDocumentor is to provide an input location using the command line options
(``-d`` for a directory, ``-f`` for a file) and tell it to output your documentation to a folder of your
liking (``-t``).

For example:

.. code-block:: shell-session
$ phpdoc -d ./src -t ./docs/api
What the above example does, is scan all files in the ``src`` directory and its subdirectories, perform
an analysis and generate a website containing the documentation in the folder ``docs/api``. If you want,
you can omit the ``-t`` option, in which case the output will be written to a subfolder called ``output``.

Read more
~~~~~~~~~

- :doc:`../references/configuration`, there are a lot more options to phpDocumentor. To maintain consistent
documentation, it is good practice to define them all in a :doc:`../references/configuration` file and to
include that in your project.
- :doc:`../guides/running-phpdocumentor`, there are a ton more options you can add onto the command line; check
this out!
7 changes: 6 additions & 1 deletion docs/getting-started/index.rst
@@ -1,9 +1,14 @@
Getting started
===============

Is this the first time you work with phpDocumentor? You have come to the right section in the documentation! In the
chapters included of this section we will talk you through the installation, configuration and how to generate your
documentation.

.. toctree::
:maxdepth: 2

installing
configuration
your-first-set-of-documentation
what-is-a-docblock
generating-documentation

0 comments on commit fee60c5

Please sign in to comment.