Skip to content

[RFC][Proof PR] use "deprecated" and "versionchanged" directives #11154

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

Closed
wants to merge 1 commit into from

Conversation

OskarStark
Copy link
Contributor

@OskarStark OskarStark commented Mar 14, 2019

I have a small proposal regarding the versionadded directives. We are using this directive for new stuff, deprecated stuff and we are using it for example for new/changed stuff regarding other librariers (for example Swiftmailer, Webpack, Twig etc.)

If I read this correct, RST supports the following directives out of the box: .. versionadded:: (for sure), .. versionchanged:: and .. deprecated:::
https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html?highlight=versionadded

Screenshot 2019-03-14 08 58 46

My proposal: use versionadded only for new Symfony stuff, use versionchanged as versionadded, but only for external libs/projects and do not use versionadded for deprecations anymore, lets use the deprecated directive.

This PR shows, that the build is 💚 , the only thing left is to check the final markup, if it fits the Symfony website style.

What do you think?

@OskarStark OskarStark marked this pull request as ready for review March 14, 2019 08:20
@OskarStark OskarStark closed this Mar 14, 2019
@OskarStark OskarStark reopened this Mar 14, 2019
@OskarStark OskarStark changed the title [Proof PR] if Sphinx 1.3 supports deprecated and versionchanged directives [RFC][Proof PR] if Sphinx 1.3 supports deprecated and versionchanged directives Mar 16, 2019
@OskarStark OskarStark changed the title [RFC][Proof PR] if Sphinx 1.3 supports deprecated and versionchanged directives [RFC][Proof PR] use "deprecated" and "versionchanged" directives Mar 16, 2019
@wouterj
Copy link
Member

wouterj commented Mar 16, 2019

I would not introduce versionchanged, I think it doesn't add much. 👍 for the deprecated directive. We should check whether this directive is allowed by our new builder, @weaverryan?

javiereguiluz added a commit that referenced this pull request Mar 20, 2019
…karStark)

This PR was squashed before being merged into the 3.4 branch (closes #11178).

Discussion
----------

Use the ".. deprecated::" directive for deprecations

Refs #11154

## Todo:

- [ ] We need no ensure the correct html markup
- [ ] @symfony/docs-team please review the new documentation about "[how/when to use this new directive](2b0504d)"

Commits
-------

b48d0c7 Use the \".. deprecated::\" directive for deprecations
@javiereguiluz
Copy link
Member

Closing because this has already been implemented in another PR. Thanks!

@OskarStark OskarStark deleted the test-new-directives branch March 20, 2019 11:43
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.

4 participants