mirror of https://github.com/pypa/pip
Merge pull request #9171 from webknjaz/bugfixes/docs-feedback-sphinxext-orphan
This commit is contained in:
commit
d91b7d9e88
|
@ -111,7 +111,7 @@ def _modify_rst_document_source_on_read(
|
||||||
orphan_mark = ':orphan:'
|
orphan_mark = ':orphan:'
|
||||||
is_orphan = orphan_mark in source[0]
|
is_orphan = orphan_mark in source[0]
|
||||||
if is_orphan:
|
if is_orphan:
|
||||||
source[0].replace(orphan_mark, '')
|
source[0] = source[0].replace(orphan_mark, '')
|
||||||
else:
|
else:
|
||||||
orphan_mark = ''
|
orphan_mark = ''
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
Fixed moving the ``:orphan:`` to top of documents in the Sphinx
|
||||||
|
extension for collecting the UX feedback from docs (initially
|
||||||
|
introduced in PR #8848).
|
Loading…
Reference in New Issue