Skip to content

Commit

Permalink
fix: Doc building in poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
lenianiva committed Oct 18, 2024
1 parent 39b9e07 commit dd6efc8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ jobs:

- name: Install dependencies
run: |
pip install jupyter-book
pip install poetry
poetry install --only doc
# Build the book
- name: Build the book
run: |
jupyter-book build docs
poetry run jupyter-book build docs
# Upload the book's HTML as an artifact
- name: Upload artifact
Expand Down
16 changes: 1 addition & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ script = "build.py"

[tool.poetry.group.dev.dependencies]
# Experiment related dependencies here to not clutter the main project dependencies.
fire = "0.6.0"
notebook = "^7.2.1"
numpy = "^1.26.4"
openai = "^1.31.0"
Expand All @@ -30,6 +29,10 @@ termcolor = "^2.4.0"
matplotlib = "^3.9.2"
seaborn = "^0.13.2"
pandas = "^2.2.3"

[tool.poetry.group.doc]
optional = true
[tool.poetry.group.doc.dependencies]
jupyter-book = "^1.0.3"

[build-system]
Expand Down

0 comments on commit dd6efc8

Please sign in to comment.