You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contributing.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ You need to have the following tools available to you:
30
30
- Run `make install` to get `uv` to install all dependencies and set up `pre-commit`
31
31
-**Recommended**: Run `make` or `make help` to see other commands available to you.
32
32
- After this, you should have a working virtual environment and proceed with writing code with your favorite IDE
33
-
-**TIP**: You can run `make core/tests` or `make modules/<my-module>/tests` to run the tests specifically for that to speed up feedback cycles
33
+
-**TIP**: You can run `make core/tests` or `make community/<my-module>/tests` to run the tests specifically for that to speed up feedback cycles
34
34
- You can also run `make lint` to run the `pre-commit` for the entire codebase.
35
35
36
36
## Adding new modules
@@ -47,10 +47,12 @@ Once you've talked to the maintainers (we do our best to reply!) then you can pr
47
47
48
48
### Module documentation
49
49
50
-
Leave examples for others with your mew module such as `modules/<new_module>/basic_example.py`. You can create as many examples as you want.
50
+
Leave examples for others with your new module such as `docs/modules/<new_module>_example.py`. You can create as many examples as you want.
51
51
52
52
Create a new `docs/modules/<new_module>.md` describing the basic use of the new container. There is a [starter template provided here](https://raw.githubusercontent.com/testcontainers/testcontainers-python/blob/main/docs/modules/template.md){:target="\_blank"}.
53
53
54
+
Also create a `docs/community/<new_module>.rst` with the `.. autoclass` and `.. title` directives pointing at your container class — this is used by the Sphinx doctest runner.
55
+
54
56
!!! important
55
57
56
58
Make sure to add your new module to the sidebar nav in the `mkdocs.yml`
Copy file name to clipboardExpand all lines: docs/index.rst
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ testcontainers-python facilitates the use of Docker containers for functional an
14
14
15
15
.. toctree::
16
16
:maxdepth:1
17
+
:glob:
17
18
18
19
core/README
19
20
compose
@@ -78,7 +79,7 @@ Crafting containers that are based on custom images is supported by the `core` m
78
79
79
80
This allows you to create containers from images that are not part of the modules provided by testcontainers-python.
80
81
81
-
For common use cases, you can also use the generic containers provided by the `testcontainers-generic` module. Please check the `generic documentation <modules/generic/README.html>`_ for more information.
82
+
For common use cases, you can also use the generic containers provided by the `testcontainers-generic` module. Please check the `generic documentation <community/generic.html>`_ for more information.
82
83
(example: `ServerContainer` for running a FastAPI server)
0 commit comments