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: CONTRIBUTING.md
+17-5Lines changed: 17 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ Make sure to occasionally also run multi-backend tests for your OS using [tox](h
100
100
tox --parallel auto
101
101
```
102
102
103
-
See [tox.ini](tox.ini) for details on the environment configurations.
103
+
See `tox.ini` for details on the environment configurations.
104
104
Multi-OS tests will automatically be run once you create a pull request.
105
105
106
106
Note that to be backend-agnostic, your code must not:
@@ -137,12 +137,24 @@ z = keras.ops.convert_to_numpy(x)
137
137
### 4. Document your changes
138
138
139
139
The documentation uses [sphinx](https://www.sphinx-doc.org/) and relies on [numpy style docstrings](https://numpydoc.readthedocs.io/en/latest/format.html) in classes and functions.
140
-
The overall *structure* of the documentation is manually designed. This also applies to the API documentation. This has two implications for you:
141
140
142
-
1. If you add to existing submodules, the documentation will update automatically (given that you use proper numpy docstrings).
143
-
2. If you add a new submodule or subpackage, you need to add a file to `docsrc/source/api` and a reference to the new module to the appropriate section of `docsrc/source/api/bayesflow.rst`.
141
+
Run the following command to install all necessary packages for setting up documentation generation:
144
142
145
-
You can re-build the documentation with
143
+
```
144
+
pip install .[docs]
145
+
```
146
+
147
+
The overall *structure* of the documentation is manually designed, but the API documentation is auto-generated.
148
+
149
+
You can re-build the current documentation with
150
+
151
+
```bash
152
+
cd docsrc
153
+
make clean && make dev
154
+
# in case of issues, try `make clean-all`
155
+
```
156
+
157
+
We also provide a multi-version documentation. To generate it, run
0 commit comments