-
Notifications
You must be signed in to change notification settings - Fork 3
74 lines (64 loc) · 2.05 KB
/
create_website.yaml
File metadata and controls
74 lines (64 loc) · 2.05 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Create website
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
create_website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
# Install plantuml
- name: Install OS package dependencies
run: |
sudo apt update
sudo apt install plantuml
#sudo apt install npm
#npm install mermaid
npm install -g @mermaid-js/mermaid-cli
#docker pull minlag/mermaid-cli
#npm install markmap
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: remove unused folders and files
run: |
rm -rf docs/*/not_used
rm -rf docs/*/may2024
rm -rf docs/*/May23
rm -rf docs/feb23_course
rm -rf docs/may2024
rm -rf docs/May23
rm -rf docs/May_24
rm docs/day2/jupyter.md
rm docs/day2/use_isolated_environments_old.rst
rm docs/day2/jupyter.rst
rm -rf docs/day3/matplotlib/20251130_rebecca_pits
rm -rf docs/day3/not_used
rm docs/day3/big_data_old.rst
rm docs/day3/batch.rst # is now day3/batch-new.rst
rm -rf docs/day3/seaborn/20251130_rebecca_pits
rm -rf docs/day3/seaborn/older
rm -rf docs/day3/pandas/20251130_rebecca_pits
rm -rf docs/day3/pandas/older
rm docs/day3/example/chunk_dask.py
rm docs/day3/example/chunk_np.py
- name: Sphinx build
run: |
sphinx-build docs _build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
- name: Install linter
run: pip install sphinx-lint
- name: Run linter, will never give an error
run: sphinx-lint docs || true