-
Notifications
You must be signed in to change notification settings - Fork 3.5k
41 lines (39 loc) · 1.56 KB
/
make_docs.yml
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
name: make_docs
on:
push:
branches:
- master
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
# - run: apt-get install pngquant
- run: pip install git+https://${{ secrets.GH_MATERIAL_MKDOCS_TOKEN }}@github.com/squidfunk/mkdocs-material-insiders.git
- run: pip install mkdocs-jupyter
- run: pip install pillow cairosvg # install social share card plugins
# Copy required notebooks to docs folder
- run: cp section-2-data-science-and-ml-tools/introduction-to-numpy.ipynb docs/
- run: cp section-2-data-science-and-ml-tools/introduction-to-pandas.ipynb docs/
- run: cp section-2-data-science-and-ml-tools/introduction-to-matplotlib.ipynb docs/
- run: cp section-2-data-science-and-ml-tools/introduction-to-scikit-learn.ipynb docs/
- run: cp communicating-your-work.md docs/
- run: cp section-4-unstructured-data-projects/end-to-end-dog-vision-v2.ipynb docs/
- run: cp section-3-structured-data-projects/end-to-end-heart-disease-classification.ipynb docs/
- run: cp images/* docs/images/
# Last step to deploy docs
- run: mkdocs gh-deploy --force