Skip to content

Commit 6967ff5

Browse files
authored
Update doc-build.yml and requirements for documentation build (#1333)
Update GitHub Actions workflow and requirements for documentation build - Upgrade actions/checkout from v2 to v4 - Refactor dependencies installation in the workflow - Pin sphinx version to 5.3.0 in requirements.txt with descriptions Signed-off-by: jafraustro <jaime.fraustro.valdez@intel.com>
1 parent 65afde6 commit 6967ff5

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/doc-build.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ jobs:
1717
python-version: [3.9]
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
- name: Dependencies
2222
run: |
23+
export DEBIAN_FRONTEND=noninteractive
24+
sudo apt-get update
25+
sudo apt install -y git python3-venv make
2326
echo `python3 --version`
24-
sudo apt-get install -y python-setuptools
25-
sudo apt-get install -y python3-sphinx
26-
python3 -m pip install --upgrade pip
27-
python3 -m pip install setuptools
27+
python3 -m venv venv
28+
source venv/bin/activate
29+
pip install --upgrade pip setuptools
2830
id: build
2931
- name: Build the docset
3032
run: |

docs/requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
sphinx
2-
# torch
3-
# PyTorch Theme
1+
2+
sphinx==5.3.0
3+
#Pinned versions: 5.3.0
44
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
55
sphinx-panels

0 commit comments

Comments
 (0)