Skip to content

Commit

Permalink
Handle doc dependencies via pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
andresdelfino committed Jun 26, 2024
1 parent 5e297a6 commit 0a506d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme
python -m pip install --upgrade pip
pip install '.[doc]'
- name: Sphinx build
run: |
sphinx-build -b html docs/source docs/build/html
Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ authors = [
]
description = "Bot de telegram para organizar pycamp"
readme = "README.md"

[project.optional-dependencies]
doc = [
"sphinx==7.3.7",
"sphinx_rtd_theme==2.0.0",
]

0 comments on commit 0a506d9

Please sign in to comment.