[docs-infra] Add a code path heading to the code block #38381
Labels
design
This is about UI or UX design, please involve a designer
enhancement
This is not a bug, nor a new feature
scope: docs-infra
Specific to the docs-infra product
Problem
Sometimes, we want to say what is the name of the file a certain code block is part of. There are multiple instances of this throughout the documentation, and we seem to do it in different ways here and there:
We could be much more polished and potentially clearer if we included this information within the code block. Sometimes, it can be a good redundancy, too ⎯ we don't need to remove the paragraph introduction to the file.
Solution design
There might be exciting challenges to pulling this off from a code perspective, but as far as design, this is what I'm thinking of. We could even add the ability to display longer paths if that makes sense.
The text was updated successfully, but these errors were encountered: