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

a single string value for html_sidebars will be deprecated in 2.0 #4178

Merged

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Oct 22, 2017

Feature or Bugfix

  • Deprecation

Purpose

  • html_sidebars accepts a string as a value to keep compatible with 0.x
  • It does not emit any warnings for deprecation
  • This emits deprecation warnings
  • It will be deprecated in Sphinx-2.0

@tk0miya tk0miya added this to the 1.7 milestone Oct 22, 2017
Copy link
Contributor

@jfbu jfbu left a comment

Choose a reason for hiding this comment

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

I think you mean deprecated at 1.7 and removed at 2.0 but I am not entirely sure...

CHANGES Outdated
@@ -15,6 +15,8 @@ Incompatible changes
Deprecated
----------

* a single string value for :confval:`html_sidebars` will be deprecated in 2.0.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mean something like:

* using a string value for :confval:`html_sidebars` is deprecated and only list
  values will be accepted at 2.0.

doc/config.rst Outdated
.. deprecated:: 2.0

a single string value for ``html_sidebars`` will be deprecated in 2.0

Copy link
Contributor

Choose a reason for hiding this comment

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

It is not clear to me if you mean it is deprecated at 1.7 and removed at 2.0 or simply deprecated at 2.0.

warnings.warn('Now html_sidebars allows list of sidebar templates '
'as a value. The string value will be deprecated in '
'Sphinx-2.0.', RemovedInSphinx20Warning)

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems you mean it is deprecated at 1.7 and will be removed at 2.0 ?

@tk0miya tk0miya force-pushed the deprecate_string_for_html_sidebars branch from 6771acf to 83c266a Compare October 30, 2017 04:42
@tk0miya
Copy link
Member Author

tk0miya commented Oct 30, 2017

Thank you for reviewing! I just updated.
What I meant is ...

  • Emit deprecation warning at previous 2.0 (1.8 or 1.9?)
  • Remove the feature at 2.0

Copy link
Contributor

@jfbu jfbu left a comment

Choose a reason for hiding this comment

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

LGTM!

@tk0miya tk0miya merged commit 9ac68ed into sphinx-doc:master Oct 31, 2017
@tk0miya
Copy link
Member Author

tk0miya commented Oct 31, 2017

Thank you for reviewing!

@tk0miya tk0miya deleted the deprecate_string_for_html_sidebars branch October 31, 2017 01:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants