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.

move-docs 源代码