Skip to content

Commit

Permalink
Fix sphinx documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ugoertz committed Apr 3, 2017
1 parent ab790f1 commit 42431ab
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
sys.path.insert(0, os.path.abspath('../examples/sgftree'))
sys.path.insert(0, os.path.abspath('../examples/profiler'))
sys.path.insert(0, os.path.abspath('../examples/test_patternsearch'))
sys.path.insert(0, os.path.abspath('../kombilo'))
sys.path.insert(0, os.path.abspath('..'))
# -- General configuration -----------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down
9 changes: 3 additions & 6 deletions doc/scripting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ In this directory there are a couple of scripts which I used to test the
pattern search for consistency. You can use them as starting points for
your own scripts.

final_position.py
^^^^^^^^^^^^^^^^^

.. automodule:: final_position
Also see the tests in the ``kombilo/tests`` subdirectory.

various_tests.py
^^^^^^^^^^^^^^^^
Expand All @@ -94,13 +91,13 @@ API
The kombiloNG module
--------------------

.. automodule:: kombiloNG
.. automodule:: kombilo.kombiloNG
:members:

The sgf module
--------------

.. automodule:: sgf
.. automodule:: kombilo.sgf
:members:


Expand Down
5 changes: 2 additions & 3 deletions examples/profiler/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@
import sys
basepath = sys.argv[1]
sys.path.insert(0, basepath)
sys.path.append('../../src')
import time, os, os.path

import libkombilo as lk
from kombiloNG import *
import kombilo.libkombilo as lk
from kombilo.kombiloNG import *


def timer(f, *args, **kwargs):
Expand Down
5 changes: 3 additions & 2 deletions examples/sgftree/sgftree.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,21 +106,22 @@
fixedColor = 1
'''

from __future__ import absolute_import, unicode_literals, print_function

import sys
sys.path.append('../../src')
from copy import copy

from configobj import ConfigObj
from kombiloNG import KEngine, lk, Cursor
from kombilo.kombiloNG import KEngine, lk, Cursor

def _(s):
return s

class Messages:

def insert(self, pos, s):
print s
print(s)


if __name__ == '__main__':
Expand Down
8 changes: 4 additions & 4 deletions examples/test_patternsearch/various_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
## OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
## SOFTWARE.

from __future__ import print_function

'''
This script carries out a number of pattern searches, for various patterns and
with various parameters, and checks the results for consistency.
Expand All @@ -38,14 +36,16 @@
:py:mod:`profiler` script, and to which the output html page is written.
'''

from __future__ import print_function

import sys
basepath = sys.argv[1]
sys.path.insert(0, basepath)
sys.path.append('../../src')
import time, os, os.path

import libkombilo as lk
from kombiloNG import *
import kombilo.libkombilo as lk
from kombilo.kombiloNG import *


def timer(f, *args, **kwargs):
Expand Down

0 comments on commit 42431ab

Please sign in to comment.