-
Notifications
You must be signed in to change notification settings - Fork 394
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
docs: API auto-mentioning in docs (#910) #1305
docs: API auto-mentioning in docs (#910) #1305
Conversation
There is one thing: I don't know whether I should consider the proposed by CodeClimate "Cognitive Complexity" issue or not due to the fact that the commandLinker has the same complexity and it was in the production already. |
@@ -139,7 +139,7 @@ current working directory (anywhere in the file system with user write access). | |||
|
|||
```dvc | |||
$ dvc import https://github.com/example/registry \ | |||
images/faces/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here - not sure what's going on
CC is too aggressive and we try to fix those issue, but it's not a requirement - especially complexity and number of lines of code |
Deployed a preview (it does not happen automatically on forks, usually we use branches) - https://dvc-landing-feature-910-23uvld.herokuapp.com/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 😎 only some small issues with code block formatting. I left a few comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I just wonder if we need dvc.api
to link to the API ref. Probably yes but maybe also remove some manual links that make it repetitive, like this one from https://dvc-landing-feature-910-23uvld.herokuapp.com/doc/install
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not particularly knowledgeable about the internal DVC linker plugin, but the code itself looks good to me.
@mvshmakov I have to ask: is your editor automatically changing the indentation of the MD code blocks @shcheklein pointed out or is it a deliberate choice? I don't have strong feelings either way, but it doesn't seem to be our linter.
It's probably best to revert just the indentation-only changes to how they were originally, and if there's a legitimate reason to change them we can address that as its own issue. Either way, nice contribution! Thanks!
I have removed what you suggested, and I can't find anything like this anymore. |
Our Python API, included with the `dvc` package installed with DVC, includes the | ||
`open` function to load/stream data directly from external <abbr>DVC | ||
projects</abbr>: | ||
Our Python API (`dvc.api`), included with the `dvc` package installed with DVC, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I would actually prefer to link [Python API]
manually for readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 036672d along with a couple more instances I found.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM! Just left an optional suggestion ☝️
@jorgeorpinel I will merge this (since you approved and to move forward), let's update that text as part of the regular PRs? |
Sure! |
Fix #910