DVC: Migrate from tracking directories to tracking files for doc images #8010
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DVC provides two different ways to track files: (1) tracking individual files (one
.dvc
file for each .PS file); (2) tracking a directory (one.dvc
file for the whole directory).Currently, we're using the 2nd way, which causes many troubles for us (see #5724 (comment) for context).
In this PR, I've changed the way we tracked PS files in the
docs
directory to the first way. The biggest benefit is that we can have multiple PRs that work on updating documentation images without worrying about any conflicts.In the future, if someone wants to update ex01.ps, then he needs to:
doc/examples/images/ex01.ps
dvc add doc/examples/images/ex01.ps
rather thandvc add doc/examples/images/
Please note that the way we track the PS files for tests are not changed.