Skip to content

Conversation

@chrisburr
Copy link
Member

Summary

  • Track source repository and branch for each documentation file during build
  • Add on_page_context hook to override page.edit_url for correct edit links
  • Files from diracx-charts now point to that repo (master branch)
  • Files from diracx-web now point to that repo (main branch)
  • Files from diracx correctly point to main branch (not master)

Fixes DIRACGrid/diracx#614

Track the source repository and branch for each documentation file
during the build process. Add on_page_context hook to override
page.edit_url, pointing to the correct repository instead of always
using the primary diracx repo.

This fixes GitHub issue DIRACGrid/diracx#614 where edit buttons
pointed to incorrect URLs for files from diracx-charts and diracx-web.
@chrisburr chrisburr requested a review from chaen January 29, 2026 02:13
@chrisburr chrisburr marked this pull request as ready for review January 29, 2026 02:13
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.

Add an "edit" button on the documentation

2 participants