blob: 4d614d6b77173a2f7ab5f5b5133b51514f85d7b6 [file] [log] [blame] [view]
# fx move-docs
Helper tool to batch move docs from one location to another
```none
Usage: fx move-docs [--dry-run] INPUT_FILE
cat INPUT_FILE | fx move-docs [--dry-run]
echo "docs/orig/file.md doc/new_location/_toc.yaml" | fx move-docs [--dry-run]
INPUT_FILE is a file with two columns, where the first column
is the original location of the doc to be moved, and the second
line is the destination _toc.yaml file.
This tool will locate the original and destination _toc.yaml files,
update them and update any reference to the original file.
It will also create a proper entry in the _redirects.yaml file.
```
[move-docs source code](https://cs.opensource.google/fuchsia/fuchsia/+/main:tools/devshell/contrib/move-docs)