Skip to content

Commit 994aaf9

Browse files
authored
[Docs] Move docs requirements to docs/requirements.txt to make compatible with pypi (#718)
1 parent 388223d commit 994aaf9

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.github/workflows/docs-deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ jobs:
4646
restore-keys: |
4747
${{ runner.os }}-docs-
4848
49-
- name: Install project with docs dependencies
49+
- name: Install docs requirements and project
5050
run: |
51-
pip install -e ".[docs]"
51+
pip install -r docs/requirements.txt
52+
pip install -e .
5253
5354
- name: Setup Pages
5455
uses: actions/configure-pages@v5

.github/workflows/docs-test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ jobs:
3434
restore-keys: |
3535
${{ runner.os }}-docs-
3636
37-
- name: Install project with docs dependencies
37+
- name: Install docs requirements and project
3838
run: |
39-
pip install -e ".[docs]"
39+
pip install -r docs/requirements.txt
40+
pip install -e .
4041
4142
- name: Build documentation
4243
run: |

docs/requirements.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
sphinx==7.2.6
2+
pytorch_sphinx_theme2 @ git+https://github.com/pytorch/pytorch_sphinx_theme.git@pytorch_sphinx_theme2#egg=pytorch_sphinx_theme2
3+
sphinxcontrib.katex==0.9.10
4+
docutils==0.18.1,<0.21
5+
sphinx-design==0.6.1
6+
sphinxcontrib-mermaid==1.0.0
7+
myst-parser
8+
sphinx-gallery==0.14.0
9+
sphinx-sitemap==2.7.1
10+
sphinx-autodoc-typehints
11+
linkify-it-py
12+
sphinx-autobuild
13+
sphinxext-opengraph
14+
pillow

pyproject.toml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,6 @@ dev = [
2828
"pytest",
2929
"pre-commit"
3030
]
31-
docs = [
32-
"sphinx==7.2.6",
33-
"pytorch_sphinx_theme2 @ git+https://github.com/pytorch/pytorch_sphinx_theme.git@pytorch_sphinx_theme2#egg=pytorch_sphinx_theme2",
34-
"sphinxcontrib.katex==0.9.10",
35-
"docutils==0.18.1,<0.21",
36-
"sphinx-design==0.6.1",
37-
"sphinxcontrib-mermaid==1.0.0",
38-
"myst-parser",
39-
"sphinx-gallery==0.14.0",
40-
"sphinx-sitemap==2.7.1",
41-
"sphinx-autodoc-typehints",
42-
"linkify-it-py",
43-
"sphinx-autobuild",
44-
"sphinxext-opengraph",
45-
"pillow",
46-
]
4731

4832
[project.urls]
4933
Homepage = "https://github.com/pytorch/helion"

0 commit comments

Comments
 (0)