Skip to content

Commit

Permalink
docs: build python docs from source files (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
henry0312 authored and guolinke committed May 5, 2017
1 parent beb5fc5 commit d2a6eb0
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import os
import sys
sys.path.insert(0, os.path.abspath('../python-package'))

from recommonmark.parser import CommonMarkParser
from recommonmark.transform import AutoStructify
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Welcome to LightGBM's documentation!
Experiments <https://github.com/Microsoft/LightGBM/wiki/Experiments>
Parameters <Parameters>
Parameters Tuning <Parameters-tuning>
Python API Reference <Python-API>
Python API Reference <python/lightgbm>
Parallel Learning Guide <https://github.com/Microsoft/LightGBM/wiki/Parallel-Learning-Guide>
GPU Tutorial <GPU-Tutorial>
FAQ <FAQ>
Expand Down
67 changes: 67 additions & 0 deletions docs/python/lightgbm.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
lightgbm package
================

lightgbm\.basic
---------------

.. automodule:: lightgbm.basic
:members:
:undoc-members:
:show-inheritance:

lightgbm\.callback
------------------

.. automodule:: lightgbm.callback
:members:
:undoc-members:
:show-inheritance:

lightgbm\.compat
----------------

.. automodule:: lightgbm.compat
:members:
:undoc-members:
:show-inheritance:

lightgbm\.engine
----------------

.. automodule:: lightgbm.engine
:members:
:undoc-members:
:show-inheritance:

lightgbm\.libpath
-----------------

.. automodule:: lightgbm.libpath
:members:
:undoc-members:
:show-inheritance:

lightgbm\.plotting
------------------

.. automodule:: lightgbm.plotting
:members:
:undoc-members:
:show-inheritance:

lightgbm\.sklearn
-----------------

.. automodule:: lightgbm.sklearn
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: lightgbm
:members:
:undoc-members:
:show-inheritance:

0 comments on commit d2a6eb0

Please sign in to comment.