sphinx-lua-ls 3.3.0__tar.gz → 3.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/CHANGELOG.md +36 -1
- {sphinx_lua_ls-3.3.0/sphinx_lua_ls.egg-info → sphinx_lua_ls-3.5.0}/PKG-INFO +1 -1
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/autodoc.rst +59 -23
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/conf.py +7 -1
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/directives.rst +9 -6
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/example/logging.lua +6 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/settings.rst +20 -6
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/__init__.py +44 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/_version.py +3 -3
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/autodoc.py +257 -66
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/config.py +9 -2
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/domain.py +12 -7
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/lua_ls.py +98 -31
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/objtree.py +43 -35
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/utils.py +24 -16
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0/sphinx_lua_ls.egg-info}/PKG-INFO +1 -1
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls.egg-info/SOURCES.txt +3 -0
- sphinx_lua_ls-3.5.0/test/roots/test-autodoc-emmylua/lua/doctype.lua +13 -0
- sphinx_lua_ls-3.5.0/test/roots/test-autodoc-emmylua/src/doctype.rst +9 -0
- sphinx_lua_ls-3.5.0/test/test_regression/autodoc-emmylua-doctype.html +153 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/doc-directives.html +0 -7
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression.py +1 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/.github/dependabot.yml +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/.github/workflows/ci.yaml +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/.gitignore +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/.pre-commit-config.yaml +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/CONTRIBUTING.md +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/LICENSE +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/README.md +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/conftest.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/Makefile +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/make.bat +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/_extra/robots.txt +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/apidoc.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/example/.emmyrc.json +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/example.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/index.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/installation.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/quickstart.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/docs/source/roles.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/pyproject.toml +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/setup.cfg +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/apidoc.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/autoindex.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/inherited.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/intersphinx.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/py.typed +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/pygments.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls/static/lua.css +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls.egg-info/dependency_links.txt +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls.egg-info/requires.txt +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/sphinx_lua_ls.egg-info/top_level.txt +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/conftest.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-apidoc/.gitignore +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-apidoc/Makefile +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-apidoc/conf.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-apidoc/index.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-apidoc/lua/mod/inner.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-apidoc/lua/mod.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-apidoc/make.bat +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/Makefile +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/conf.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/index.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/lua/annotations.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/lua/globals.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/lua/globals_2.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/lua/member_ordering.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/lua/module_title.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/lua/nested_modules.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/lua/nesting.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/lua/object_types.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/lua/relative_resolve.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/make.bat +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/src/annotations.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/src/autoindex.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/src/globals.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/src/member_ordering.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/src/module_title.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/src/nested_modules.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/src/nesting.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/src/nesting_recursive.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/src/object_types.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc/src/relative_resolve.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/Makefile +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/conf.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/index.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/.emmyrc.json +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/annotations.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/foo/x.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/global_tables.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/globals.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/globals_2.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/incongruent_export.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/member_ordering.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/module_title.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/nested_modules.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/nesting.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/object_types.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/relative_resolve.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/signatures.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/lua/using.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/make.bat +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/annotations.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/autoindex.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/global_tables.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/globals.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/incongruent_export.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/member_ordering.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/module_title.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/nested_modules.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/nesting.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/nesting_recursive.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/object_types.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/relative_resolve.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/require.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/signatures.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-emmylua/src/using.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-roots/Makefile +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-roots/conf.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-roots/index.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-roots/lua/root_1/autodoc.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-roots/lua/root_2/autodoc.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-roots/make.bat +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-settings/Makefile +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-settings/conf.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-settings/index.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-settings/lua/autodoc.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-settings/make.bat +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-settings-override/Makefile +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-settings-override/conf.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-settings-override/index.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-settings-override/lua/autodoc.lua +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-autodoc-settings-override/make.bat +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-doc/Makefile +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-doc/conf.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-doc/index.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-doc/make.bat +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-doc/src/annotations.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-doc/src/autoindex.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-doc/src/directives.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-doc/src/inherited.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-doc/src/modules.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-doc/src/refs.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-intersphinx/Makefile +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-intersphinx/conf.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-intersphinx/index.rst +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/roots/test-intersphinx/make.bat +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_parse.py +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/apidoc-md-sep.yml +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/apidoc-md.yml +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/apidoc-rst-sep.yml +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/apidoc-rst.yml +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-annotations.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-autoindex.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-annotations.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-autoindex.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-global_tables.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-globals.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-incongruent_export.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-index.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-member_ordering.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-module_title.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-nested_modules.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-nesting.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-nesting_recursive.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-object_types.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-relative_resolve.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-require.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-signatures.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-emmylua-using.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-globals.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-member_ordering.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-module_title.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-nested_modules.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-nesting.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-nesting_recursive.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-object_types.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-relative_resolve.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-roots-default.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-roots-no-roots.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-roots-single-root.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-settings-no-recursion.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/autodoc-settings-simple.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/doc-annotations.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/doc-autoindex.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/doc-inherited.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/doc-modules.html +0 -0
- {sphinx_lua_ls-3.3.0 → sphinx_lua_ls-3.5.0}/test/test_regression/doc-refs.html +0 -0
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
## [unreleased]
|
|
4
4
|
|
|
5
|
+
## [3.5.0]
|
|
6
|
+
|
|
7
|
+
- Added `autodata`, `autoattribute`, `autoclass`, and other `auto*` directives.
|
|
8
|
+
|
|
9
|
+
They work like `autoobject`, but apply their doctype to the documented object
|
|
10
|
+
(if `!doctype` was set in source code, it shouldn't conflict with the used directive).
|
|
11
|
+
|
|
12
|
+
They also allow overriding object's signature, which may be useful when
|
|
13
|
+
automatically generated signature is too long.
|
|
14
|
+
|
|
15
|
+
- Added `lua_ls_max_version` config option to safeguard against incompatible changes
|
|
16
|
+
to documentation export format.
|
|
17
|
+
|
|
18
|
+
- Fixed a few more minor bugs in highlighting of Lua types.
|
|
19
|
+
|
|
20
|
+
## [3.4.0]
|
|
21
|
+
|
|
22
|
+
- **Potential breaking change:** use `confdir` instead of `srcdir` as base path
|
|
23
|
+
for `lua_ls_project_root`.
|
|
24
|
+
|
|
25
|
+
Prior to this change, `lua_ls_project_root` was resolved relative to the directory
|
|
26
|
+
containing source `.rst` files. Documentation, however, was saying that it's resolved
|
|
27
|
+
relative to the directory with `conf.py`.
|
|
28
|
+
|
|
29
|
+
This is not an issue, because in most projects `conf.py` and source `.rst` files
|
|
30
|
+
are located in the same directory. Still, I've decided to be consistent with
|
|
31
|
+
other Sphinx extensions and use `confdir` instead of `srcdir`.
|
|
32
|
+
|
|
33
|
+
This is a breaking change, but I don't believe there are any projects that
|
|
34
|
+
use separate `confdir` and `srcdir` (the only reason to do this is if you're
|
|
35
|
+
hosting multiple documentation sites in the same repo.) For this reason,
|
|
36
|
+
this change is released as a minor version change.
|
|
37
|
+
|
|
5
38
|
## [3.3.0]
|
|
6
39
|
|
|
7
40
|
- Added an option to extend list options (like `:exclude-members:`) without overriding
|
|
@@ -182,7 +215,9 @@ use `!doctype table` instead, otherwise you'll get errors that modules are not a
|
|
|
182
215
|
|
|
183
216
|
Initial release.
|
|
184
217
|
|
|
185
|
-
[unreleased]: https://github.com/taminomara/sphinx-lua-ls/compare/v3.
|
|
218
|
+
[unreleased]: https://github.com/taminomara/sphinx-lua-ls/compare/v3.5.0...HEAD
|
|
219
|
+
[3.5.0]: https://github.com/taminomara/sphinx-lua-ls/compare/v3.4.0...v3.5.0
|
|
220
|
+
[3.4.0]: https://github.com/taminomara/sphinx-lua-ls/compare/v3.3.0...v3.4.0
|
|
186
221
|
[3.3.0]: https://github.com/taminomara/sphinx-lua-ls/compare/v3.2.0...v3.3.0
|
|
187
222
|
[3.2.0]: https://github.com/taminomara/sphinx-lua-ls/compare/v3.1.0...v3.2.0
|
|
188
223
|
[3.1.0]: https://github.com/taminomara/sphinx-lua-ls/compare/v3.0.0...v3.1.0
|
|
@@ -16,10 +16,10 @@ can be slightly different:
|
|
|
16
16
|
comments.
|
|
17
17
|
|
|
18
18
|
When generating documentation for a module, Sphinx-LuaLs will include
|
|
19
|
-
all module's objects returned by
|
|
19
|
+
all module's objects returned by ``require``, as well as all types located
|
|
20
20
|
in the same namespace.
|
|
21
21
|
|
|
22
|
-
That is, for module
|
|
22
|
+
That is, for module ``meow``, it will list everything in the ``require("meow")``,
|
|
23
23
|
as well as all classes, aliases, and enums that have prefix ``meow.*``.
|
|
24
24
|
|
|
25
25
|
Thus, a typical Lua module will look like this:
|
|
@@ -165,8 +165,8 @@ can be slightly different:
|
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
Autodoc
|
|
169
|
-
|
|
168
|
+
Autodoc directives
|
|
169
|
+
------------------
|
|
170
170
|
|
|
171
171
|
.. rst:directive:: .. lua:autoobject:: name
|
|
172
172
|
|
|
@@ -175,31 +175,31 @@ Autodoc directive
|
|
|
175
175
|
:rst:dir:`lua:autoobject` supports same settings as other lua directives,
|
|
176
176
|
as well as some additional ones:
|
|
177
177
|
|
|
178
|
-
.. rst:directive:option:: members
|
|
178
|
+
.. rst:directive:option:: members: [<name>, ...]
|
|
179
179
|
|
|
180
180
|
If enabled, autodoc will also document object's members. You can pass a list
|
|
181
181
|
of comma-separated names to specify which members should be documented.
|
|
182
182
|
Otherwise, this option will document all public non-special members
|
|
183
183
|
which have a description.
|
|
184
184
|
|
|
185
|
-
.. rst:directive:option:: undoc-members
|
|
185
|
+
.. rst:directive:option:: undoc-members: [<name>, ...]
|
|
186
186
|
|
|
187
187
|
Include undocumented members to the object's description. By default,
|
|
188
|
-
they are skipped even if :rst:dir:`members
|
|
188
|
+
they are skipped even if :rst:dir:`members <lua:autoobject:members>` is passed.
|
|
189
189
|
|
|
190
190
|
Accepts a comma-separated list of names; if list is empty,
|
|
191
191
|
adds all undoc members.
|
|
192
192
|
|
|
193
|
-
.. rst:directive:option:: private-members
|
|
194
|
-
protected-members
|
|
195
|
-
package-members
|
|
193
|
+
.. rst:directive:option:: private-members: [<name>, ...]
|
|
194
|
+
protected-members: [<name>, ...]
|
|
195
|
+
package-members: [<name>, ...]
|
|
196
196
|
|
|
197
197
|
Include non-public members to the object's description.
|
|
198
198
|
|
|
199
199
|
Accepts a comma-separated list of names; if list is empty,
|
|
200
200
|
adds all non-public members.
|
|
201
201
|
|
|
202
|
-
.. rst:directive:option:: special-members
|
|
202
|
+
.. rst:directive:option:: special-members: [<name>, ...]
|
|
203
203
|
|
|
204
204
|
Include members whose names start with double underscore
|
|
205
205
|
to the object's description.
|
|
@@ -207,25 +207,25 @@ Autodoc directive
|
|
|
207
207
|
Accepts a comma-separated list of names; if list is empty,
|
|
208
208
|
adds all special members.
|
|
209
209
|
|
|
210
|
-
.. rst:directive:option:: inherited-members
|
|
210
|
+
.. rst:directive:option:: inherited-members: [<name>, ...]
|
|
211
211
|
|
|
212
212
|
For classes, include members inherited from base classes.
|
|
213
213
|
|
|
214
214
|
Accepts a comma-separated list of names; if list is empty,
|
|
215
215
|
adds all inherited members.
|
|
216
216
|
|
|
217
|
-
.. rst:directive:option:: exclude-members
|
|
217
|
+
.. rst:directive:option:: exclude-members: [<name>, ...]
|
|
218
218
|
|
|
219
219
|
A comma-separated list of members that should not be documented.
|
|
220
220
|
|
|
221
|
-
.. rst:directive:option:: globals
|
|
221
|
+
.. rst:directive:option:: globals: [<name>, ...]
|
|
222
222
|
|
|
223
223
|
Will include global variables declared in the corresponding module.
|
|
224
224
|
|
|
225
225
|
Accepts a comma-separated list of names; if list is empty,
|
|
226
226
|
adds all global variables.
|
|
227
227
|
|
|
228
|
-
.. rst:directive:option:: class-doc-from
|
|
228
|
+
.. rst:directive:option:: class-doc-from: class | ctor | both | separate
|
|
229
229
|
|
|
230
230
|
Specifies how to generate documentation for classes
|
|
231
231
|
if :py:data:`class_default_function_name` is configured.
|
|
@@ -242,7 +242,7 @@ Autodoc directive
|
|
|
242
242
|
- ``separate``: only use documentation from ``@class`` annotation,
|
|
243
243
|
document class constructor as a separate method.
|
|
244
244
|
|
|
245
|
-
.. rst:directive:option:: class-signature
|
|
245
|
+
.. rst:directive:option:: class-signature: bases | ctor | both | minimal
|
|
246
246
|
|
|
247
247
|
Specifies how to generate signatures for classes
|
|
248
248
|
if :py:data:`class_default_function_name` is configured.
|
|
@@ -302,7 +302,7 @@ Autodoc directive
|
|
|
302
302
|
(see :py:data:`lua_ls_default_options` for info on ``+``
|
|
303
303
|
and overriding defaults).
|
|
304
304
|
|
|
305
|
-
.. rst:directive:option:: member-order
|
|
305
|
+
.. rst:directive:option:: member-order: alphabetical | groupwise | bysource
|
|
306
306
|
|
|
307
307
|
Controls how members are sorted. There are three options available:
|
|
308
308
|
|
|
@@ -314,11 +314,11 @@ Autodoc directive
|
|
|
314
314
|
- ``bysource``: members are sorted in the same order as they appear in code.
|
|
315
315
|
This is the default option.
|
|
316
316
|
|
|
317
|
-
.. rst:directive:option:: module-member-order
|
|
317
|
+
.. rst:directive:option:: module-member-order: alphabetical | groupwise | bysource
|
|
318
318
|
|
|
319
319
|
Overrides :rst:dir:`lua:autoobject:member-order` for modules.
|
|
320
320
|
|
|
321
|
-
.. rst:directive:option:: title
|
|
321
|
+
.. rst:directive:option:: title: <text>
|
|
322
322
|
|
|
323
323
|
For modules, controls whether a title is inserted between module description
|
|
324
324
|
and documentation of its members.
|
|
@@ -327,7 +327,7 @@ Autodoc directive
|
|
|
327
327
|
|
|
328
328
|
Adds :rst:dir:`lua:autoindex` to the toplevel module.
|
|
329
329
|
|
|
330
|
-
.. rst:directive:option:: index-title
|
|
330
|
+
.. rst:directive:option:: index-title: <text>
|
|
331
331
|
|
|
332
332
|
Allows overriding title of the :rst:dir:`lua:autoindex` section.
|
|
333
333
|
|
|
@@ -335,7 +335,7 @@ Autodoc directive
|
|
|
335
335
|
|
|
336
336
|
Adds :rst:dir:`lua:other-inherited-members` to all classes.
|
|
337
337
|
|
|
338
|
-
.. rst:directive:option:: annotate-require
|
|
338
|
+
.. rst:directive:option:: annotate-require: always | never | auto | force
|
|
339
339
|
|
|
340
340
|
Adds information about how to require a module.
|
|
341
341
|
|
|
@@ -355,16 +355,51 @@ Autodoc directive
|
|
|
355
355
|
|
|
356
356
|
LuaLs only supports ``never`` and ``force``.
|
|
357
357
|
|
|
358
|
-
.. rst:directive:option:: require-function-name
|
|
358
|
+
.. rst:directive:option:: require-function-name: <name>
|
|
359
359
|
|
|
360
360
|
Allows overriding name of the `require` function
|
|
361
361
|
for :rst:dir:`lua:autoobject:annotate-require`.
|
|
362
362
|
|
|
363
|
-
.. rst:directive:option:: require-separator
|
|
363
|
+
.. rst:directive:option:: require-separator: <str>
|
|
364
364
|
|
|
365
365
|
Allows overriding separator
|
|
366
366
|
for :rst:dir:`lua:autoobject:annotate-require`.
|
|
367
367
|
|
|
368
|
+
.. rst:directive:: .. lua:auto*::
|
|
369
|
+
|
|
370
|
+
In addition to :rst:dir:`lua:autoobject`, there are ``lua:autodata``,
|
|
371
|
+
``lua:autoattribute``, ``lua:autoclass``, and other ``lua:auto*`` directives.
|
|
372
|
+
|
|
373
|
+
They work like ``lua:autoobject``, but apply their doctype to the documented object
|
|
374
|
+
(if ``!doctype`` was :ref:`set in source code <doc_comments>`,
|
|
375
|
+
it shouldn't conflict with the used directive).
|
|
376
|
+
|
|
377
|
+
They also allow overriding object's signature, which may be useful when
|
|
378
|
+
automatically generated signature is too long:
|
|
379
|
+
|
|
380
|
+
.. tab-set::
|
|
381
|
+
:sync-group: lang
|
|
382
|
+
|
|
383
|
+
.. tab-item:: RST
|
|
384
|
+
:sync: rst
|
|
385
|
+
|
|
386
|
+
.. code-block:: rst
|
|
387
|
+
|
|
388
|
+
.. lua:autofunction:: logging.getLogger(name: string?): logging.Logger
|
|
389
|
+
|
|
390
|
+
.. tab-item:: Markdown
|
|
391
|
+
:sync: md
|
|
392
|
+
|
|
393
|
+
.. code-block:: myst
|
|
394
|
+
|
|
395
|
+
```{lua:autofunction} logging.getLogger(name: string? = ...): logging.Logger
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
.. dropdown:: Example output
|
|
399
|
+
|
|
400
|
+
.. lua:autofunction:: logging.getLogger(name: string? = ...): logging.Logger
|
|
401
|
+
:no-index:
|
|
402
|
+
|
|
368
403
|
.. rst:directive:: .. lua:autoindex:: module-name
|
|
369
404
|
|
|
370
405
|
Creates a table that references all documented objects in the module ``module-name``.
|
|
@@ -387,6 +422,7 @@ Autodoc directive
|
|
|
387
422
|
If given, class name must be absolute, even if this directive appears after
|
|
388
423
|
:rst:dir:`lua:module`.
|
|
389
424
|
|
|
425
|
+
.. _doc_comments:
|
|
390
426
|
|
|
391
427
|
Controlling generation from code comments
|
|
392
428
|
-----------------------------------------
|
|
@@ -12,6 +12,7 @@ release = version = sphinx_lua_ls.__version__
|
|
|
12
12
|
|
|
13
13
|
extensions = [
|
|
14
14
|
"sphinx.ext.githubpages",
|
|
15
|
+
"sphinx.ext.intersphinx",
|
|
15
16
|
"sphinx_design",
|
|
16
17
|
"sphinx_lua_ls",
|
|
17
18
|
"myst_parser",
|
|
@@ -23,9 +24,14 @@ exclude_patterns = []
|
|
|
23
24
|
primary_domain = "lua"
|
|
24
25
|
default_role = "lua:obj"
|
|
25
26
|
|
|
26
|
-
lua_ls_project_root = "
|
|
27
|
+
lua_ls_project_root = "example"
|
|
27
28
|
lua_ls_backend = "emmylua"
|
|
28
29
|
|
|
30
|
+
intersphinx_mapping = {
|
|
31
|
+
"python": ("https://docs.python.org/3", None),
|
|
32
|
+
"sphinx": ("https://www.sphinx-doc.org/", None),
|
|
33
|
+
}
|
|
34
|
+
|
|
29
35
|
# -- Options for HTML output -------------------------------------------------
|
|
30
36
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
31
37
|
|
|
@@ -283,10 +283,13 @@ Parameters
|
|
|
283
283
|
All directives that document Lua objects accept the standard parameters:
|
|
284
284
|
|
|
285
285
|
.. rst:directive:option:: no-index
|
|
286
|
+
no-index-entry
|
|
287
|
+
no-contents-entry
|
|
288
|
+
no-typesetting
|
|
286
289
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
+
The `standard Sphinx options`__ available to all object descriptions.
|
|
291
|
+
|
|
292
|
+
__ https://www.sphinx-doc.org/en/master/usage/domains/index.html#basic-markup
|
|
290
293
|
|
|
291
294
|
.. rst:directive:option:: private
|
|
292
295
|
protected
|
|
@@ -329,7 +332,7 @@ All directives that document Lua objects accept the standard parameters:
|
|
|
329
332
|
|
|
330
333
|
Fetches content from the given url.
|
|
331
334
|
|
|
332
|
-
.. rst:directive:option:: annotation
|
|
335
|
+
.. rst:directive:option:: annotation: <text>
|
|
333
336
|
|
|
334
337
|
Allows adding custom short annotations.
|
|
335
338
|
|
|
@@ -384,12 +387,12 @@ All directives that document Lua objects accept the standard parameters:
|
|
|
384
387
|
|
|
385
388
|
Use ``name`` and ``surname`` instead.
|
|
386
389
|
|
|
387
|
-
.. rst:directive:option:: synopsis
|
|
390
|
+
.. rst:directive:option:: synopsis: <text>
|
|
388
391
|
|
|
389
392
|
Allows adding a small description that's reflected
|
|
390
393
|
in the :rst:dir:`lua:autoindex` output.
|
|
391
394
|
|
|
392
|
-
.. rst:directive:option:: module
|
|
395
|
+
.. rst:directive:option:: module: <name>
|
|
393
396
|
|
|
394
397
|
Allows overriding current module for a single object. This is useful
|
|
395
398
|
for documenting global variables that are declared in a module.
|
|
@@ -58,4 +58,10 @@ function logging.Logger:warning(msg, ...) end
|
|
|
58
58
|
--- @param ... any parameters for message formatting.
|
|
59
59
|
function logging.Logger:error(msg, ...) end
|
|
60
60
|
|
|
61
|
+
--- Get logger with the given name, or create one if it doesn't exist.
|
|
62
|
+
---
|
|
63
|
+
--- @param name string? logger name. Uses current module name if empty.
|
|
64
|
+
--- @return Logger logger logger with the given name.
|
|
65
|
+
function logging.getLogger(name) end
|
|
66
|
+
|
|
61
67
|
return logging
|
|
@@ -36,7 +36,21 @@ Settings
|
|
|
36
36
|
.. py:data:: lua_ls_min_version
|
|
37
37
|
:type: str
|
|
38
38
|
|
|
39
|
-
Controls the
|
|
39
|
+
Controls the minimum version of the used lua analyzer.
|
|
40
|
+
|
|
41
|
+
Analyzer version should be greater than or equal to this version.
|
|
42
|
+
|
|
43
|
+
For LuaLs, default value is ``3.0.0``, for EmmyLua it's ``0.11.0``.
|
|
44
|
+
|
|
45
|
+
.. py:data:: lua_ls_max_version
|
|
46
|
+
:type: str | None
|
|
47
|
+
|
|
48
|
+
Controls the maximum version of the used lua analyzer.
|
|
49
|
+
|
|
50
|
+
Analyzer version should be strictly less than this version.
|
|
51
|
+
|
|
52
|
+
For LuaLs, default value is ``4.0.0``, for EmmyLua it's ``2.0.0``.
|
|
53
|
+
Use ``None`` to allow any version.
|
|
40
54
|
|
|
41
55
|
.. py:data:: lua_ls_default_options
|
|
42
56
|
:type: dict[str, str]
|
|
@@ -89,14 +103,14 @@ Settings
|
|
|
89
103
|
.. py:data:: class_default_force_non_colon
|
|
90
104
|
:type:
|
|
91
105
|
|
|
92
|
-
If
|
|
106
|
+
If ``True``, Sphinx-LuaLs will remove ``self`` from class constructor's signature.
|
|
93
107
|
|
|
94
108
|
If using EmmyLua as lua analyzer, this option will be inferred from ``.emmyrc.json``.
|
|
95
109
|
|
|
96
110
|
.. py:data:: class_default_force_return_self
|
|
97
111
|
:type:
|
|
98
112
|
|
|
99
|
-
If
|
|
113
|
+
If ``True``, Sphinx-LuaLs will replace class constructor's return type with ``self``.
|
|
100
114
|
|
|
101
115
|
If using EmmyLua as lua analyzer, this option will be inferred from ``.emmyrc.json``.
|
|
102
116
|
|
|
@@ -109,7 +123,7 @@ Settings
|
|
|
109
123
|
Can be either ``"5.1"``, ``"5.2"``, ``"5.3"``, ``"5.4"``, or ``"jit"``.
|
|
110
124
|
|
|
111
125
|
By default, Sphinx-LuaLs will choose this setting
|
|
112
|
-
based on your
|
|
126
|
+
based on your ``.emmyrc.json``/``.luarc.json`` file.
|
|
113
127
|
|
|
114
128
|
.. py:data:: lua_ls_apidoc_roots
|
|
115
129
|
:type: dict[str, str | dict[str, Any]]
|
|
@@ -165,7 +179,7 @@ Settings
|
|
|
165
179
|
This option might not work correctly on case-insensitive file systems.
|
|
166
180
|
|
|
167
181
|
It will generate a separate file for every member of a module;
|
|
168
|
-
if there are members that only differ in case (i.e.
|
|
182
|
+
if there are members that only differ in case (i.e. ``Class`` vs ``class``),
|
|
169
183
|
one of them will overwrite the file for another.
|
|
170
184
|
|
|
171
185
|
If you're on Windows, and you experience difficulties because of it,
|
|
@@ -215,7 +229,7 @@ Settings
|
|
|
215
229
|
|
|
216
230
|
Default value is ``50``, which is suitable for most Sphinx themes.
|
|
217
231
|
|
|
218
|
-
Setting this value to
|
|
232
|
+
Setting this value to ``None`` will cause signature formatter
|
|
219
233
|
to use Sphinx's global setting ``maximum_signature_line_length``.
|
|
220
234
|
If ``maximum_signature_line_length`` is also ``None``,
|
|
221
235
|
signature wrapping will be disabled.
|
|
@@ -64,12 +64,19 @@ def run_lua_ls(app: sphinx.application.Sphinx):
|
|
|
64
64
|
min_version = "3.0.0"
|
|
65
65
|
else:
|
|
66
66
|
min_version = "0.11.0"
|
|
67
|
+
max_version = domain.config.max_version
|
|
68
|
+
if max_version == "__auto__":
|
|
69
|
+
if domain.config.backend == "luals":
|
|
70
|
+
max_version = "4.0.0"
|
|
71
|
+
else:
|
|
72
|
+
max_version = "2.0.0"
|
|
67
73
|
|
|
68
74
|
cwd = pathlib.Path.cwd()
|
|
69
75
|
try:
|
|
70
76
|
runner = sphinx_lua_ls.lua_ls.resolve(
|
|
71
77
|
backend=domain.config.backend,
|
|
72
78
|
min_version=min_version,
|
|
79
|
+
max_version=max_version,
|
|
73
80
|
cwd=root_dir,
|
|
74
81
|
reporter=sphinx_lua_ls.lua_ls.SphinxProgressReporter(app.verbosity),
|
|
75
82
|
install=domain.config.auto_install,
|
|
@@ -187,6 +194,7 @@ def setup(app: sphinx.application.Sphinx):
|
|
|
187
194
|
app.add_config_value("lua_ls_auto_install", True, rebuild="")
|
|
188
195
|
app.add_config_value("lua_ls_auto_install_location", None, rebuild="")
|
|
189
196
|
app.add_config_value("lua_ls_min_version", None, rebuild="env")
|
|
197
|
+
app.add_config_value("lua_ls_max_version", "__auto__", rebuild="env")
|
|
190
198
|
app.add_config_value("lua_ls_lua_version", None, rebuild="html")
|
|
191
199
|
app.add_config_value("lua_ls_default_options", None, rebuild="env")
|
|
192
200
|
app.add_config_value("lua_ls_apidoc_roots", None, rebuild="")
|
|
@@ -203,6 +211,42 @@ def setup(app: sphinx.application.Sphinx):
|
|
|
203
211
|
app.add_directive_to_domain(
|
|
204
212
|
"lua", "autoobject", sphinx_lua_ls.autodoc.AutoObjectDirective
|
|
205
213
|
)
|
|
214
|
+
app.add_directive_to_domain(
|
|
215
|
+
"lua", "autofunction", sphinx_lua_ls.autodoc.AutoFunctionDirective
|
|
216
|
+
)
|
|
217
|
+
app.add_directive_to_domain(
|
|
218
|
+
"lua", "autodata", sphinx_lua_ls.autodoc.AutoDataDirective
|
|
219
|
+
)
|
|
220
|
+
app.add_directive_to_domain(
|
|
221
|
+
"lua", "autoconst", sphinx_lua_ls.autodoc.AutoConstDirective
|
|
222
|
+
)
|
|
223
|
+
app.add_directive_to_domain(
|
|
224
|
+
"lua", "autoclass", sphinx_lua_ls.autodoc.AutoClassDirective
|
|
225
|
+
)
|
|
226
|
+
app.add_directive_to_domain(
|
|
227
|
+
"lua", "autoalias", sphinx_lua_ls.autodoc.AutoAliasDirective
|
|
228
|
+
)
|
|
229
|
+
app.add_directive_to_domain(
|
|
230
|
+
"lua", "autoenum", sphinx_lua_ls.autodoc.AutoEnumDirective
|
|
231
|
+
)
|
|
232
|
+
app.add_directive_to_domain(
|
|
233
|
+
"lua", "automethod", sphinx_lua_ls.autodoc.AutoMethodDirective
|
|
234
|
+
)
|
|
235
|
+
app.add_directive_to_domain(
|
|
236
|
+
"lua", "autoclassmethod", sphinx_lua_ls.autodoc.AutoClassmethodDirective
|
|
237
|
+
)
|
|
238
|
+
app.add_directive_to_domain(
|
|
239
|
+
"lua", "autostaticmethod", sphinx_lua_ls.autodoc.AutoStaticmethodDirective
|
|
240
|
+
)
|
|
241
|
+
app.add_directive_to_domain(
|
|
242
|
+
"lua", "autoattribute", sphinx_lua_ls.autodoc.AutoAttributeDirective
|
|
243
|
+
)
|
|
244
|
+
app.add_directive_to_domain(
|
|
245
|
+
"lua", "autotable", sphinx_lua_ls.autodoc.AutoTableDirective
|
|
246
|
+
)
|
|
247
|
+
app.add_directive_to_domain(
|
|
248
|
+
"lua", "automodule", sphinx_lua_ls.autodoc.AutoModuleDirective
|
|
249
|
+
)
|
|
206
250
|
app.add_directive_to_domain(
|
|
207
251
|
"lua", "autoindex", sphinx_lua_ls.autoindex.AutoIndexDirective
|
|
208
252
|
)
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '3.
|
|
32
|
-
__version_tuple__ = version_tuple = (3,
|
|
31
|
+
__version__ = version = '3.5.0'
|
|
32
|
+
__version_tuple__ = version_tuple = (3, 5, 0)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'ga93dbf791'
|