Skip to content

Commit 6ead7db

Browse files
committed
add mapbox and fetch upstream docs
1 parent 0bde408 commit 6ead7db

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,14 @@ jobs:
3030
pip install python-frontmatter==0.5.0
3131
3232
- name: Fetch upstream docs
33-
run: |
34-
rm -rf _posts/python/html _posts/julia/html _posts/fsharp/html _posts/csharp/html _posts/r/md _posts/ggplot2/md _posts/matlab/md
35-
git clone --depth 1 -b built https://github.com/plotly/plotly.py-docs _posts/python/html
36-
git clone --depth 1 -b built https://github.com/plotly/plotlyjs.jl-docs _posts/julia/html
37-
git clone --depth 1 -b built https://github.com/plotly/plotly.net-docs _posts/fsharp/html
38-
git clone --depth 1 -b built https://github.com/plotly/plotly.r-docs _posts/r/md
39-
git clone --depth 1 -b built https://github.com/plotly/plotly.matlab-docs _posts/matlab/md
40-
mv _posts/r/md/ggplot2 _posts/ggplot2/md
41-
mv _posts/fsharp/html/csharp _posts/csharp/html
33+
run: make fetch_upstream_files
4234

4335
- name: Fix case-sensitive redirect issues
4436
run: python fix-case-redirects.py _posts/julia/html
4537

38+
- name: Set up Mapbox token
39+
run: echo "token: ${{ secrets.MAPBOX_TOKEN }}" > _data/mapbox_token.yml
40+
4641
- name: Build site
4742
run: |
4843
python front-matter-ci.py _posts

makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ fetch_adjacent_python_files:
3737
cp -r ../plotly.py/doc/build/html _posts/python/html
3838

3939
fetch_upstream_files: clean
40-
git clone --depth 1 -b built git@github.com:plotly/plotly.py-docs _posts/python/html
41-
git clone --depth 1 -b built git@github.com:plotly/plotlyjs.jl-docs _posts/julia/html
42-
git clone --depth 1 -b built git@github.com:plotly/plotly.net-docs _posts/fsharp/html
43-
git clone --depth 1 -b built git@github.com:plotly/plotly.r-docs _posts/r/md
44-
git clone --depth 1 -b built git@github.com:plotly/plotly.matlab-docs _posts/matlab/md
40+
git clone --depth 1 -b built https://github.com/plotly/plotly.py-docs _posts/python/html
41+
git clone --depth 1 -b built https://github.com/plotly/plotlyjs.jl-docs _posts/julia/html
42+
git clone --depth 1 -b built https://github.com/plotly/plotly.net-docs _posts/fsharp/html
43+
git clone --depth 1 -b built https://github.com/plotly/plotly.r-docs _posts/r/md
44+
git clone --depth 1 -b built https://github.com/plotly/plotly.matlab-docs _posts/matlab/md
4545
mv _posts/r/md/ggplot2 _posts/ggplot2/md
4646
mv _posts/fsharp/html/csharp _posts/csharp/html
4747

0 commit comments

Comments
 (0)