Skip to content

DOC: add button to edit on GitHub #39859

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
afeld opened this issue Feb 17, 2021 · 16 comments
Open

DOC: add button to edit on GitHub #39859

afeld opened this issue Feb 17, 2021 · 16 comments

Comments

@afeld
Copy link
Member

afeld commented Feb 17, 2021

Location of the documentation

https://pandas.pydata.org/docs/

Documentation problem

I'll write it as a user story:

As a pandas user, when I come across a small problem with the documentation (like a typo), I want to be able to suggest a fix with minimal friction.

Currently, contributors need to search the repository to find the corresponding source file.

Suggested fix for documentation

Having an "Edit this page on GitHub" button would help people contribute to documentation quickly. A couple of resources explaining how to do this with Sphinx:

Could limit to non-API pages to keep things simple. Possible it makes more sense to do this in the theme.

@afeld afeld added Docs Needs Triage Issue that has not been reviewed by a pandas team member good first issue and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Feb 17, 2021
@afeld afeld changed the title DOC: add links to edit on GitHub DOC: add button to edit on GitHub Feb 17, 2021
@attack68
Copy link
Contributor

I like this idea, I think it might work well, especially for typos. But it might also have problems...

The API has a more clearly defined structure, it would be easier to approve or decline changes to API docs subject to that. Changes to non-api pages are more subjective, adding in, deleting or editing a sentence here and there might be more difficult to selectively approve based on the number of new participants, and a more dynamic guidebook may be harder to use for regular users. I am assuming the number of editors picks up substantially.

@MarcoGorelli
Copy link
Member

Currently, contributors need to search the repository to find the corresponding source file.

TBH I think that having a bit of friction for making a PR is a good thing - I get the impression that PRs done directly from GitHub (usually made from patch-1 branches) tend to be of lower quality

@lithomas1 lithomas1 added the Needs Discussion Requires discussion from core team before further action label Feb 17, 2021
@MarcoGorelli
Copy link
Member

MarcoGorelli commented Feb 17, 2021

Currently, contributors need to search the repository to find the corresponding source file.

TBH I think that having a bit of friction for making a PR is a good thing - I get the impression that PRs done directly from GitHub (usually made from patch-1 branches) tend to be of lower quality

Sorry @afeld , I may have misunderstood what you were suggesting - doesn't the current [source] button on the right already do that?

image

(as an aside, thanks for all the work you're doing on the docs!)

@afeld
Copy link
Member Author

afeld commented Feb 20, 2021

Seems like the two folks who have commented already are less in favor. Anyone else think it's a good idea? If not, fine to close.

having a bit of friction for making a PR is a good thing

I get what you're saying. Setting up a pandas development is probably an hour minimum — would love a number closer to zero, particularly for working on docs — but that's a whole different problem.

doesn't the current [source] button on the right already do that?

Good point! In that case, talking about the non-API pages.

thanks for all the work you're doing on the docs!

You're welcome! Definitely the largest open source project I've worked on consistently, so getting a lot out of seeing how that works.

@MarcoGorelli
Copy link
Member

Setting up a pandas development is probably an hour minimum

True, but the docs do say that you don't need to build pandas locally if you're only interested in building the docs

Good point! In that case, talking about the non-API pages.

OK yes, if non-API pages don't have a button to make the source easily findable, then adding one seems like a good idea

@afeld
Copy link
Member Author

afeld commented Mar 19, 2021

the docs do say that you don't need to build pandas locally if you're only interested in building the docs

Beside the point here, but:

@MarcoGorelli
Copy link
Member

You're right, sorry, it just says

If you’re making documentation changes, you can skip to Contributing to the documentation but if you skip creating the development environment you won’t be able to build the documentation locally before pushing your changes.

So yeah, +1 for adding a button like [source] to non-API pages

@attack68
Copy link
Contributor

Seems like the two folks who have commented already are less in favor. Anyone else think it's a good idea? If not, fine to close.

I said "I like this idea, I think it might work well, especially for typos". sure I cited some potential probs but only potential - helping users to find the source for the non-api is also useful, so I'm more like a +0.5. :P

@Komal7209
Copy link

@afeld As its still mentioned that this issue is still opened, so I want to take up this issue and do as per you could suggest more. I want to contribute for this, do let me know where exact I could find the code base folder where I could add this

@ADing4818
Copy link

I see that this thread has not been commented on for over 3 months and this issue is still up.

I would like to contribute to this @afeld, do you know where in the codebase I could add this feature?

@ADing4818
Copy link

take

ADing4818 added a commit to ADing4818/pandas that referenced this issue Dec 6, 2021
ADing4818 added a commit to ADing4818/pandas that referenced this issue Dec 6, 2021
ADing4818 added a commit to ADing4818/pandas that referenced this issue Dec 6, 2021
ADing4818 added a commit to ADing4818/pandas that referenced this issue Dec 6, 2021
ADing4818 added a commit to ADing4818/pandas that referenced this issue Dec 6, 2021
ADing4818 added a commit to ADing4818/pandas that referenced this issue Dec 6, 2021
@arneja-arnav
Copy link

Is this Issue still open? From what I've read of the thread, the issue has been dealt with by @ADing4818

@ADing4818
Copy link

Is this Issue still open? From what I've read of the thread, the issue has been dealt with by @ADing4818

Yes, I have written a solution and have been waiting to be reviewed but the contributors have unfortunately not been responsive these past couple of months.

@MarcoGorelli
Copy link
Member

Sorry for the delay, just left a review - if I've understood the PR correctly, I don't think it quite addresses the issue

@rhshadrach
Copy link
Member

@lithomas1 - you tagged this as needs discussion a while ago, is that still the case?

@lithomas1 lithomas1 removed the Needs Discussion Requires discussion from core team before further action label Sep 18, 2024
@lithomas1
Copy link
Member

Seems like there weren't any objections, removing the label.

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