laconicd/docs/pre.sh
Federico Kunze f762087d36
build: deploy docs to GitHub Pages (#116)
* build: deploy docs to GitHub Pages

* versioning

* try fix

* fix swagger docs

* fix docs build
2021-06-12 12:27:10 -04:00

12 lines
415 B
Bash
Executable File

#!/usr/bin/env bash
mkdir -p modules
for D in ../x/*; do
if [ -d "${D}" ]; then
rm -rf "modules/$(echo $D | awk -F/ '{print $NF}')"
mkdir -p "modules/$(echo $D | awk -F/ '{print $NF}')" && cp -r $D/spec/* "$_"
fi
done
cat ../x/README.md | sed 's/\.\/x/\/modules/g' | sed 's/spec\/README.md//g' | sed 's/\.\.\/docs\/building-modules\/README\.md/\/building-modules\/intro\.html/g' > ./modules/README.md