From 84cea3976fa8475dde0d9dc9d0f13a680e6c7ce7 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Sun, 23 Apr 2023 16:12:33 -0500 Subject: [PATCH] revert to stb (with new arg) --- noxfile.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/noxfile.py b/noxfile.py index c99fa1cca..ea9a46da3 100644 --- a/noxfile.py +++ b/noxfile.py @@ -10,7 +10,6 @@ import tempfile from pathlib import Path from shlex import split -import tempfile from textwrap import dedent import nox @@ -79,19 +78,8 @@ def docs_live(session: nox.Session) -> None: session.run(*split("pybabel compile -d src/pydata_sphinx_theme/locale -D sphinx")) if _should_install(session): session.install("-e", ".[doc]") - session.install("sphinx-autobuild") - - with tempfile.TemporaryDirectory() as destination: - session.run( - "sphinx-autobuild", - "--watch=./docs/", - "--port=0", - "--open-browser", - "-b=dirhtml", - "-a", - "docs/", - destination, - ) + session.install("sphinx-theme-builder[cli]") + session.run("stb", "serve", "docs", "--open-browser" "--re-ignore=locale") @nox.session()