From 7ae043ccefd11e3aa560f326e15835b67f93aa92 Mon Sep 17 00:00:00 2001 From: Drew Oldag Date: Tue, 18 Apr 2023 10:46:34 -0700 Subject: [PATCH] Updating pre-commit command for sphinx builds. --- python-project-template/.pre-commit-config.yaml.jinja | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python-project-template/.pre-commit-config.yaml.jinja b/python-project-template/.pre-commit-config.yaml.jinja index ed888b25..cfbc66b4 100644 --- a/python-project-template/.pre-commit-config.yaml.jinja +++ b/python-project-template/.pre-commit-config.yaml.jinja @@ -150,11 +150,11 @@ repos: # Note: -M requires next 3 args to be builder, source, output "html", # Specify builder "./docs", # Source directory of documents - "./docs/build/html", # Output directory for rendered documents + "./_readthedocs", # Output directory for rendered documents "-T", # Show full trace back on exception "-E", # Don't use saved env; always read all files "-d", # Flag for cached environment and doctrees - "./docs/build/doctrees", # Directory + "./docs/_build/doctrees", # Directory "-D", # Flag to override settings in conf.py "exclude_patterns=notebooks/*", # Exclude our notebooks from pre-commit ] @@ -175,8 +175,8 @@ repos: "-b", # Flag to select which builder to use "html", # Use the HTML builder "-d", # Flag for cached environment and doctrees - "docs/build/doctrees", # directory + "./docs/_build/doctrees", # directory "./docs", # Source directory of documents - "docs/build/html", # Output directory for rendered documents. + "./_readthedocs", # Output directory for rendered documents. ] {%- endif %}