Commit 6d34fb86 authored by Nikita Titov's avatar Nikita Titov Committed by Guolin Ke
Browse files

[docs] move wiki to Read the Docs (#945)

* fixed Python-API references

* moved Features section to ReadTheDocs

* fixed index of ReadTheDocs

* moved Experiments section to ReadTheDocs

* fixed capital letter

* fixed citing

* moved Parallel Learning section to ReadTheDocs

* fixed markdown

* fixed Python-API

* fixed link to Quick-Start

* fixed gpu docker README

* moved Installation Guide from wiki to ReadTheDocs

* removed references to wiki

* fixed capital letters in headings

* hotfixes

* fixed non-Unicode symbols and reference to Python API

* fixed citing references

* fixed links in .md files

* fixed links in .rst files

* store images locally in the repo

* fixed missed word

* fixed indent in Experiments.rst

* fixed 'Duplicate implicit target name' message which is successfully
resolved by adding anchors

* less verbose

* prevented maito: ref creation

* fixed indents

* fixed 404

* fixed 403

* fixed 301

* fixed fake anchors

* fixed file extentions

* fixed Sphinx warnings

* added StrikerRUS profile link to FAQ

* added henry0312 profile link to FAQ
parent 4d15e4ff
window.onload = function() {
$('a[href^="./"][href$=".md"]').attr('href', (i, val) => { return val.replace('.md', '.html'); }); /* Replace '.md' with '.html' in all internal links like './[Something].md' */
$('a[href^="./"][href$=".rst"]').attr('href', (i, val) => { return val.replace('.rst', '.html'); }); /* Replace '.rst' with '.html' in all internal links like './[Something].rst' */
}
...@@ -180,10 +180,11 @@ texinfo_documents = [ ...@@ -180,10 +180,11 @@ texinfo_documents = [
# https://recommonmark.readthedocs.io/en/latest/ # https://recommonmark.readthedocs.io/en/latest/
github_doc_root = 'https://github.com/Microsoft/LightGBM/tree/master/docs' github_doc_root = 'https://github.com/Microsoft/LightGBM/tree/master/docs/'
def setup(app): def setup(app):
app.add_config_value('recommonmark_config', { app.add_config_value('recommonmark_config', {
'url_resolver': lambda url: github_doc_root + url, 'url_resolver': lambda url: github_doc_root + url,
'auto_toc_tree_section': 'Contents', 'auto_toc_tree_section': 'Contents',
}, True) }, True)
app.add_transform(AutoStructify) app.add_transform(AutoStructify)
app.add_javascript("js/rst_links_fix.js")
...@@ -4,7 +4,7 @@ Development Guide ...@@ -4,7 +4,7 @@ Development Guide
Algorithms Algorithms
---------- ----------
Refer to `Features <https://github.com/Microsoft/LightGBM/wiki/Features>`__ to understand important algorithms used in LightGBM. Refer to `Features <./Features.md>`__ to understand important algorithms used in LightGBM.
Classes and Code Structure Classes and Code Structure
-------------------------- --------------------------
...@@ -13,7 +13,7 @@ Important Classes ...@@ -13,7 +13,7 @@ Important Classes
~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~
+-------------------------+--------------------------------------------------------------------------------------+ +-------------------------+--------------------------------------------------------------------------------------+
| Class | description | | Class | Description |
+=========================+======================================================================================+ +=========================+======================================================================================+
| ``Application`` | The entrance of application, including training and prediction logic | | ``Application`` | The entrance of application, including training and prediction logic |
+-------------------------+--------------------------------------------------------------------------------------+ +-------------------------+--------------------------------------------------------------------------------------+
...@@ -44,7 +44,7 @@ Code Structure ...@@ -44,7 +44,7 @@ Code Structure
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
+---------------------+------------------------------------------------------------------------------------------------------------------------------------+ +---------------------+------------------------------------------------------------------------------------------------------------------------------------+
| Path | description | | Path | Description |
+=====================+====================================================================================================================================+ +=====================+====================================================================================================================================+
| ./include | Header files | | ./include | Header files |
+---------------------+------------------------------------------------------------------------------------------------------------------------------------+ +---------------------+------------------------------------------------------------------------------------------------------------------------------------+
...@@ -65,11 +65,13 @@ Code Structure ...@@ -65,11 +65,13 @@ Code Structure
| ./src/treelearner | Implementations of tree learners | | ./src/treelearner | Implementations of tree learners |
+---------------------+------------------------------------------------------------------------------------------------------------------------------------+ +---------------------+------------------------------------------------------------------------------------------------------------------------------------+
API Documents Documents API
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
LightGBM support use `doxygen <http://www.stack.nl/~dimitri/doxygen/>`__ to generate documents for classes and functions. LightGBM support use `doxygen <http://www.stack.nl/~dimitri/doxygen/>`__ to generate documents for classes and functions.
Refer to `docs README <./README.md>`__.
C API C API
----- -----
...@@ -78,9 +80,11 @@ Refere to the comments in `c\_api.h <https://github.com/Microsoft/LightGBM/blob/ ...@@ -78,9 +80,11 @@ Refere to the comments in `c\_api.h <https://github.com/Microsoft/LightGBM/blob/
High Level Language Package High Level Language Package
--------------------------- ---------------------------
See the implementations at `python-package <https://github.com/Microsoft/LightGBM/tree/master/python-package>`__ and `R-package <https://github.com/Microsoft/LightGBM/tree/master/R-package>`__. See the implementations at `Python-package <https://github.com/Microsoft/LightGBM/tree/master/python-package>`__ and `R-package <https://github.com/Microsoft/LightGBM/tree/master/R-package>`__.
Questions
---------
Ask Questions Refer to `FAQ <./FAQ.md>`__.
-------------
Feel free to open `issues <https://github.com/Microsoft/LightGBM/issues>`__ if you met problems. Also feel free to open `issues <https://github.com/Microsoft/LightGBM/issues>`__ if you met problems.
...@@ -10,22 +10,21 @@ Welcome to LightGBM's documentation! ...@@ -10,22 +10,21 @@ Welcome to LightGBM's documentation!
:maxdepth: 1 :maxdepth: 1
:caption: Contents: :caption: Contents:
Installation Guide <https://github.com/Microsoft/LightGBM/wiki/Installation-Guide> Installation Guide <Installation-Guide>
Quick Start <Quick-Start> Quick Start <Quick-Start>
Python Quick Start <Python-intro> Python Quick Start <Python-intro>
Features <https://github.com/Microsoft/LightGBM/wiki/Features> Features <Features>
Experiments <https://github.com/Microsoft/LightGBM/wiki/Experiments> Experiments <Experiments>
Parameters <Parameters> Parameters <Parameters>
Advanced Topics <Advanced-Topic>
Parameters Tuning <Parameters-tuning> Parameters Tuning <Parameters-tuning>
Python API Reference <python/lightgbm> Python API <Python-API>
Parallel Learning Guide <https://github.com/Microsoft/LightGBM/wiki/Parallel-Learning-Guide> Parallel Learning Guide <Parallel-Learning-Guide>
GPU Tutorial <GPU-Tutorial> GPU Tutorial <GPU-Tutorial>
Advanced Topics <Advanced-Topic>
FAQ <FAQ> FAQ <FAQ>
Development Guide <development> Development Guide <development>
Indices and tables Indices and Tables
================== ==================
* :ref:`genindex` * :ref:`genindex`
* :ref:`search`
Examples Examples
===================== ========
You can learn how to use LightGBM by these examples. If you have any questions, please refer to our [wiki](https://github.com/Microsoft/LightGBM/wiki).
You can learn how to use LightGBM by these examples.
...@@ -5,7 +5,8 @@ Here is an example for LightGBM to run binary classification task. ...@@ -5,7 +5,8 @@ Here is an example for LightGBM to run binary classification task.
***You should copy executable file to this folder first.*** ***You should copy executable file to this folder first.***
#### Training Trainin
-------
For Windows, by running following command in this folder: For Windows, by running following command in this folder:
...@@ -19,7 +20,8 @@ For Linux, by running following command in this folder: ...@@ -19,7 +20,8 @@ For Linux, by running following command in this folder:
./lightgbm config=train.conf ./lightgbm config=train.conf
``` ```
#### Prediction Prediction
----------
You should finish training first. You should finish training first.
......
...@@ -5,7 +5,8 @@ Here is an example for LightGBM to run lambdarank task. ...@@ -5,7 +5,8 @@ Here is an example for LightGBM to run lambdarank task.
***You should copy executable file to this folder first.*** ***You should copy executable file to this folder first.***
#### Training Training
--------
For Windows, by running following command in this folder: For Windows, by running following command in this folder:
...@@ -19,7 +20,8 @@ For Linux, by running following command in this folder: ...@@ -19,7 +20,8 @@ For Linux, by running following command in this folder:
./lightgbm config=train.conf ./lightgbm config=train.conf
``` ```
#### Prediction Prediction
----------
You should finish training first. You should finish training first.
......
...@@ -5,7 +5,8 @@ Here is an example for LightGBM to run multiclass classification task. ...@@ -5,7 +5,8 @@ Here is an example for LightGBM to run multiclass classification task.
***You should copy executable file to this folder first.*** ***You should copy executable file to this folder first.***
#### Training Training
--------
For Windows, by running following command in this folder: For Windows, by running following command in this folder:
...@@ -19,7 +20,8 @@ For Linux, by running following command in this folder: ...@@ -19,7 +20,8 @@ For Linux, by running following command in this folder:
./lightgbm config=train.conf ./lightgbm config=train.conf
``` ```
#### Prediction Prediction
----------
You should finish training first. You should finish training first.
......
Parallel Learning Example Parallel Learning Example
========================= =========================
Here is an example for LightGBM to perform parallel learning for 2 machines. Here is an example for LightGBM to perform parallel learning for 2 machines.
1. Edit mlist.txt, write the ip of these 2 machines that you want to run application on. 1. Edit mlist.txt, write the ip of these 2 machines that you want to run application on.
...@@ -19,4 +20,4 @@ Here is an example for LightGBM to perform parallel learning for 2 machines. ...@@ -19,4 +20,4 @@ Here is an example for LightGBM to perform parallel learning for 2 machines.
This parallel learning example is based on socket. LightGBM also support parallel learning based on mpi. This parallel learning example is based on socket. LightGBM also support parallel learning based on mpi.
For more details about the usage of parallel learning, please refer to [this](https://github.com/Microsoft/LightGBM/wiki/Parallel-Learning-Guide). For more details about the usage of parallel learning, please refer to [this](https://github.com/Microsoft/LightGBM/blob/master/docs/Parallel-Learning-Guide.rst).
Python Package Examples Python Package Examples
======================= =======================
Here is an example for LightGBM to use python package. Here is an example for LightGBM to use Python-package.
***You should install lightgbm (both c++ and python verion) first.*** You should install LightGBM [Python-package](https://github.com/Microsoft/LightGBM/tree/master/python-package) first.
For the installation, check the wiki [here](https://github.com/Microsoft/LightGBM/wiki/Installation-Guide).
You also need scikit-learn, pandas and matplotlib (only for plot example) to run the examples, but they are not required for the package itself. You can install them with pip: You also need scikit-learn, pandas and matplotlib (only for plot example) to run the examples, but they are not required for the package itself. You can install them with pip:
......
Regression Example Regression Example
================== ==================
Here is an example for LightGBM to run regression task. Here is an example for LightGBM to run regression task.
***You should copy executable file to this folder first.*** ***You should copy executable file to this folder first.***
#### Training Training
--------
For Windows, by running following command in this folder: For Windows, by running following command in this folder:
...@@ -18,7 +20,8 @@ For Linux, by running following command in this folder: ...@@ -18,7 +20,8 @@ For Linux, by running following command in this folder:
./lightgbm config=train.conf ./lightgbm config=train.conf
``` ```
#### Prediction Prediction
----------
You should finish training first. You should finish training first.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment