Skip to content

Commit acae6bf

Browse files
authored
Merge pull request #130 from lincc-frameworks/lynn/small-fixes
Lynn/small fixes
2 parents 75159eb + e74d69e commit acae6bf

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

python-project-template/.pre-commit-config.yaml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ repos:
5757
files: ^(src|tests)/
5858
{% endif %}
5959
{% if preferred_linter == 'pylint' %}
60-
# Analyze the src code style and report code that doesn't adhere.
60+
# Analyze the src code style and report code that doesn't adhere.
6161
- repo: local
6262
hooks:
6363
- id: pylint

python-project-template/docs/Makefile renamed to python-project-template/docs/Makefile.jinja

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,25 @@
44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
66
SPHINXOPTS ?= -T -E -d _build/doctrees -D language=en
7-
EXCLUDENB ?= -D exclude_patterns="notebooks/*"
7+
{%- if include_notebooks %}
8+
EXCLUDENB ?= -D exclude_patterns="notebooks/*"
9+
{%- endif %}
810
SPHINXBUILD ?= sphinx-build
911
SOURCEDIR = .
1012
BUILDDIR = ../_readthedocs/
1113

12-
.PHONY: help no-nb no-notebooks clean Makefile
14+
.PHONY: help clean Makefile {% if include_notebooks %}no-nb no-notebooks{% endif %}
1315

1416
# Put it first so that "make" without argument is like "make help".
1517
help:
1618
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1719

20+
{%- if include_notebooks %}
21+
1822
# Build all Sphinx docs locally, except the notebooks
1923
no-nb no-notebooks:
2024
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(EXCLUDENB) $(O)
25+
{%- endif %}
2126

2227
# Cleans up files generated by the build process
2328
clean:

0 commit comments

Comments
 (0)