Enable more customisation for editLink #1467
Closed
lgastler
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What version of
starlight
are you using?0.17.2
What is your idea?
Enable additional customisations for generating the editLink when the content files are not in the default location or are part of a custom setup. This can be achieved by offering more options in astro.config.js for the edit link or by calling a function, for instance.
Why is this feature necessary?
We have a unique setup: our content (.md files) resides in a separate repository from the website/starlight app. This arrangement serves various purposes. In our pipeline, before generating different doc versions, we extract the necessary "content" from the other repo and copy it to the required location.
As a result, the base
src/content/data
portion added to the editUrl does not align with our structure, given the differing file organisation.Do you have examples of this feature in other projects?
No response
Participation
Beta Was this translation helpful? Give feedback.
All reactions