Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Docs: a start on an 'improve this page' feature#136246

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
nedbat wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromnedbat:nedbat/improve-docs-page

Conversation

nedbat
Copy link
Member

@nedbatnedbat commentedJul 3, 2025
edited by github-actionsbot
Loading

At the Docs WG meeting, we talked about smoothing the path for people to suggest improvements to the docs. This is a start. It uses more JavaScript than we are used to.

I haven't done anything to trim down the "Report a bug" page. Ideas welcome.


📚 Documentation preview 📚:https://cpython-previews--136246.org.readthedocs.build/

LamentXU123, Eclips4, mattwang44, and m-aciek reacted with thumbs up emoji
@nedbatnedbatforce-pushed thenedbat/improve-docs-page branch fromb8f50bc to673e347CompareJuly 3, 2025 14:57
Copy link
Member

@StanFromIrelandStanFromIreland left a comment

Choose a reason for hiding this comment

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

This looks great. I have some little thoughts.

Also, this should probably get an issue and blurb?


- You can start a discussion about the page on the Python discussion forum.
This link will start a pre-populated topic:
`Question about "PAGETITLE" <https://discuss.python.org/new-topic?category=documentation&title=Question+about+%22PAGETITLE%22&body=About+the+page+at+PAGEURL%3A>`_.

Choose a reason for hiding this comment

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

I think we should use the path here, as otherwise it can be ambiguous, e.g. there are severalIntroduction in the docs.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Try the live version in the preview build. The body gets populated with the URL.

Choose a reason for hiding this comment

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

I see, the issue one however does not work for me, it sends me to the choose a template page. I also think good titles would be nice for triage/finding purposes.

`Docs: problem with "PAGETITLE" <https://github.com/python/cpython/issues/new?title=Docs%3A+problem+with+%22PAGETITLE%22&labels=docs&body=The+page+at+PAGEURL+has+a+problem%3A>`_.

- You can `edit the page on GitHub <https://github.com/python/cpython/blob/main/Doc/PAGESOURCE?plain=1>`_
and open a pull request, though you will need to have signed a contributor agreement before it can be merged.

Choose a reason for hiding this comment

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

Just a little note, I think mentioning the contribution agreement here may scare away people, as it does not explain much about it, and does not pop up when they edit the page.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yes, I was torn about putting it here, we can drop it if needed.

@ryan-duve
Copy link
Contributor

I like the"This link will start a pre-populated topic:" link, but I wonder whether "less is more" applies here. In particular, I mean if the"Improve this page" link directly goes to the pre-populated Discourse form, would that more directly get users to where they can make a suggestion? If so, would it be better for"Improve this page" to link straight to Discourse?

@nedbat
Copy link
MemberAuthor

I like the"This link will start a pre-populated topic:" link, but I wonder whether "less is more" applies here. In particular, I mean if the"Improve this page" link directly goes to the pre-populated Discourse form, would that more directly get users to where they can make a suggestion? If so, would it be better for"Improve this page" to link straight to Discourse?

I'm not sure Discourse is the right place for everyone. Some people will have edits, some will have questions, some will want to discuss ideas for improvement. I appreciate the desire to make the path as well-greased as possible. If we do decide to link straight to Discourse, we'll need to change the link from "Improve this page", because Discourse is not the place to do that directly.

StanFromIreland and m-aciek reacted with thumbs up emoji

<li>
<a href="https://github.com/python/cpython/blob/main/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}"
<a href="https://github.com/python/cpython/blob/main/Doc/{{ sourcename|replace('.rst.txt', '.rst?plain=1') }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<ahref="https://github.com/python/cpython/blob/main/Doc/{{sourcename|replace('.rst.txt', '.rst?plain=1') }}"
<ahref="https://github.com/python/cpython/blob/main/Doc/{{pagename }}.rst?plain=1"

Simplification suggestion;reference

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@m-aciekm-aciekm-aciek left review comments

@StanFromIrelandStanFromIrelandStanFromIreland left review comments

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner will be requested when the pull request is marked ready for reviewAA-Turner is a code owner

@hugovkhugovkAwaiting requested review from hugovkhugovk will be requested when the pull request is marked ready for reviewhugovk is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@nedbat@ryan-duve@m-aciek@StanFromIreland

[8]ページ先頭

©2009-2025 Movatter.jp