File tree Expand file tree Collapse file tree
{{cookiecutter.repository_name}} Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ name: Deploy static content to Pages
44on :
55 # Runs on pushes targeting the default branch
66 push :
7- branches : ["main"]
7+ branches :
8+ - " **"
89
910 # Allows you to run this workflow manually from the Actions tab
1011 workflow_dispatch :
5152
5253 # Single deploy job since we're just deploying
5354 deploy :
55+ if : github.ref == 'refs/heads/main'
5456 needs : build
5557 environment :
5658 name : github-pages
Original file line number Diff line number Diff line change 1515 '.github/workflows/check_formatting.yml' ,
1616 '.flake8' ,
1717 '.github/workflows/build_docs.yml' ,
18- 'docs/_config.yml' ,
19- 'docs/_toc.yml' ,
2018 'docs/api.rst' ,
21- 'docs/index.md' ,
2219 'docs/logo.png' ,
2320 'docs' ,
21+ '_config.yml' ,
22+ '_toc.yml' ,
23+ 'index.md' ,
2424 {% endif % }
2525 {% - if cookiecutter .docker | lower != "y" % }
2626 'Dockerfile' ,
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ name: Deploy static content to Pages
44on :
55 # Runs on pushes targeting the default branch
66 push :
7- branches : ["main"]
7+ branches :
8+ - " **"
89
910 # Allows you to run this workflow manually from the Actions tab
1011 workflow_dispatch :
@@ -22,7 +23,7 @@ concurrency:
2223
2324env :
2425 # Directory that will be published on github pages
25- PUBLISH_DIR : ./docs/ _build/html
26+ PUBLISH_DIR : ./_build/html
2627
2728jobs :
2829
4243 run : python3 -m pip install ".[docs]"
4344
4445 - name : Build docs
45- run : jupyter book build -W docs
46+ run : jupyter book build -W .
4647
4748 - name : Upload artifact
4849 uses : actions/upload-pages-artifact@v1
5152
5253 # Single deploy job since we're just deploying
5354 deploy :
55+ if : github.ref == 'refs/heads/main'
5456 needs : build
5557 environment :
5658 name : github-pages
Original file line number Diff line number Diff line change 33
44title : {{ cookiecutter.project_name }}
55author : {{ cookiecutter.full_name }}
6- logo : " logo.png"
6+ logo : " docs/ logo.png"
77copyright : " {% now 'utc', '%Y' %}"
88
99# Force re-execution of notebooks on each build.
@@ -30,4 +30,6 @@ sphinx:
3030 extra_extensions :
3131 - ' sphinx.ext.autodoc'
3232 - ' sphinx.ext.napoleon'
33- - ' sphinx.ext.viewcode'
33+ - ' sphinx.ext.viewcode'
34+
35+ exclude_patterns : ["README.md",]
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ root: index
44parts :
55 - caption : Python API
66 chapters :
7- - file : " api"
7+ - file : " docs/ api"
File renamed without changes.
You can’t perform that action at this time.
0 commit comments