-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
links: automatic command links are too lax now? #156
Comments
Cc @rogermparent (let's see what Ivan says though). |
I don't know when this was introduced, but I'm pretty sure it's not the I can change the behavior now that I'm familiar with the mechanism, but I'll need some specific rules. You can see in the source that
|
Yeah, I think that was always the case. Do we want this? I would keep it. May be it should be smart enough to allow only proper third level sub commands and |
This is the current behavior as
For example, the screenshotted link links to |
I don't know... I think we want to be able to have short in-line examples that don't get linked like here: ^ I don't think that was linked before, BTW. It makes the paragraph have too many links, and it makes the example hard to copy for pasting. And there's plenty similar examples (commit has several, fetch has
Fortunately it doesn't add the # anchor unless the next argument is recognized, it seems. So at least it's not a bug. |
UPDATE: On that note... I found an inconsistent behavior of this in https://dvc.org/doc/command-reference/fetch:
|
Hi! Also I noticed in some WIP PR that |
@jorgeorpinel yes, I would keep it. Why not? And it's useful in the blog - especially gems. |
Because it seems unexpected to see links in part of a header. Seems to me like too much hyperlinking. The links no doubt will be repeated in the text below 99% of the times. When you click on headers I think you normally expect an anchor that you can copy in the URL bar.
I think having the option to make regular
|
This comment has been minimized.
This comment has been minimized.
I can certainly make |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
OK so the |
I think all headers are not auto-linked now. Let's try to keep this way since we did this in PR and see how it goes. Looks like nobody likes auto-linked headers. |
This comment has been minimized.
This comment has been minimized.
Do we still want to work towards the command linking being less lax or we good to keep it as is? |
I still think we should re-think this. I think that originally only base commands (and subcommands) e.g. I'm not sure now why/when everything else became autolinked but most often when we have longer code blocks (e.g. In summary linking everything seems overkill to me. If there are specific cases where it's currently useful, we can rewrite those passages to manual links. |
Makes sense. Having too many links could be decreasing readability and making it harder to tab through a page. Screen readers can have difficulty reading through a lot of links on a page as well 🤔 @iterative/websites, what do you think? |
Should
dvc {cmd} {arg}
always be linked? E.g.:I have the impression this was not the case before. It used to only do that for commands with subcommands, and perhaps some valid options of
dvc config
.The text was updated successfully, but these errors were encountered: