forked from cerc-io/laconicd-deprecated
f762087d36
* build: deploy docs to GitHub Pages * versioning * try fix * fix swagger docs * fix docs build
12 lines
415 B
Bash
Executable File
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 |