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: doc/documentation.md
+17-3Lines changed: 17 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,20 @@
3
3
4
4
In DF we use `Sphinx` to generate the documentation. The documentation is written in `reStructuredText` and `Markdown` and the source files are located in the `doc` folder. The documentation is hosted on `ReadTheDocs` and is automatically updated when a new commit is pushed to the `main` branch.
5
5
6
+
## Build locally
7
+
8
+
To build locally the documentation to test your changes:
9
+
```console
10
+
invoke documentize
11
+
```
12
+
and to open the documentation in your browser:
13
+
```console
14
+
start _build/html/index.html
15
+
```
16
+
If you modify the `doc`s files and refresh the pages updates will be visible.
17
+
18
+
## Contribute to the documentation
19
+
6
20
Follow these guides to contribute to the documentation whether you:
7
21
8
22
- add a new [GHComponents](ghcomp_doc_g)
@@ -11,7 +25,7 @@ Follow these guides to contribute to the documentation whether you:
11
25
12
26
---
13
27
(ghcomp_doc_g)=
14
-
## `GHComponent`'s docs
28
+
### ✔️`GHComponent`'s docs
15
29
16
30
If you write a new [GHComponents](gh_components.rst) you will most probably already have created and filled a `metadata.json` file. DF uses this file to automatically generate the documentation for the GHComponents. The only thing you need to do is:
17
31
* add a new `.rst` file with the name of the component like `gh_DFComponentName.rst`
For [Python API documentation](diffCheck_PythonAPI), we use `sphinx-apidoc` to automatically generate the API documentation so the only thing to do is to add beautiful docstrings to the Python code with the following reStructuredText (reST) format style:
30
44
@@ -44,7 +58,7 @@ For [Python API documentation](diffCheck_PythonAPI), we use `sphinx-apidoc` to a
44
58
```
45
59
46
60
(tutorial_doc_g)=
47
-
## `DF Tutorial`'s docs
61
+
### ✅`DF Tutorial`'s docs
48
62
49
63
If you need to add a new page to the [tutorials](tutorials.rst) (e.g. a [new tutorial](tutorials.rst)), you can do so by adding a new `.rst` file in the `doc` folder and linking it in the `tutorials.rst` file's toctree:
0 commit comments