-
Notifications
You must be signed in to change notification settings - Fork 393
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
ref: automatic generation #2770
Comments
In addition, for Python API, we could use the docstrings content and it could be considered a way of "enforcing" detailed and up-to-date docstrings on the core repo, which are very helpful when using the API inside code editors. UPDATE: See #3595 for this. |
In #2108 we discussed this in January. I also believe there must be some connection between the command reference and the command output, but it shouldn't be automated that way. |
summary from discussion (in #2108 etc.):
So (1) & (2) can't be identical. There's a subset/subsection of (2) which could be auto-generated from (1). Maybe we should do this. Or as per #2207 have a CI check. But maybe too much effort. In any case we could also start collecting examples of where things are currently broken and would benefit from the effort. |
Related: iterative/dvc#5392 (comment) |
Might we add a new label to identify these cases (i.e. To get started I added |
@daavoo or just list them in the description of this issue as checkboxes and label this |
From #3219 : Maybe the |
I think we may need a hand from the website team for e.g.
Only the table output will be shown on the HTML output, and we can write a script to run the first line and update these blocks. This removes the runtime dependency between |
One big consideration particularly with |
Could we do something like:
The first lines with Then, we'll write something like @daavoo did to run the lines starting with It can have two flavors, one derived from |
Ideally we could develop a custom Prism highlighter indeed ( |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
You are right, the |
Unless we can generate this I don't think this issue is actionable. |
There have been several issues regarding inconsistencies between the information provided by
dvc <command> -h
and the sectionsOptions
/Synopsis
of the docs.I think that it would make sense to autogenerate some parts of the
API/Command Reference directly fromdvc
to ensure consistency and reduce manual edition (editing theusage
section is kind of tedious) and duplication (i.e. many times when a newoption
is added indvc
core, the docs P.R. contains just a copy-paste) .I think that we could autogenerate the markdown for the
Options
/Synopsis
sections using some placeholders.So the actual
.md
page would look like:Would generate:
Additional info that is not covered in
dvc <command> -h
would be added in separated sections likeDescription
orExamples
.The text was updated successfully, but these errors were encountered: