Skip to content

Commit 7e3ac99

Browse files
authored
Only build toc files and add pytest_cache to exclude patterns (#16)
1 parent 3a9961c commit 7e3ac99

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ title: template-repo
55
author: Jørgen S. Dokken
66
logo: "logo.png"
77
copyright: "2022"
8+
only_build_toc_files: true
89

910
# Force re-execution of notebooks on each build.
1011
# See https://jupyterbook.org/content/execute.html
@@ -31,4 +32,4 @@ sphinx:
3132
- 'sphinx.ext.napoleon'
3233
- 'sphinx.ext.viewcode'
3334

34-
exclude_patterns: ["**cookiecutter.repository_name**"]
35+
exclude_patterns: ["**cookiecutter.repository_name**", ".pytest_cache/*"]

{{cookiecutter.repository_name}}/_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ title: {{ cookiecutter.project_name }}
55
author: {{ cookiecutter.full_name }}
66
logo: "docs/logo.png"
77
copyright: "{% now 'utc', '%Y' %}"
8+
only_build_toc_files: true
89

910
# Force re-execution of notebooks on each build.
1011
# See https://jupyterbook.org/content/execute.html
@@ -32,4 +33,4 @@ sphinx:
3233
- 'sphinx.ext.napoleon'
3334
- 'sphinx.ext.viewcode'
3435

35-
exclude_patterns: ["README.md",]
36+
exclude_patterns: ["README.md",".pytest_cache/*"]

0 commit comments

Comments
 (0)