forked from AeonOrg/Electrogram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-docs.sh
41 lines (30 loc) · 888 Bytes
/
build-docs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
set -e
export GITHUB_TOKEN
VENV="$(pwd)/venv"
export VENV
make clean
make clean-docs
make venv
make api
"$VENV/bin/pip" install -e '.[docs]'
cd compiler/docs
"$VENV/bin/python" compiler.py
cd ../..
"$VENV/bin/sphinx-build" -b html "docs/source" "docs/build/html" -j auto
REPO_URL="https://5hojib:[email protected]/5hojib/Electrogram-docs.git"
CLONE_DIR="Electrogram-docs"
git clone "$REPO_URL"
cd "$CLONE_DIR"
rm -rf _includes api genindex.html intro py-modindex.html sitemap.xml \
support.html topics _static faq index.html objects.inv \
searchindex.js start telegram
cp -r ../docs/build/html/* .
git config --local user.name "5hojib"
git config --local user.email "[email protected]"
git add --all
git checkout --orphan temp-branch
git commit -m "Update docs" --signoff
git branch -D main
git branch -m main
git push --force origin main