Skip to content
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

Feature Request: Global edit_on_github_branch setting for all versions #6297

Closed
pllim opened this issue Oct 16, 2019 · 11 comments
Closed

Feature Request: Global edit_on_github_branch setting for all versions #6297

pllim opened this issue Oct 16, 2019 · 11 comments
Labels
Feature New feature Needed: design decision A core team decision is required

Comments

@pllim
Copy link
Contributor

pllim commented Oct 16, 2019

Details

cc @bsipocz

Expected Result

"On GitHub -> Edit" option to only allow edit on master branch of the repo. We attempted this at astropy/astropy#9379 but realized that it would not retroactively apply to all the released versions we ever pushed out or archived.

The reason we want this is to prevent contributor to accidentally open a pull request against stale/release branches. We only accept pull request against the master branch.

Is there a global setting that we can use in, say, .readthedocs.yml to control this? Thank you!

Actual Result

Contributor clicked on the "Edit" link and accidentally opened a pull request against the wrong branch in the source code repository.

@stsewd
Copy link
Member

stsewd commented Oct 16, 2019

Sorry, don't think this isn't possible without rebuilding all versions.

Don't think we have a pattern to edit old versions without rebuilding. You could branch those versions and add the change and push that new version to rtd and add a redirect from the old version to the fixed version.

Is there a global setting that we can use in, say, .readthedocs.yml to control this?

We don't plan to add global setting on the configuration file, only per version settings.

@pllim
Copy link
Contributor Author

pllim commented Oct 16, 2019

Thanks for the quick reply. We'll think of other ways on our end.

@pllim pllim closed this as completed Oct 16, 2019
@bsipocz
Copy link
Contributor

bsipocz commented Oct 16, 2019

@stsewd - The link live however in the same dropdown menu the list of versions, too. Isn't there a way to patch that box in the deployed versions?

@stsewd
Copy link
Member

stsewd commented Oct 16, 2019

The link live however in the same dropdown menu the list of versions

That link is generated dynamically yes, but we always display the link from the same version the user is reading, we are working in making that configurable (but only something like display or not that link, no to change the content).

You can patch that menu using a custom js file, but that requires re building the versions too.

@bsipocz
Copy link
Contributor

bsipocz commented Oct 16, 2019

Being able to not display that link would solve all our headaches, so I'm extremely happy to hear that you're working on making that possible.

@pllim pllim reopened this Oct 16, 2019
@stale
Copy link

stale bot commented Nov 30, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: stale Issue will be considered inactive soon label Nov 30, 2019
@stsewd
Copy link
Member

stsewd commented Dec 2, 2019

@pllim did you reopen the issue to still request the global edit_on_github_branch setting? Or is there something else?

@stale stale bot removed the Status: stale Issue will be considered inactive soon label Dec 2, 2019
@pllim
Copy link
Contributor Author

pllim commented Dec 2, 2019

Yes, I did re-open it due to #6297 (comment) . Sorry for the confusion!

@stsewd
Copy link
Member

stsewd commented Dec 2, 2019

@pllim so is the same requests as described in the description? or the one from the comment? (being able to not display the link)

@pllim
Copy link
Contributor Author

pllim commented Dec 2, 2019

Being able to not display the link would be a workaround solution for lacking a global setting, which I will accept. Does that make sense?

@humitos
Copy link
Member

humitos commented Sep 15, 2023

Thanks all for your feedback here.

We are working a new project called addons which is currently in beta (read more in our blog post at https://blog.readthedocs.com/addons-flyout-menu-beta/) which includes a new completely redesign of the flyout. We are considering these type of configuration there and we have an issue for this: readthedocs/addons#51 and readthedocs/addons#13

We will exposing the whole data that Read the Docs uses to build the flyout via a javascript event that users can subscript to and render the flyout exactly how they want: adding more section, removing sections, showing the language selector somewhere else, etc.

Please subscribe there for updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature Needed: design decision A core team decision is required
Projects
None yet
Development

No branches or pull requests

4 participants