Skip to content

Commit 58a2be7

Browse files
committed
Move contributing docs to sphinx.
1 parent 3539168 commit 58a2be7

File tree

3 files changed

+31
-30
lines changed

3 files changed

+31
-30
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
11
# How to contribute
22

3-
## Preparing the development setup
4-
5-
1. Install Python 3.9
6-
7-
```bash
8-
sudo add-apt-repository ppa:deadsnakes/ppa
9-
sudo apt update
10-
sudo apt install python3.9 python3.9-venv
11-
```
12-
13-
2. Clone the repo, create and activate a new virtual environment
14-
15-
```bash
16-
cd judge0-python
17-
python3.9 -m venv venv
18-
source venv/bin/activate
19-
```
20-
21-
3. Install the library and development dependencies
22-
23-
```bash
24-
pip install -e .[test]
25-
pre-commit install
26-
```
3+
See [docs](https://judge0.github.io/judge0-python/contributing.html).

docs/source/contributing.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Contributing
2+
============
3+
4+
Preparing the development setup
5+
-------------------------------
6+
7+
1. Install Python 3.9
8+
9+
.. code-block:: console
10+
11+
$ sudo add-apt-repository ppa:deadsnakes/ppa
12+
$ sudo apt update
13+
$ sudo apt install python3.9 python3.9-venv
14+
15+
2. Clone the repo, create and activate a new virtual environment
16+
17+
.. code-block:: console
18+
19+
$ cd judge0-python
20+
$ python3.9 -m venv venv
21+
$ . venv/bin/activate
22+
23+
3. Install the library and development dependencies
24+
25+
.. code-block:: console
26+
27+
$ pip install -e .[test]
28+
$ pre-commit install

docs/source/index.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
.. Judge0 Python SDK documentation master file, created by
2-
sphinx-quickstart on Thu Dec 12 19:59:23 2024.
3-
You can adapt this file completely to your liking, but it should at least
4-
contain the root `toctree` directive.
5-
61
Judge0 Python SDK documentation
72
===============================
83

94
.. toctree::
105
:maxdepth: 2
116
:caption: Contents
127

13-
api_index
8+
api_index
9+
contributing

0 commit comments

Comments
 (0)