delucis / starlight-examples

A collection of Starlight examples and demos using StackBlitz
https://starlight-examples.netlify.app
MIT License
7 stars 1 forks source link

proposal: Edit in Editor example #10

Open HiDeoo opened 1 month ago

HiDeoo commented 1 month ago

I had to make a Starlight component override for the <EditLink/> component to change its behavior in development mode so that the content file is opened in the user's editor. I don't think it's worth publishing a new package just for this, so I thought it could maybe be a small and interesting example.

Here is a demo in StackBlitz (this works in StackBlitz too): https://stackblitz.com/edit/github-mydczx?file=src%2Fcomponents%2FEditInEditor.astro

Any thoughts on adding a similar example? I don't mind at all if it's rejected, e.g. not useful enough, I just thought I would ask before submitting a PR or forgetting about it.

delucis commented 1 month ago

Definitely! The bar for admission into the examples is low, and this example is way over it 🚀