diff --git a/docs/source/conf.py b/docs/source/conf.py index 40ae94e..3219587 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -54,3 +54,5 @@ html_theme = 'sphinx_book_theme' # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] + +autosummary_generate = True diff --git a/docs/source/index.rst b/docs/source/index.rst index 8856ef2..556d70e 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -30,6 +30,9 @@ You can used **easymacro** with any extension or directly in your macros. documents calc +.. ~ .. automodule:: easymacro +.. ~ :members: + Indices and tables ================== diff --git a/source/easymacro.py b/source/easymacro.py index 1513040..fb1519f 100644 --- a/source/easymacro.py +++ b/source/easymacro.py @@ -4128,7 +4128,8 @@ class LODocuments(): } # ~ BASE: 'com.sun.star.sdb.DocumentDataSource', - _desktop = LOMain.desktop + def __init__(self): + self._desktop = LOMain.desktop def __len__(self): # ~ len(self._desktop.Components) diff --git a/source/test_easymacro.py b/source/test_easymacro.py index e63db0d..b7df332 100644 --- a/source/test_easymacro.py +++ b/source/test_easymacro.py @@ -114,6 +114,4 @@ class TestVars(BaseTest): if __name__ == '__main__': - server = app.LOServer() unittest.main(exit=False) - server.stop()