From d76c79cb57b74216f94e448d3086b70a60a9a5fe Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Thu, 23 Mar 2023 17:24:46 -0400 Subject: Tinker a bit with tasks re: doc watching, doc browsing Requires an inflight set of changes to invocations --- dev-requirements.txt | 1 + tasks.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index 26d0efa4..b409ce7a 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -16,6 +16,7 @@ coverage>=6.2,<7 # Documentation tools alabaster==0.7.13 releases>=2.1 +watchdog<2 # Debuggery icecream>=2.1 # Self (sans GSS which is a pain to bother with most of the time) diff --git a/tasks.py b/tasks.py index c14abacb..1f5e999c 100644 --- a/tasks.py +++ b/tasks.py @@ -4,7 +4,7 @@ from shutil import rmtree, copytree from invoke import Collection, task from invocations.checks import blacken -from invocations.docs import docs, www, sites +from invocations.docs import docs, www, sites, watch_docs from invocations.packaging.release import ns as release_coll, publish from invocations.testing import count_errors @@ -137,6 +137,7 @@ ns = Collection( release_coll, docs, www, + watch_docs, sites, count_errors, blacken, @@ -152,6 +153,7 @@ ns.configure( "changelog_file": join( www.configuration()["sphinx"]["source"], "changelog.rst" ), - } + }, + "docs": {"browse": "remote"}, } ) -- cgit v1.2.1