Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Chore] Couple of small chores #49

Merged
merged 6 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.10"
architecture: x64
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Dependencies
run: |
set -eux
Expand All @@ -27,10 +27,10 @@ jobs:

pip install -r docs/requirements.txt
- name: Build Sphinx Docs
working-directory: docs
run: |
set -eux

cd docs
make html
- name: Upload static files as artifact
id: deployment
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.10"
architecture: x64
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Dependencies
run: |
set -eux
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/unittest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ jobs:

pytest -v
cargo test -v

11 changes: 11 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ To run the entire suite of tests:
$ scripts/test.sh
```

### Build Docs
To build the docs run:
```sh
pip install -r docs/requirements.txt
cd docs
make livehtml
```

The docs will be built in the `docs/build/html` directory and served at http://localhost:8000.
The page will be automatically re-built as long as the process is kept running.

## Contributor License Agreement ("CLA")

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
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ papermill
ipykernel
ipython_genutils
jinja2==3.1.4
sphinx-autobuild
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ dependencies = [
"torch"
]

[project.urls]
Documentation = "https://pytorch-labs.github.io/torchft"
Repository = "https://github.com/pytorch-labs/torchft"
Issues = "https://github.com/pytorch-labs/torchft/issues"

[project.optional-dependencies]
dev = [
"pytest",
Expand Down
Loading