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

bpo-29520: Fix deprecation warning from 'defindex' template #165

Merged
merged 2 commits into from
Feb 19, 2017

Conversation

methane
Copy link
Member

@methane methane commented Feb 19, 2017

Confirmed with Sphinx 1.3.6 and 1.5.2
[bpo-29520]

<h1>{{ docstitle|e }}</h1>
<p>
{% trans %}Welcome! This is the documentation for Python {{ release }}{% endtrans %}
</p>
Copy link
Member Author

Choose a reason for hiding this comment

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

I think this paragraph is redundant. But it's out of scope of the issue.

Copy link
Member Author

Choose a reason for hiding this comment

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

There are minor change. ", last updated Feb 19, 2017." part is removed.
I remove it because "Last update: " is in footer. It's duplicated information.

@ncoghlan
Copy link
Contributor

I think the main advantage I see to @ultimatecoder's approach in #170 is that that doesn't require changing the minimum Sphinx version.

Perhaps it would make sense to go with this PR and the newer Sphinx requirement for 3.7+, while using the approach in #170 for the maintenance branches?

Copy link
Member

@berkerpeksag berkerpeksag left a comment

Choose a reason for hiding this comment

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

FWIW, I prefer this over #170. defindex comes from the very early days of Sphinx (pre 1.0 IIRC) and it was kept for backward compatibility reasons over the years. Since it's easy to drop it I don't think we should maintain a copy of defindex.html in CPython codebase.

And since we use venv to build the docs it's easy to upgrade the Sphinx version installed.

@methane
Copy link
Member Author

methane commented Feb 19, 2017

@ncoghlan I update minimum version because no one test it.
I don't think this change require updating minimum version.

sphinx-doc/sphinx#2986 (comment)

It was used to keep compatibility to before Sphinx-0.2.

@methane
Copy link
Member Author

methane commented Feb 19, 2017

I confirmed sphinx 1.2.3 can build html without any warnings.
Should I revert 'minimum version'? (approval is required again)

@berkerpeksag
Copy link
Member

That's great! Assuming you've also verified the HTML output of indexcontent.html, count me as +1 on keeping the minimum Sphinx version as 1.2.

Thanks.

@methane methane merged commit 3eea8c6 into python:master Feb 19, 2017
@methane methane deleted the support-new-sphinx branch February 19, 2017 17:07
methane added a commit to methane/cpython that referenced this pull request Feb 20, 2017
methane added a commit to methane/cpython that referenced this pull request Feb 20, 2017
methane added a commit to methane/cpython that referenced this pull request Feb 20, 2017
isidentical added a commit to isidentical/cpython that referenced this pull request Oct 25, 2021
* allow multiline debug expresisons

* check whether the bracket is top-level

* fix punctuation to top-level :

* inline f-string level check to callsites

* free fstring buffers at the end#

* fix leaked buffer on realloc#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants