You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing documentation, it's often useful to show a file snippet to give readers a good idea of what they need to achieve and where (e.g. when updating a configuration file).
Being very explicit about which file is modified is useful to reduce the user confusion. For this, adding the file path and/or name right on top of the snippet is useful.
Why is this feature necessary?
This feature is useful to help user understand what file they need to edit when reading the docs.
Do you have examples of this feature in other projects?
100% — we have an open PR for this feature in #742 and an issue tracking this in #461, so will close this as a duplicate, but thanks for letting us know this is something you’d like, that’s always great feedback to hear!
What version of
starlight
are you using?0.11.0
What is your idea?
When writing documentation, it's often useful to show a file snippet to give readers a good idea of what they need to achieve and where (e.g. when updating a configuration file).
Being very explicit about which file is modified is useful to reduce the user confusion. For this, adding the file path and/or name right on top of the snippet is useful.
Why is this feature necessary?
This feature is useful to help user understand what file they need to edit when reading the docs.
Do you have examples of this feature in other projects?
Docusaurus uses a
title
property for code blocks: https://docusaurus.io/docs/markdown-features/code-blocks#code-titleParticipation
The text was updated successfully, but these errors were encountered: