Skip to content

Commit 57050fa

Browse files
Move docs requirements to pyproject.toml
1 parent 4a2e4f1 commit 57050fa

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
persist-credentials: false
1818
fetch-depth: 0 # Fetch the full history
1919
ref: ${{ github.ref }} # Check out the current branch or tag
20-
20+
2121
- name: Fetch tags only
2222
run: git fetch --tags --no-recurse-submodules
23-
23+
2424
- name: Set up Python
2525
uses: actions/setup-python@v4
2626
with:
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install dependencies
3030
run: |
3131
python -m pip install --upgrade pip
32-
pip install -r docs/requirements.txt
32+
pip install -e [docs]
3333
3434
- name: Build documentation
3535
run: sphinx-multiversion docs/source docs/build/html --keep-going --no-color
@@ -41,7 +41,7 @@ jobs:
4141
# Get the latest tag
4242
latest_tag=$(git tag --sort=-creatordate | head -n 1)
4343
echo "LATEST_RELEASE=$latest_tag" >> $GITHUB_ENV
44-
44+
4545
- name: Generate index.html for judge0.github.io/judge0-python.
4646
run: |
4747
echo '<!DOCTYPE html>

docs/requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/source/contributors_guide/contributing.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ Preparing the development setup
2424

2525
.. code-block:: console
2626
27-
$ pip install -e .[test]
28-
$ pip install -r docs/requirements.txt # needed for building the docs
27+
$ pip install -e [dev]
2928
$ pre-commit install
3029
3130
Building documentation
@@ -73,7 +72,7 @@ without changing the tests.
7372
You can use the fixtures in your tests like this:
7473

7574
.. code-block:: python
76-
75+
7776
def test_my_test(request):
7877
client = request.getfixturevalue("ce_client") # or extra_ce_client
7978

pyproject.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,16 @@ test = [
4545
"pytest-cov==6.0.0",
4646
"flake8-docstrings==1.7.0",
4747
]
48-
docs = ["sphinx==7.4.7"]
48+
docs = [
49+
"sphinx==7.4.7",
50+
"sphinxawesome-theme==5.3.2",
51+
"sphinx-autodoc-typehints==2.3.0",
52+
"sphinx-multiversion==0.2.4",
53+
]
54+
dev = [
55+
"judge0[test]",
56+
"judge0[docs]",
57+
]
4958

5059
[tool.flake8]
5160
extend-ignore = [

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy