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
If the user mentions a file which exists in the corresponding repo, a link to the source could be automatically added to the documentation page. This could work for directories too.
e.g.
The `scripts/example.py` script is an example.
Is converted to
The [`example.py`](https://github.com/org/repo/blob/-/scripts/example.py) script is an example.
Benefits
Allowing the user to quickly reference the source code associated with a file being discussed in the documentation.
Solution Idea
No response
The text was updated successfully, but these errors were encountered:
While I can understand the usefulness of this, our current repo support does not poll the repository provider API to check anything against the repo, which is why it references the URL host and requires the shorthand syntax to be unique and recognizable so it can know the intent is to linkify the item in question.
For path handling, as you are requesting, we would have no idea if the path was an actual repo path or not. There are times when it could also be ambiguous if we were looking at a path as well. Lastly, using paths in inline code blocks would not be ideal. Inline code blocks are supposed to preserve the content. How would we know if we want a literal code block and one converted to a path link?
The only way I would likely be willing to consider anything of the like would be:
It would need a very specific syntax unique enough to know the user intends it for it to be a linked path.
A requirement for it to be a code block may be quite niche and not universally desired. I would likely only be interested in converting them to links. Users are within their right to target the classes and to style them like code blocks if desired.
I'm not sure what syntax for such paths would make sense at this time, so that would need to be decided if we were to consider moving forward with such a request.
Description
If the user mentions a file which exists in the corresponding repo, a link to the source could be automatically added to the documentation page. This could work for directories too.
e.g.
Is converted to
Benefits
Allowing the user to quickly reference the source code associated with a file being discussed in the documentation.
Solution Idea
No response
The text was updated successfully, but these errors were encountered: