diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 5349f6b2..6fe26d4b 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -26,6 +26,6 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install python prerequisites - run: pip install -U --user pip setuptools setuptools-scm nox + run: pip install -U --user pip setuptools setuptools-scm sphinx sphinx-autobuild sphinx-rtd-theme . plugins/ext_test - name: Sphinx documentation build - run: python -m nox --non-interactive --session docs + run: python -m sphinx -M html docs docs/_build -nvWT diff --git a/noxfile.py b/noxfile.py index dd6c524e..88045f24 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,22 +1,6 @@ import nox -@nox.session(python=['3.12']) -def docs(session): - session.install( - 'sphinx', - 'sphinx-rtd-theme', - '.', - 'plugins/ext_test', - ) - session.chdir('docs') - tmpdir = session.create_tmp() - - session.run( - 'sphinx-build', '-a', '-W', '-T', '-b', 'html', '-d', '{}/doctrees'.format(tmpdir), '.', '{}/html'.format(tmpdir) - ) - - @nox.session(python=['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']) @nox.parametrize('plugin', [None, 'ext_test', 'template', 'coverage']) def tests(session, plugin): diff --git a/pyproject.toml b/pyproject.toml index 09d0f81f..57c36c6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -320,6 +320,7 @@ packages = ["cmd2"] [tool.uv] dev-dependencies = [ + "cmd2-ext-test", "codecov", "doc8", "invoke", @@ -333,3 +334,6 @@ dev-dependencies = [ "ruff", "twine", ] + +[tool.uv.sources] +cmd2-ext-test = { path = "plugins/ext_test", editable = true }