README.rst 1.3 KB
Newer Older
1
2
3
Documentation
=============

4
Documentation for LightGBM is generated using `Sphinx <https://www.sphinx-doc.org/>`__
5
and `Breathe <https://breathe.readthedocs.io/>`__, which works on top of `Doxygen <http://www.doxygen.nl/index.html>`__ output.
6

7
List of parameters and their descriptions in `Parameters.rst <./Parameters.rst>`__
8
9
is generated automatically from comments in `config file <https://github.com/microsoft/LightGBM/blob/master/include/LightGBM/config.h>`__
by `this script <https://github.com/microsoft/LightGBM/blob/master/helpers/parameter_generator.py>`__.
10

11
12
13
14
15
After each commit on ``master``, documentation is updated and published to `Read the Docs <https://lightgbm.readthedocs.io/>`__.

Build
-----

16
You can build the documentation locally. Just install Doxygen and run in ``docs`` folder
17
18
19

.. code:: sh

20
    pip install -r requirements.txt
21
    make html
22

23
24
25
Unfortunately, documentation for R code is built only on our site, and commands above will not build it for you locally.
Consider using common R utilities for documentation generation, if you need it.

26
If you faced any problems with Doxygen installation or you simply do not need documentation for C code, it is possible to build the documentation without it:
27
28
29

.. code:: sh

30
31
    pip install -r requirements_base.txt
    export C_API=NO || set C_API=NO
32
    make html