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

Hide the "Edit this page" button on the apidoc pages #5956

Merged
merged 2 commits into from
Apr 11, 2023

Conversation

AhmedBasem20
Copy link
Contributor

@AhmedBasem20 AhmedBasem20 commented Apr 4, 2023

Fixes #4947 hide the "Edit this page" button for autogenerated API documentation pages.
This button redirects to a link of the page file on github. This script hides the button if the URL segments contain apidoc.

Copy link
Contributor

@sphuber sphuber left a comment

Choose a reason for hiding this comment

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

Thanks @AhmedBasem20 . I am not a 100% sure whether the filtering on apidoc being in the query segments may unintentionally filter out some other paths (or paths that may be added in the future), but for the time being this seems to do the trick, so let's merge it.

@sphuber sphuber merged commit 88d370c into aiidateam:main Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: 404 on "Edit this page"
2 participants