fx 移動文件

這項輔助工具可批次將文件移到另一個位置

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.

移動文件原始碼