hexo/node_modules/ajv/scripts/prepare-site

16 lines
352 B
Bash

#!/usr/bin/env bash
set -e
function copyReplace {
sed "s/](.\/docs\//](.\//g" $1 > $2
}
copyReplace README.md docs/README.md
copyReplace CODE_OF_CONDUCT.md docs/code_of_conduct.md
copyReplace CONTRIBUTING.md docs/contributing.md
copyReplace LICENSE docs/license.md
echo "preparing contributors..."
node scripts/get-contributors.js