8000 Revamped the documentation about "Contributing Docs" by javiereguiluz · Pull Request #4223 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Revamped the documentation about "Contributing Docs" #4223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Sep 16, 2014
Merged
Prev Previous commit
Next Next commit
Added lots of fixes suggested by reviewers
  • Loading branch information
javiereguiluz committed Sep 13, 2014
commit ff66e94a27c22a01b95e2f6360dcb95abc74da29
31 changes: 17 additions & 14 deletions contributing/documentation/format.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ Markup format Use it to display
Adding Links
~~~~~~~~~~~~

**Internal links** to other documentation pages use the following syntax:
The most common type of links are **internal links** to other documentation pages,
which use the following syntax:

.. code-block:: rst

Expand All @@ -135,23 +136,25 @@ The page name should not include the file extension (``.rst``). For example:

:doc:`/cookbook/configuration/environments`

Although they are technically correct, avoid the use of relative internal links
such as the following:
The title of the linked page will be automatically used as the text of the link.
If you want to modify that title, use this alternative syntax:

.. code-block:: rst

:doc:`controller`
:doc:`Spooling Email </cookbook/email/spool>`

:doc:`event_dispatcher/introduction`
.. note::

:doc:`environments`
Although they are technically correct, avoid the use of relative internal
links such as the following:

The title of the linked page will be automatically used as the text of the link.
If you want to modify that title, use this alternative syntax:
.. code-block:: rst

.. code-block:: rst
:doc:`controller`

:doc:`Spooling Email </cookbook/email/spool>`
:doc:`event_dispatcher/introduction`

:doc:`environments`

**Links to the API** follow a different syntax, where you must specify the type
of linked resource (``namespace``, ``class`` or ``method``):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

of the linked resource

Expand All @@ -178,15 +181,15 @@ New Features or Behavior Changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you're documenting a brand new feature or a change that's been made in
Symfony2, you should precede your description of the change with a
Symfony, you should precede your description of the change with a
``.. versionadded:: 2.X`` directive and a short description:

.. code-block:: text

.. versionadded:: 2.3
The ``askHiddenResponse`` method was introduced in Symfony 2.3.

You can also ask a question and hide the response. This is particularly...
You can also ask a question and hide the response. This is particularly [...]

If you're documenting a behavior change, it may be helpful to *briefly* describe
how the behavior has changed.
Expand All @@ -197,9 +200,9 @@ how the behavior has changed.
The ``include()`` function is a new Twig feature that's available in
Symfony 2.3. Prior, the ``{% include %}`` tag was used.

Whenever a new minor version of Symfony2 is released (e.g. 2.4, 2.5, etc),
Whenever a new minor version of Symfony is released (e.g. 2.4, 2.5, etc),
a new branch of the documentation is created from the ``master`` branch.
At this point, all the ``versionadded`` tags for Symfony2 versions that have
At this point, all the ``versionadded`` tags for Symfony versions that have
reached end-of-life will be removed. For example, if Symfony 2.5 were released
today, and 2.2 had recently reached its end-of-life, the 2.2 ``versionadded``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should remove the serial comma here

tags would be removed from the new 2.5 branch.
Expand Down
0