Skip to content

Commit

Permalink
♻️ Move setup commands into Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed Aug 4, 2021
1 parent 62afabb commit 7d2f2d0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
- name: Build latest documentation
shell: bash
run: |
cp docs/*.yml .
make clean
make
cp docs/index.html _build
Expand Down
20 changes: 14 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
default: _site
default: html

_site:
_config.yml:
cp docs/_config.yml .

_toc.yml:
cp docs/_toc.yml .

index.md:
cp docs/index.md .

html: _config.yml _toc.yml index.md
jupyter-book build --verbose --keep-going .

clean:
rm -rf _build
rm -f _config.yml
rm -f _toc.yml
rm -f index.md
rm -f ch*/*.nbconvert.ipynb
rm -f ch*/*.pyc
rm -f ch*/generated/*.png
Expand All @@ -22,8 +34,6 @@ clean:
rm -f ch07dry/datasource*.yaml
rm -f ch07dry/example.yaml
rm -f index.html
rm -f indigo
rm -f notebooks.zip
rm -f notes.pdf
rm -f notes.tex
rm -rf _site
Expand All @@ -33,7 +43,6 @@ clean:
rm -rf ch*/*/__pycache__
rm -rf ch*/*/*/__pycache__
rm -rf ch*/*/*/*/__pycache__
rm -rf ch*/*/*/*/*/__pycache__
rm -rf ch01python/module1/
rm -rf ch04packaging/greetings/doc/output/.doctrees
rm -rf ch09*/*.csv
Expand All @@ -49,4 +58,3 @@ clean:
rm -rf ch09*/*.xsd
rm -rf ch09*/*.xsl
rm -rf combined*
rm -rf images img js css ati_css fonts _includes _layouts favicon* master.zip indigo-jekyll-master
File renamed without changes.

0 comments on commit 7d2f2d0

Please sign in to comment.