diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 1bed6c301..327f0284b 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -48,8 +48,7 @@ jobs: - name: Install docs requirements and project run: | - pip install -r docs/requirements.txt - pip install -e . + pip install -e .[docs] - name: Setup Pages uses: actions/configure-pages@v5 diff --git a/.github/workflows/docs-test.yml b/.github/workflows/docs-test.yml index 18b92abab..45b8c0d7d 100644 --- a/.github/workflows/docs-test.yml +++ b/.github/workflows/docs-test.yml @@ -36,8 +36,7 @@ jobs: - name: Install docs requirements and project run: | - pip install -r docs/requirements.txt - pip install -e . + pip install -e .[docs] - name: Build documentation run: | diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index 05ddbfd88..000000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,15 +0,0 @@ -docutils==0.18.1,<0.21 -linkify-it-py -myst-parser -pillow -pytorch_sphinx_theme2 @ git+https://github.com/pytorch/pytorch_sphinx_theme.git@pytorch_sphinx_theme2#egg=pytorch_sphinx_theme2 -sphinx==7.2.6 -sphinx-autobuild -sphinx-autodoc-typehints -sphinx-design==0.6.1 -sphinx-gallery==0.14.0 -sphinx-sitemap==2.7.1 -sphinxcontrib-mermaid==1.0.0 -sphinxcontrib.katex==0.9.10 -sphinxext-opengraph -torch diff --git a/pyproject.toml b/pyproject.toml index 93032300a..0c898b8f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,23 @@ dev = [ "pre-commit", "hypothesis" ] +docs = [ + "docutils==0.18.1,<0.21", + "linkify-it-py", + "myst-parser", + "pillow", + "pytorch_sphinx_theme2==0.2.0", + "sphinx==7.2.6", + "sphinx-autobuild", + "sphinx-autodoc-typehints", + "sphinx-design==0.6.1", + "sphinx-gallery==0.14.0", + "sphinx-sitemap==2.7.1", + "sphinxcontrib-mermaid==1.0.0", + "sphinxcontrib.katex==0.9.10", + "sphinxext-opengraph", + "torch" +] [project.urls] Homepage = "https://github.com/pytorch/helion"