|
| 1 | +## Documentation |
| 2 | + |
| 3 | +Documentation of OpenML consists of the general information pages, such as these, that include common concepts. |
| 4 | +Additionally, each software package such as the Python, Java, and R connectors has their own documentation. |
| 5 | +For convenience, those documentation pages are also available through this common documentation portal. |
| 6 | + |
| 7 | +We always value contributions to our documentation. If you notice any mistake in these documentation pages, click the :material-pencil: button (on the top right). It will open up an editing page on [GitHub](https://github.com/) (you do need to be logged in). When you are done, add a small message explaining the change and click 'commit changes'. On the next page, just launch the pull request. We will then review it and approve the changes, or discuss them if necessary. |
| 8 | + |
| 9 | +Below you can find more information about how each set of documentation pages is built. |
| 10 | + |
1 | 11 | ## General Documentation |
2 | | -High-quality and up-to-date documentation are crucial. If you notice any mistake in these documentation pages, click the :material-pencil: button (on the top right). It will open up an editing page on [GitHub](https://github.com/) (you do need to be logged in). When you are done, add a small message explaining the change and click 'commit changes'. On the next page, just launch the pull request. We will then review it and approve the changes, or discuss them if necessary. |
3 | 12 |
|
4 | 13 | The sources are generated by [MkDocs](http://www.mkdocs.org/), using the [Material theme](https://squidfunk.github.io/mkdocs-material/). |
5 | 14 | Check these docs to see what is possible in terms of styling. |
6 | 15 |
|
7 | | -OpenML is a big project with multiple repositories. To keep the documentation close to the code, it will always be kept in the relevant repositories (see below), and |
| 16 | +OpenML is a big project with multiple repositories. |
| 17 | +To keep the documentation close to the code, it will always be kept in the relevant repositories (see below), and |
8 | 18 | combined into these documentation pages using [MkDocs multirepo](https://github.com/jdoiro3/mkdocs-multirepo-plugin/issues/3). |
9 | 19 |
|
10 | | -!!! note "Developer note" |
11 | | - To work on the documentation locally, do the following: |
12 | | - ``` |
13 | | - git clone https://github.com/openml/docs.git |
14 | | - pip install -r requirements.txt |
15 | | - ``` |
16 | | - |
17 | | - To build the documentation locally, run `mkdocs serve -f mkdocs-local.yml` in the top directory (with the `mkdocs.yml` file). Any changes made after that will be hot-loaded. |
| 20 | +To build the documentation locally, first make sure all dependencies specified in `requirements.txt` are installed: |
18 | 21 |
|
19 | | - To build the full documentation, including importing the documentation from other repositories, run `mkdocs serve` in the top directory (with the `mkdocs.yml` file). This can take a while to compile, so only use this when needed. |
| 22 | +```bash |
| 23 | +python -m venv .venv |
| 24 | +source .venv/bin/activate |
| 25 | +python -m pip install uv |
| 26 | +uv pip install -r requirements.txt |
| 27 | +``` |
20 | 28 |
|
21 | | - The documentation will be auto-deployed with every push or merge with the master branch of `https://www.github.com/openml/docs/`. In the background, a CI job |
22 | | - will run `mkdocs gh-deploy`, which will build the HTML files and push them to the gh-pages branch of openml/docs. `https://docs.openml.org` is just a reverse proxy for `https://openml.github.io/docs/`. |
| 29 | +After installing the dependencies, run `mkdocs serve -f mkdocs-local.yml` in the top directory (with the `mkdocs.yml` file). Any changes made after that will be hot-loaded. |
23 | 30 |
|
| 31 | +To build the full documentation, including importing the documentation from other repositories, run `mkdocs serve` in the top directory (with the `mkdocs.yml` file). This can take a while to compile, so only use this when needed. You might also need to set `export NUMPY_EXPERIMENTAL_DTYPE_API=1` (or `set NUMPY_EXPERIMENTAL_DTYPE_API=1` on Windows). |
24 | 32 |
|
25 | 33 | ## Python API |
26 | 34 | To edit the tutorial, you have to edit the `reStructuredText` files on [openml-python/doc](https://github.com/openml/openml-python/tree/master/doc). When done, you can do a pull request. |
|
0 commit comments