-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Description
Is your feature request related to a problem? Please describe.
I very much enjoy the snippet import functionality. It adds a 'type safety' of sorts against certain types of degradation of documentation against evolving source code.
Describe the solution you'd like
Two proposed, related, enhancements:
First, it would be nice if we could inset some title or filename information, so that it can be made clear that the inset code is "direct" from the source and not exemplar, or potentially dated, etc.
Second, could this feature be married with the sort of dynamic repository linking that powers features like the edit this page on github
links?

This way, documentation that draws from specific files gives readers a frictionless opportunity to dive into the the source itself.
Describe alternatives you've considered
No response
Additional context
Thanks much. Really enjoying vitepress so far.
Validations
- Follow our Code of Conduct
- Read the docs.
- Read the Contributing Guidelines.
- Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
No labels