mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 00:07:36 +02:00
Added file
This commit is contained in:
parent
3c41d8c80c
commit
a61d7a5e65
1 changed files with 17 additions and 0 deletions
17
scripts/api-update.sh
Executable file
17
scripts/api-update.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
rm -rf /tmp/api
|
||||
cp -r docs/api/ /tmp/api
|
||||
git checkout gh-pages
|
||||
cp -r /tmp/api/ docs/
|
||||
|
||||
# find . | grep md
|
||||
for fn in `find . | grep md`; do
|
||||
echo "processing file: $fn"
|
||||
sed -i.old '1s;^;---\n;' $fn
|
||||
sed -i.old '1s;^;title: API\n;' $fn
|
||||
sed -i.old '1s;^;layout: main\n;' $fn
|
||||
sed -i.old '1s;^;---\n;' $fn
|
||||
rm -f $fn.old
|
||||
done
|
||||
|
Loading…
Add table
Reference in a new issue