File tree 4 files changed +16
-12
lines changed
source/contributors_guide
4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ jobs:
17
17
persist-credentials : false
18
18
fetch-depth : 0 # Fetch the full history
19
19
ref : ${{ github.ref }} # Check out the current branch or tag
20
-
20
+
21
21
- name : Fetch tags only
22
22
run : git fetch --tags --no-recurse-submodules
23
-
23
+
24
24
- name : Set up Python
25
25
uses : actions/setup-python@v4
26
26
with :
29
29
- name : Install dependencies
30
30
run : |
31
31
python -m pip install --upgrade pip
32
- pip install -r docs/requirements.txt
32
+ pip install -e [ docs]
33
33
34
34
- name : Build documentation
35
35
run : sphinx-multiversion docs/source docs/build/html --keep-going --no-color
41
41
# Get the latest tag
42
42
latest_tag=$(git tag --sort=-creatordate | head -n 1)
43
43
echo "LATEST_RELEASE=$latest_tag" >> $GITHUB_ENV
44
-
44
+
45
45
- name : Generate index.html for judge0.github.io/judge0-python.
46
46
run : |
47
47
echo '<!DOCTYPE html>
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ Preparing the development setup
24
24
25
25
.. code-block :: console
26
26
27
- $ pip install -e .[test]
28
- $ pip install -r docs/requirements.txt # needed for building the docs
27
+ $ pip install -e [dev]
29
28
$ pre-commit install
30
29
31
30
Building documentation
@@ -73,7 +72,7 @@ without changing the tests.
73
72
You can use the fixtures in your tests like this:
74
73
75
74
.. code-block :: python
76
-
75
+
77
76
def test_my_test (request ):
78
77
client = request.getfixturevalue(" ce_client" ) # or extra_ce_client
79
78
Original file line number Diff line number Diff line change @@ -45,7 +45,16 @@ test = [
45
45
" pytest-cov==6.0.0" ,
46
46
" flake8-docstrings==1.7.0" ,
47
47
]
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
+ ]
49
58
50
59
[tool .flake8 ]
51
60
extend-ignore = [
You can’t perform that action at this time.
0 commit comments