Skip to content

Commit

Permalink
Merge pull request #9171 from webknjaz/bugfixes/docs-feedback-sphinxe…
Browse files Browse the repository at this point in the history
…xt-orphan
  • Loading branch information
pradyunsg authored Nov 29, 2020
2 parents b6ca743 + 8cfdb45 commit d91b7d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs_feedback_sphinxext.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _modify_rst_document_source_on_read(
orphan_mark = ':orphan:'
is_orphan = orphan_mark in source[0]
if is_orphan:
source[0].replace(orphan_mark, '')
source[0] = source[0].replace(orphan_mark, '')
else:
orphan_mark = ''

Expand Down
3 changes: 3 additions & 0 deletions news/9171.trivial.rst
Original file line number Diff line number Diff line change
@@ -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).

0 comments on commit d91b7d9

Please sign in to comment.