-
-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation and a bit of styling
- Loading branch information
Showing
17 changed files
with
284 additions
and
496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
144 changes: 0 additions & 144 deletions
144
docs/getting-started/creating-your-own-template-using-twig.rst
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.