Skip to content

Conversation

@AnnsAnns
Copy link
Member

@AnnsAnns AnnsAnns commented Oct 13, 2025

Contribution description

@LasseRosenow noticed that due to the switch to a symlink instead of setting the baseDirectory (as base directory changes are currently broken on starlight (See: 261600a, #21769 and withastro/starlight#3332)) MDX notes (and presumably other syntax?) are utterly broken.

To circumvent this for now, we do a full copy of the guides folder on deploy builds, this appears to "fix" the issue for now.

See: withastro/starlight#3470 for a bug report about this.

Testing procedure

Issues/PRs references

@github-actions github-actions bot added the Area: doc Area: Documentation label Oct 13, 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 13, 2025
@riot-ci
Copy link

riot-ci commented Oct 13, 2025

Murdock results

✔️ PASSED

306f614 doc/starlight: add preview command

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

Artifacts

dev: install
@echo "Linking RIOT documentation source files..."
@rm -rf $(CURDIR)/src/content/docs
@ln -s ../../../guides $(CURDIR)/src/content/docs
Copy link
Member

Choose a reason for hiding this comment

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

Why not copy as well? If I see it correct, this means that dev would still have broken :::note blocks right?

Copy link
Member Author

Choose a reason for hiding this comment

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

The big disadvantage would be no hot-reloading, I'd rather have no note blocks than starlight function like doxygen

Copy link
Member Author

Choose a reason for hiding this comment

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

We can add a dev-build-preview that uses npm run preview on the deployment version that was generated using make build

Copy link
Member

Choose a reason for hiding this comment

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

Fair I think a make preview command is enough

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 a make preview command

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.

Not sure about still using the symlink in dev

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.

Thank you for fixing this @AnnsAnns! 🐸

@AnnsAnns
Copy link
Member Author

AnnsAnns commented Oct 13, 2025

The starlight maintainers (already) responded back. It looks like this (and all the other issue we have related to it) will possibly be fixed in the next minor release so if everything goes well this commit will be fairly short-lived :)

@AnnsAnns AnnsAnns enabled auto-merge October 13, 2025 12:44
@AnnsAnns AnnsAnns added this pull request to the merge queue Oct 13, 2025
Merged via the queue into RIOT-OS:master with commit 2448681 Oct 13, 2025
28 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