mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
17 lines
343 B
Bash
Executable file
17 lines
343 B
Bash
Executable file
#!/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
|
|
|