Skip to content

Commit 39baeb8

Browse files
authored
Merge pull request #8 from alamb/alamb/force_trigger
Test doc change
2 parents 68e3040 + 4fc854b commit 39baeb8

File tree

4 files changed

+68
-3
lines changed

4 files changed

+68
-3
lines changed

.asf.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/docs.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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

docs/source/_templates/docs-sidebar.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
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>

docs/source/contributor-guide/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
under the License.
1818
-->
1919

20+
HELLo!
21+
2022
# Introduction
2123

2224
We welcome and encourage contributions of all kinds, such as:

0 commit comments

Comments
 (0)