Skip to content

Commit 784b4fb

Browse files
committed
doc: contributions
1 parent 2a95e11 commit 784b4fb

4 files changed

Lines changed: 49 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pip install scim2-cli
1010

1111
## Usage
1212

13-
Check the [tutorial](https://scim2-cli.readthedocs.io/en/latest/tutorial.html) and the [reference](https://scim2-cli.readthedocs.io/en/latest/reference.html) for more details.
13+
Check the [reference](https://scim2-cli.readthedocs.io/en/latest/reference.html) for more details.
1414

1515
Here is an example of resource creation:
1616

doc/conf.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,3 @@
7878
"Miscellaneous",
7979
)
8080
]
81-
82-
# -- Options for autosectionlabel -----------------------------------------
83-
84-
autosectionlabel_prefix_document = True
85-
autosectionlabel_maxdepth = 2

doc/contributing.rst

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
Contributions
2+
=============
3+
4+
Contributions are welcome!
5+
6+
The repository is hosted at `github.com/yaal-coop/scim2-cli <https://github.com/yaal-coop/scim2-cli>`_.
7+
8+
Discuss
9+
-------
10+
11+
If you want to implement a feature or a bugfix, please start by discussing it with us on
12+
the `bugtracker <https://github.com/yaal-coop/scim2-cli/issues>`_.
13+
14+
Unit tests
15+
----------
16+
17+
To run the tests, you just can run `poetry run pytest` and/or `tox` to test all the supported python environments.
18+
Everything must be green before patches get merged.
19+
20+
The test coverage is 100%, patches won't be accepted if not entirely covered. You can check the
21+
test coverage with ``poetry run pytest --cov --cov-report=html`` or ``tox -e coverage -- --cov-report=html``.
22+
You can check the HTML coverage report in the newly created `htmlcov` directory.
23+
24+
Code style
25+
----------
26+
27+
We use `ruff <https://docs.astral.sh/ruff/>`_ along with other tools to format our code.
28+
Please run ``tox -e style`` on your patches before submiting them.
29+
In order to perform a style check and correction at each commit you can use our
30+
`pre-commit <https://pre-commit.com/>`_ configuration with ``pre-commit install``.
31+
32+
Documentation
33+
-------------
34+
35+
The documentation is generated when the tests run:
36+
37+
.. code-block:: bash
38+
39+
tox -e doc
40+
41+
You can also run sphinx by hand, that should be faster since it avoids the tox environment initialization:
42+
43+
.. code-block:: bash
44+
45+
sphinx-build doc build/sphinx/html
46+
47+
The generated documentation is located at ``build/sphinx/html``.

doc/index.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
.. include:: ../README.md
22
:parser: myst_parser.parsers.docutils_
33

4-
.. danger ::
5-
6-
scim2-cli is in very early development, there is not much to use yet!
7-
84
Table of contents
95
-----------------
106

117
.. toctree::
128
:maxdepth: 2
139

1410
reference
11+
contributing
1512
changelog

0 commit comments

Comments
 (0)