add dev-util to import release-docs from production for local testing #3187
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.
I'm currently not sure yet if this is worth the LOC,
but since building the builder & running builds is quite slow on my machine, this helps me to quickly have valid docs in a previously empty database. ( in my personal dev workflow containers / images / volumes are regularly deleted)
You can run it by just
cdinto the directory of the binary crate, and then just( the version identifier understands the same things as docs.rs semver itself).
For now it only works for successful builds, and it likely will fail for older versions.
@GuillaumeGomez what do you think? Does it work for you? I remember you also thought about something similar, but simpler.
I didn't want to add it to the
admincli, since it's not for the server, but only for local usage.