Skip to content

Commit c84963f

Browse files
committed
Centralize contribution information
1 parent a52933e commit c84963f

2 files changed

Lines changed: 22 additions & 17 deletions

File tree

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ Documentation can be edited by simply editing the markdown files in the `docs` f
1212

1313
End users can edit the docs by simply clicking the edit button (the pencil icon) on the top of every documentation page. It will open up an editing page on [GitHub](https://github.com/) (you do need to be logged in on GitHub). 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.
1414

15-
## Developing
16-
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.
17-
18-
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).
15+
For other information on how to write and build documentation locally, see our [contributing](./contributing/OpenML-Docs.md#General-Documentation) page.
1916

2017
## Deployment
2118
The documentation is hosted on GitHub pages.

docs/contributing/OpenML-Docs.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
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+
111
## 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.
312

413
The sources are generated by [MkDocs](http://www.mkdocs.org/), using the [Material theme](https://squidfunk.github.io/mkdocs-material/).
514
Check these docs to see what is possible in terms of styling.
615

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
818
combined into these documentation pages using [MkDocs multirepo](https://github.com/jdoiro3/mkdocs-multirepo-plugin/issues/3).
919

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:
1821

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+
```
2028

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.
2330

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).
2432

2533
## Python API
2634
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

Comments
 (0)