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

Docs - remove 'edit on GitHub' link #2754

Conversation

trankmichael
Copy link
Contributor

@trankmichael trankmichael commented Dec 16, 2017

Status

work needed

Description of Changes

Fixes #2194 .

Removes the "Edit on Github" link in the top right of the header in the doc template.

Followed the fix outlined at sphinx-doc/sphinx/#2386

Testing

Local builds with make docs works and linting passes. I am not sure how to confirm whether or not the link is actually removed because these changes are not included when the docs are built locally with make docs. Builds with make docs have "View source" instead of "Edit on Github". Both types of links were removed in these changes. Could someone advise me on how to check whether or not the "Edit on Github" link is in fact removed?

Deployment

Any special considerations for deployment? Consider both:

  1. Upgrading existing production instances. No
  2. New installs. No

Checklist

If you made changes to documentation:

  • Doc linting passed locally

@trankmichael trankmichael changed the title Docs remove edit on GitHub link Docs - remove 'edit on GitHub' link Dec 16, 2017
@ghost ghost added docs bug labels Dec 17, 2017
@ghost
Copy link

ghost commented Dec 17, 2017

@trankmichael someone with access to the readthedocs account of SecureDrop should

  • copy your branch to the repository
  • activate documentation build on this new branch
  • browse the generated documentation to verify the link is gone

I'm willing to do that if given access :-)

@b-meson b-meson self-assigned this Dec 17, 2017
@b-meson
Copy link
Contributor

b-meson commented Dec 18, 2017

I reviewed this implementation and it looks correctly implemented but I do not have access to read the docs. Removing myself as assigned but the implementation LGTM.

@b-meson b-meson removed their assignment Dec 18, 2017
@redshiftzero
Copy link
Contributor

redshiftzero commented Dec 21, 2017

Hey @trankmichael - I pushed these commits to trankmichael-docs-remove_edit_on_github_link and built the docs and unfortunately it does not look like the fix here worked:

screen shot 2017-12-21 at 12 20 15 pm

@ghost
Copy link

ghost commented Jan 1, 2018

@trankmichael gentle new-year ping ? :-)

@trankmichael
Copy link
Contributor Author

I just edited the breadcrumbs.html to remove a condition that seems to overwrite the html_context['display_github'].

After looking into this and I saw that on the original thread sphinx-doc/sphinx/#2386 someone mentioned that the fix may currently be broken due to the currently open issue sphinx-doc/sphinx/#2442 .

I am still not sure what an appropriate workflow would be for checking if this fix. Can someone check if this solved it on RTD? If it didnt Ill look into some other workarounds as mentioned above.

@trankmichael trankmichael force-pushed the docs-remove_edit_on_github_link branch from a02835f to 89edacb Compare January 11, 2018 02:48
@ghost
Copy link

ghost commented Jan 13, 2018

@redshiftzero @conorsch I would be happy to test if given access to the readthedocs account :-)

@ghost
Copy link

ghost commented Jan 22, 2018

@redshiftzero @conorsch ping ?

@redshiftzero
Copy link
Contributor

Thanks for ping @dachary - the permissions are pretty bad on readthedocs so I just went ahead and pushed the latest changes to the test branch trankmichael-docs-remove_edit_on_github_link on the shared remote for now.

Unfortunately it doesn't look like your latest change @trankmichael resolved the issue. Reading the issue you posted, I agree that it sounds like the functionality to resolve this isn't working on readthedocs. Thanks again for the work you've put into investigating and resolving this. Let me know if you want to focus on another issue and we can mark #2194 as blocked.

That said, if you'd like to continue to try additional workarounds, one way to test a change of this type would be to enable building on readthedocs of your fork of this repo, I believe that should work, though you'd need to first sign up for a readthedocs account (free). Alternatively, feel free to push changes here and ping us and we can push 'em to the branch we've been using 😄

@trankmichael
Copy link
Contributor Author

Thanks for the info! Ill make an RTD account and continue to work on this on my fork. Ill ping if i get it working

@redshiftzero
Copy link
Contributor

Hey @trankmichael - since we're in a holding pattern on this one, I'm going to close for now. Feel free to re-open if you unravel the readthedocs html_context mystery 😄.

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

Successfully merging this pull request may close these issues.

Docs: Links to edit/view on Github are broken
3 participants