blob: 2771c24e3b9947d2e19819e95d92d6d69064d6ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
# Note: this script is BROKEN; the resulting docs don't have javascript search,
# throw a javascript error, and don't include private/internal docs. Not a
# priority right now.
set -e -u -o pipefail
cd rust
cargo doc
mkdir -p /tmp/fatcat-ghpages
cp -r target/doc/fatcat target/doc/fatcat_openapi /tmp/fatcat-ghpages
cd ..
git checkout gh-pages
mv fatcat fatcat.old_docs || true
mv fatcat_openapi fatcat_openapi.old_docs || true
mv /tmp/fatcat-ghpages/fatcat .
mv /tmp/fatcat-ghpages/fatcat_openapi .
git add fatcat fatcat_openapi
git commit -m "updating rendered manpage for github docs" || true
git checkout master
rm -r /tmp/fatcat-ghpages
echo "DONE"
|