From 7d2f2d04e3354149f3cea8532154c4707bc95f78 Mon Sep 17 00:00:00 2001 From: James Robinson Date: Wed, 4 Aug 2021 17:03:18 +0100 Subject: [PATCH] :recycle: Move setup commands into Makefile --- .github/workflows/build_docs.yaml | 1 - Makefile | 20 ++++++++++++++------ index.md => docs/index.md | 0 3 files changed, 14 insertions(+), 7 deletions(-) rename index.md => docs/index.md (100%) diff --git a/.github/workflows/build_docs.yaml b/.github/workflows/build_docs.yaml index 846d2f605..67322963a 100644 --- a/.github/workflows/build_docs.yaml +++ b/.github/workflows/build_docs.yaml @@ -29,7 +29,6 @@ jobs: - name: Build latest documentation shell: bash run: | - cp docs/*.yml . make clean make cp docs/index.html _build diff --git a/Makefile b/Makefile index b30035c78..645b831a4 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 @@ -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 @@ -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 \ No newline at end of file diff --git a/index.md b/docs/index.md similarity index 100% rename from index.md rename to docs/index.md