File tree Expand file tree Collapse file tree 4 files changed +68
-3
lines changed Expand file tree Collapse file tree 4 files changed +68
-3
lines changed Original file line number Diff line number Diff line change @@ -39,3 +39,7 @@ github:
3939 rebase : false
4040 features :
4141 issues : true
42+
43+ publish :
44+ whoami : asf-site
45+ subdir : datafusion
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches :
4+ - main
5+ paths :
6+ - .github/workflows/docs.yaml
7+ - docs/**
8+
9+ name : Deploy DataFusion site
10+
11+ jobs :
12+ build-docs :
13+ name : Build docs
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout docs sources
17+ uses : actions/checkout@v3
18+
19+ - name : Checkout asf-site branch
20+ uses : actions/checkout@v3
21+ with :
22+ ref : asf-site
23+ path : asf-site
24+
25+ - name : Setup Python
26+ uses : actions/setup-python@v4
27+ with :
28+ python-version : " 3.10"
29+
30+ - name : Install dependencies
31+ run : |
32+ set -x
33+ python3 -m venv venv
34+ source venv/bin/activate
35+ pip install -r docs/requirements.txt
36+
37+ - name : Build docs
38+ run : |
39+ set -x
40+ source venv/bin/activate
41+ cd docs
42+ ./build.sh
43+
44+ - name : Copy & push the generated HTML
45+ run : |
46+ set -x
47+ cd asf-site/
48+ rsync \
49+ -a \
50+ --delete \
51+ --exclude '/.git/' \
52+ ../docs/build/html/ \
53+ ./
54+ cp ../.asf.yaml .
55+ git status --porcelain
56+ if [ "$(git status --porcelain)" != "" ]; then
57+ git config user.name "github-actions[bot]"
58+ git config user.email "github-actions[bot]@users.noreply.github.com"
59+ git add --all
60+ git commit -m 'Publish built docs triggered by ${{ github.sha }}'
61+ git push || git push --force
62+ fi
Original file line number Diff line number Diff line change 11
2- < a class ="navbar-brand " href ="{{ pathto(master_doc) }} ">
3- < img src ="{{ pathto('_static/images/' + logo, 1) }} " class ="logo " alt ="logo ">
4- </ a >
52
63< form class ="bd-search d-flex align-items-center " action ="{{ pathto('search') }} " method ="get ">
74 < i class ="icon fas fa-search "> </ i >
Original file line number Diff line number Diff line change 1717 under the License.
1818-->
1919
20+ HELLo!
21+
2022# Introduction
2123
2224We welcome and encourage contributions of all kinds, such as:
You can’t perform that action at this time.
0 commit comments