Skip to content

Conversation

@zastrowm
Copy link
Owner

Description

Test PR

Related Issues

Type of Change

  • New content
  • Content update/revision
  • Structure/organization improvement
  • Typo/formatting fix
  • Bug fix
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING document
  • My changes follow the project's documentation style
  • I have tested the documentation locally using mkdocs serve
  • Links in the documentation are valid and working

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

mkdocs uses relative links to files while Astro by default uses slugs (and does no built-in validation). Instead of requiring slugs everywhere add an override to do a conversion of links based on the or based on the relative path.

An alternative solution would be to do this when converting the docs (e.g. via update-docs.ts) but honestly the devx for linking using slugs everywhere was uglier whereas this is more natural IMHO.  Long-term we can probably normalize a bit more, but in the short term this is a good solution.

We also started excluding index.md files from the examples directory as they aren't intended to be pages on the docs - they are only present for readability when on GitHub.
@zastrowm zastrowm closed this Feb 10, 2026
@zastrowm zastrowm reopened this Feb 10, 2026
@zastrowm zastrowm closed this Feb 10, 2026
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.

1 participant