File tree Expand file tree Collapse file tree 4 files changed +16
-12
lines changed
source/contributors_guide Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Original file line number Diff line number Diff 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 :
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
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>
Load Diff This file was deleted.
Original file line number Diff line number Diff 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.
7372You 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
Original file line number Diff line number Diff 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 ]
5160extend-ignore = [
You can’t perform that action at this time.
0 commit comments