mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 11:15:12 +00:00
Delete generate-docs.sh
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
mkdir docs
|
||||
mkdir ./docs/hugo-tania/site/content/post
|
||||
echo "services.m3o.com" > docs/CNAME
|
||||
dir=$(pwd)
|
||||
for d in */; do
|
||||
cd $dir
|
||||
echo $d
|
||||
cd $d
|
||||
if test -f "./skip"; then
|
||||
continue
|
||||
fi
|
||||
serviceName=${d//\//}
|
||||
contentFolder=../docs/hugo-tania/site/content/post
|
||||
timeout 3s make proto || continue
|
||||
echo "Copying html for $serviceName"
|
||||
pwd
|
||||
touch $contentFolder/$serviceName.md
|
||||
echo -e "---\ntitle: $serviceName\n---\n" > $contentFolder/$serviceName.md
|
||||
cat README.md >> $contentFolder/$serviceName.md
|
||||
mkdir -p ../docs/$serviceName/api
|
||||
cp redoc-static.html ../docs/$serviceName/api/index.html
|
||||
done
|
||||
pwd
|
||||
cd ../docs/hugo-tania/site; hugo -D -d=../../
|
||||
cd ../../
|
||||
pwd
|
||||
ls
|
||||
Reference in New Issue
Block a user