Skip to content

Conversation

@AnnsAnns
Copy link
Member

Contribution description

Since we currently use a symlink (as introduced in bcd9fbe to comply with the (broken) docs folder scanning of starlight, this will break the edit link since, while technically correct, our symlink will be shown as github.com/RIOT-OS/RIOT/doc/guides/src/content/docs/foobar.md.

Since github can't parse symlinks, we need to modify the editUrl through a route middleware in order for the edit link to still function.
As soon as base directory changes get fixed, this should be removed again!

(Ty to @LasseRosenow for noticing that)

Testing procedure

Issues/PRs references

@github-actions github-actions bot added the Area: doc Area: Documentation label Oct 10, 2025
@AnnsAnns AnnsAnns added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs labels Oct 10, 2025
@riot-ci
Copy link

riot-ci commented Oct 10, 2025

Murdock results

✔️ PASSED

261600a doc/starlight: add route middleware to fix edit link

Success Failures Total Runtime
1 0 1 01m:38s

Artifacts

Copy link
Member

@LasseRosenow LasseRosenow left a comment

Choose a reason for hiding this comment

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

Very nice, thank you!

Comment on lines 11 to 12
* As soon as base directory changes get fixed, this should be removed
* again!
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there an open issue in Starlight for that so the status can be tracked?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

@LasseRosenow LasseRosenow Oct 10, 2025

Choose a reason for hiding this comment

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

Not an issue, but at least a PR

Copy link
Member Author

Choose a reason for hiding this comment

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

Added link

Copy link
Contributor

@crasbe crasbe left a comment

Choose a reason for hiding this comment

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

Please squash :)

@AnnsAnns
Copy link
Member Author

🎾 squash

@crasbe crasbe enabled auto-merge October 10, 2025 17:52
@crasbe crasbe added this pull request to the merge queue Oct 10, 2025
Merged via the queue into RIOT-OS:master with commit 4b5223b Oct 10, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: doc Area: Documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants