From 673e34704240f31e51f99e426788b18792d52a04 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 3 Jul 2025 09:11:08 -0400 Subject: [PATCH 1/5] Docs: a start on an 'improve this page' feature --- Doc/improvepage.rst | 39 +++++++++++++++++++++++ Doc/tools/templates/customsourcelink.html | 14 +++++++- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 Doc/improvepage.rst diff --git a/Doc/improvepage.rst b/Doc/improvepage.rst new file mode 100644 index 00000000000000..a5e106aa866e92 --- /dev/null +++ b/Doc/improvepage.rst @@ -0,0 +1,39 @@ +:orphan: + +.. _improve-a-page: + +**************************** +Improve a documentation page +**************************** + +.. only:: html and not epub + + .. raw:: html + + + +We are always interested to hear about ways to improve the documentation. + +You were reading "PAGETITLE" at ``_. The source for that page is on +`GitHub `_. + +You have a few options for asking questions or suggesting changes: + +- You can start a discussion about the page on the Python discussion forum. + This link will start a pre-populated topic: + `Question about "PAGETITLE" `_. + +- You can open an issue on the Python GitHub issue tracker. This link will + create a new issue pre-populated with some information for you: + `Docs: problem with "PAGETITLE" `_. + +- You can `edit the page on GitHub `_ + and open a pull request, though you will need to have signed a contributor agreement before it can be merged. diff --git a/Doc/tools/templates/customsourcelink.html b/Doc/tools/templates/customsourcelink.html index 43d3a7a892a880..254b8862c25b29 100644 --- a/Doc/tools/templates/customsourcelink.html +++ b/Doc/tools/templates/customsourcelink.html @@ -1,10 +1,22 @@ {%- if show_source and has_source and sourcename %} +

{{ _('This page') }}