Skip to content
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

Improve the docs #1743

Closed
wants to merge 4 commits into from
Closed

Improve the docs #1743

wants to merge 4 commits into from

Conversation

GuilhemN
Copy link
Member

I'd like to make the docs less boring to read and describing less edge cases.
So here a first step :)

@GuilhemN
Copy link
Member Author

GuilhemN commented Aug 8, 2017

@xabbuh do you have some time to review this please? :)

sophisticated `serializer`_ created by Johannes Schmitt and integrated via the
`JMSSerializerBundle`_.
To do so, you first need to create a ``View`` instance in your controller
action. The ``View`` object is a simple data holder that describes the response
Copy link
Member

Choose a reason for hiding this comment

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

[...] response. So it [...]

}

or it is possible to use lazy-loading:
.. note::
Copy link
Member

Choose a reason for hiding this comment

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

caution instead?

Installation is a quick (I promise!) one-step process:
Before using this bundle in your project, add it to your composer.json file:

.. code-block:: bash
Copy link
Member

Choose a reason for hiding this comment

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

terminal

three possibilities **in this order** to decide which serializer to use:

#. The service ``fos_rest.service.serializer`` if it is configured (must be an
instance of ``FOS\RestBundle\Serializer``).
Copy link
Member

Choose a reason for hiding this comment

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

this line must be indented by three spaces


1. :doc:`Setting up the bundle <1-setting_up_the_bundle>`
.. _`JMSSerializerBundle`: https://github.com/schmittjoh/JMSSerializerBundle
Copy link
Member

Choose a reason for hiding this comment

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

Maybe link to the bundle's documentation (http://jmsyst.com/bundles/JMSSerializerBundle) instead?

@@ -1,55 +0,0 @@
Step 1: Setting up the bundle
Copy link
Member

Choose a reason for hiding this comment

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

Do we really want to delete the whole file? There may be references out there linking to it.

Copy link
Member

Choose a reason for hiding this comment

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

@javiereguiluz Is there a chance we are able to create a redirection map for bundles featured on symfony.com like we do it for the Symfony docs?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm afraid it's not possible and we don't plan to implement that feature because it won't be simple to do it. However, I propose you a solution that will work:

  1. You maintain this article, but delete all the original contents.
  2. You put in this article some informational message like: "we moved this content to this other article: xxxxxx (link to the new contents)"
  3. You include this article in a hidden TOC to avoid RST issues saying that the article is not included in any TOC (to do that, just add :hidden: to the .. toctree:: directive). Since it's a hidden TOC, the article is not visible by anyone except those clicking on old links and going directly to this article.

We do the same in Symfony Docs to "hide" some contents. Example:

Learn more about Routing
------------------------

.. toctree::
    :hidden:

    controller

.. toctree::
    :maxdepth: 1
    :glob:

    routing/*

@GuilhemN
Copy link
Member Author

@xabbuh thanks for your review. I'm sorry I won't be able to fix your comments right now (I'm really running out of time) so if you can please do the changes you want otherwise maybe I'll have more time in october.

@xabbuh
Copy link
Member

xabbuh commented Sep 14, 2017

@GuilhemN of course, I'll take care of it

@GuilhemN
Copy link
Member Author

I fixed your comments, not sure what to do about the broken links though.

@Tobion
Copy link
Member

Tobion commented Aug 1, 2019

This needs a rebase. Do you plan to finish it?

@GuilhemN
Copy link
Member Author

GuilhemN commented Aug 5, 2019

I don't really remember the changes i've done here but i'll give it a look this week and check if it's still worth merging.

By the way, thanks a lot for the cleanup you've done in the repository, it's a huge work that was very much needed.

@GuilhemN
Copy link
Member Author

This a time consuming task as the docs have been modified quite a lot since, it would probably be easier to redo it from scratch at this point so let's just close it for now :)

@GuilhemN GuilhemN closed this Oct 25, 2019
@GuilhemN GuilhemN deleted the docs branch October 25, 2019 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants