Skip to content

Commit d91b7d9

Browse files
authored
Merge pull request #9171 from webknjaz/bugfixes/docs-feedback-sphinxext-orphan
2 parents b6ca743 + 8cfdb45 commit d91b7d9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/docs_feedback_sphinxext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _modify_rst_document_source_on_read(
111111
orphan_mark = ':orphan:'
112112
is_orphan = orphan_mark in source[0]
113113
if is_orphan:
114-
source[0].replace(orphan_mark, '')
114+
source[0] = source[0].replace(orphan_mark, '')
115115
else:
116116
orphan_mark = ''
117117

news/9171.trivial.rst

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fixed moving the ``:orphan:`` to top of documents in the Sphinx
2+
extension for collecting the UX feedback from docs (initially
3+
introduced in PR #8848).

0 commit comments

Comments
 (0)