File tree 6 files changed +22
-6
lines changed
6 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : Setup Python
14
- uses : actions/setup-python@v3
14
+ uses : actions/setup-python@v5
15
15
with :
16
16
python-version : " 3.10"
17
17
architecture : x64
18
18
- name : Checkout
19
- uses : actions/checkout@v3
19
+ uses : actions/checkout@v4
20
20
- name : Install Dependencies
21
21
run : |
22
22
set -eux
@@ -27,10 +27,10 @@ jobs:
27
27
28
28
pip install -r docs/requirements.txt
29
29
- name : Build Sphinx Docs
30
+ working-directory : docs
30
31
run : |
31
32
set -eux
32
33
33
- cd docs
34
34
make html
35
35
- name : Upload static files as artifact
36
36
id : deployment
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : Setup Python
14
- uses : actions/setup-python@v3
14
+ uses : actions/setup-python@v5
15
15
with :
16
16
python-version : " 3.10"
17
17
architecture : x64
18
18
- name : Checkout
19
- uses : actions/checkout@v3
19
+ uses : actions/checkout@v4
20
20
- name : Install Dependencies
21
21
run : |
22
22
set -eux
Original file line number Diff line number Diff line change 40
40
41
41
pytest -v
42
42
cargo test -v
43
-
Original file line number Diff line number Diff line change @@ -85,6 +85,17 @@ To run the entire suite of tests:
85
85
$ scripts/test.sh
86
86
```
87
87
88
+ ### Build Docs
89
+ To build the docs run:
90
+ ``` sh
91
+ pip install -r docs/requirements.txt
92
+ cd docs
93
+ make livehtml
94
+ ```
95
+
96
+ The docs will be built in the ` docs/build/html ` directory and served at http://localhost:8000 .
97
+ The page will be automatically re-built as long as the process is kept running.
98
+
88
99
## Contributor License Agreement ("CLA")
89
100
90
101
In order to accept your pull request, we need you to submit a CLA. You only need to do this once to work on any of
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ papermill
6
6
ipykernel
7
7
ipython_genutils
8
8
jinja2 == 3.1.4
9
+ sphinx-autobuild
Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ dependencies = [
15
15
" torch"
16
16
]
17
17
18
+ [project .urls ]
19
+ Documentation = " https://pytorch-labs.github.io/torchft"
20
+ Repository = " https://github.com/pytorch-labs/torchft"
21
+ Issues = " https://github.com/pytorch-labs/torchft/issues"
22
+
18
23
[project .optional-dependencies ]
19
24
dev = [
20
25
" pytest" ,
You can’t perform that action at this time.
0 commit comments