sphinx-lua-ls 3.9.0__tar.gz → 3.10.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.9.0 → sphinx_lua_ls-3.10.0}/.github/workflows/ci.yaml +5 -6
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/.pre-commit-config.yaml +14 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/CHANGELOG.md +10 -2
- {sphinx_lua_ls-3.9.0/sphinx_lua_ls.egg-info → sphinx_lua_ls-3.10.0}/PKG-INFO +1 -1
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/settings.rst +3 -1
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/pyproject.toml +10 -13
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/__init__.py +9 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/_version.py +3 -3
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/apidoc.py +4 -8
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/autodoc.py +4 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/config.py +5 -3
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/inherited.py +1 -1
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0/sphinx_lua_ls.egg-info}/PKG-INFO +1 -1
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls.egg-info/SOURCES.txt +7 -0
- sphinx_lua_ls-3.10.0/test/roots/test-autodoc/index.rst +7 -0
- sphinx_lua_ls-3.10.0/test/roots/test-autodoc/src/unknown_object.rst +6 -0
- sphinx_lua_ls-3.10.0/test/roots/test-autodoc-disabled/conf.py +7 -0
- sphinx_lua_ls-3.10.0/test/roots/test-autodoc-disabled/index.rst +6 -0
- sphinx_lua_ls-3.10.0/test/roots/test-autodoc-emmylua/index.rst +7 -0
- sphinx_lua_ls-3.10.0/test/roots/test-doc/index.rst +7 -0
- sphinx_lua_ls-3.10.0/test/roots/test-intersphinx/Makefile +20 -0
- sphinx_lua_ls-3.10.0/test/roots/test-intersphinx/make.bat +35 -0
- sphinx_lua_ls-3.10.0/test/test_regression/autodoc-roots-no-roots.html +2 -0
- sphinx_lua_ls-3.10.0/test/test_regression/autodoc-unknown_object.html +2 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression.py +52 -12
- sphinx_lua_ls-3.9.0/test/roots/test-autodoc/index.rst +0 -15
- sphinx_lua_ls-3.9.0/test/roots/test-autodoc-emmylua/index.rst +0 -22
- sphinx_lua_ls-3.9.0/test/roots/test-doc/index.rst +0 -11
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/.cl-keeper.yaml +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/.github/dependabot.yml +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/.gitignore +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/.readthedocs.yaml +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/CONTRIBUTING.md +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/LICENSE +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/README.md +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/conftest.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/Makefile +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/make.bat +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/_extra/robots.txt +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/apidoc.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/autodoc.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/conf.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/directives.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/example/.emmyrc.json +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/example/logging.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/example.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/index.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/installation.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/quickstart.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/docs/source/roles.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/setup.cfg +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/autoindex.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/domain.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/intersphinx.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/lua_ls.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/nodes.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/objtree.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/py.typed +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/pygments.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/static/lua.css +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls/utils.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls.egg-info/dependency_links.txt +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls.egg-info/requires.txt +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/sphinx_lua_ls.egg-info/top_level.txt +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/conftest.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-apidoc/.gitignore +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-apidoc/Makefile +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-apidoc/conf.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-apidoc/index.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-apidoc/lua/mod/inner.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-apidoc/lua/mod.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-apidoc/make.bat +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-doc → sphinx_lua_ls-3.10.0/test/roots/test-autodoc}/Makefile +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/conf.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/lua/annotations.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/lua/globals.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/lua/globals_2.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/lua/member_ordering.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/lua/module_title.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/lua/nested_modules.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/lua/nesting.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/lua/object_types.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/lua/relative_resolve.lua +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-doc → sphinx_lua_ls-3.10.0/test/roots/test-autodoc}/make.bat +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/src/annotations.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/src/autoindex.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/src/globals.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/src/member_ordering.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/src/module_title.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/src/nested_modules.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/src/nesting.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/src/nesting_recursive.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/src/object_types.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc/src/relative_resolve.rst +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-emmylua → sphinx_lua_ls-3.10.0/test/roots/test-autodoc-disabled}/Makefile +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-emmylua → sphinx_lua_ls-3.10.0/test/roots/test-autodoc-disabled}/make.bat +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-roots → sphinx_lua_ls-3.10.0/test/roots/test-autodoc-emmylua}/Makefile +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/conf.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/.emmyrc.json +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/annotations.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/doctype.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/foo/x.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/global_tables.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/globals.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/globals_2.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/incongruent_export.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/member_ordering.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/module_function.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/module_title.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/nested_modules.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/nesting.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/object_types.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/relative_resolve.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/signatures.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/lua/using.lua +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-roots → sphinx_lua_ls-3.10.0/test/roots/test-autodoc-emmylua}/make.bat +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/annotations.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/autoindex.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/doctype.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/global_tables.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/globals.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/incongruent_export.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/member_ordering.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/module_function.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/module_title.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/nested_modules.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/nesting.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/nesting_recursive.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/object_types.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/relative_resolve.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/require.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/signatures.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-emmylua/src/using.rst +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-settings-override → sphinx_lua_ls-3.10.0/test/roots/test-autodoc-roots}/Makefile +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-roots/conf.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-roots/index.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-roots/lua/root_1/autodoc.lua +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-roots/lua/root_2/autodoc.lua +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-settings-override → sphinx_lua_ls-3.10.0/test/roots/test-autodoc-roots}/make.bat +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-autodoc → sphinx_lua_ls-3.10.0/test/roots/test-autodoc-settings}/Makefile +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-settings/conf.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-settings/index.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-settings/lua/autodoc.lua +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-autodoc → sphinx_lua_ls-3.10.0/test/roots/test-autodoc-settings}/make.bat +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-settings → sphinx_lua_ls-3.10.0/test/roots/test-autodoc-settings-override}/Makefile +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-settings-override/conf.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-settings-override/index.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-autodoc-settings-override/lua/autodoc.lua +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-autodoc-settings → sphinx_lua_ls-3.10.0/test/roots/test-autodoc-settings-override}/make.bat +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-intersphinx → sphinx_lua_ls-3.10.0/test/roots/test-doc}/Makefile +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-doc/conf.py +0 -0
- {sphinx_lua_ls-3.9.0/test/roots/test-intersphinx → sphinx_lua_ls-3.10.0/test/roots/test-doc}/make.bat +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-doc/src/annotations.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-doc/src/autoindex.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-doc/src/directives.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-doc/src/inherited.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-doc/src/modules.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-doc/src/refs.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-intersphinx/conf.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/roots/test-intersphinx/index.rst +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_parse.py +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/apidoc-md-sep.yml +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/apidoc-md.yml +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/apidoc-rst-sep.yml +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/apidoc-rst.yml +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-annotations.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-autoindex.html +0 -0
- /sphinx_lua_ls-3.9.0/test/test_regression/autodoc-roots-no-roots.html → /sphinx_lua_ls-3.10.0/test/test_regression/autodoc-disabled-index.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-annotations.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-autoindex.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-doctype.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-global_tables.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-globals.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-incongruent_export.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-index.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-member_ordering.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-module_function.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-module_title.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-nested_modules.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-nesting.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-nesting_recursive.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-object_types.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-relative_resolve.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-require.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-signatures.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-emmylua-using.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-globals.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-member_ordering.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-module_title.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-nested_modules.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-nesting.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-nesting_recursive.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-object_types.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-relative_resolve.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-roots-default.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-roots-single-root.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-settings-no-recursion.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/autodoc-settings-simple.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/doc-annotations.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/doc-autoindex.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/doc-directives.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/doc-inherited.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/doc-modules.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_regression/doc-refs.html +0 -0
- {sphinx_lua_ls-3.9.0 → sphinx_lua_ls-3.10.0}/test/test_versions.py +0 -0
|
@@ -126,13 +126,12 @@ jobs:
|
|
|
126
126
|
ref="${{ github.ref }}";
|
|
127
127
|
version=${ref#refs/tags/v};
|
|
128
128
|
link="https://pypi.org/p/sphinx-lua-ls/${version}";
|
|
129
|
-
echo "version=${version}" >> $GITHUB_OUTPUT
|
|
130
129
|
echo "link=${link}" >> $GITHUB_OUTPUT
|
|
131
130
|
- name: Parse Changelog
|
|
132
131
|
id: changelog
|
|
133
|
-
uses:
|
|
132
|
+
uses: taminomara/cl-keeper@v0
|
|
134
133
|
with:
|
|
135
|
-
version: ${{
|
|
134
|
+
version: ${{ github.ref }}
|
|
136
135
|
- name: Set up python 3.12
|
|
137
136
|
uses: actions/setup-python@v4
|
|
138
137
|
with:
|
|
@@ -150,11 +149,11 @@ jobs:
|
|
|
150
149
|
- name: Create GitHub release
|
|
151
150
|
uses: softprops/action-gh-release@v2
|
|
152
151
|
with:
|
|
153
|
-
prerelease: ${{ steps.changelog.outputs.
|
|
154
|
-
draft: ${{ steps.changelog.outputs.
|
|
152
|
+
prerelease: ${{ fromJSON(steps.changelog.outputs.is-pre-release) }}
|
|
153
|
+
draft: ${{ fromJSON(steps.changelog.outputs.is-unreleased) }}
|
|
155
154
|
body: |
|
|
156
155
|
## Changelog
|
|
157
156
|
|
|
158
|
-
${{ steps.changelog.outputs.
|
|
157
|
+
${{ steps.changelog.outputs.text }}
|
|
159
158
|
|
|
160
159
|
[See release on PyPi](${{ steps.metadata.outputs.link }})
|
|
@@ -13,6 +13,20 @@ repos:
|
|
|
13
13
|
entry: isort --filter-files
|
|
14
14
|
types_or: [python, pyi]
|
|
15
15
|
require_serial: true
|
|
16
|
+
- id: clk
|
|
17
|
+
name: changelog keeper
|
|
18
|
+
language: system
|
|
19
|
+
entry: clk pre-commit-check
|
|
20
|
+
require_serial: true
|
|
21
|
+
types_or: [toml, yaml, markdown]
|
|
22
|
+
- id: clk-tags
|
|
23
|
+
name: changelog keeper (check tags)
|
|
24
|
+
language: system
|
|
25
|
+
entry: clk pre-commit-check-tag
|
|
26
|
+
always_run: true
|
|
27
|
+
pass_filenames: false
|
|
28
|
+
require_serial: true
|
|
29
|
+
stages: [pre-push]
|
|
16
30
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
17
31
|
rev: v6.0.0
|
|
18
32
|
hooks:
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [3.10.0] - 2026-01-29
|
|
6
|
+
|
|
7
|
+
- Added option to disable running lua-ls (`lua_ls_backend = "disable"`) for cases when
|
|
8
|
+
only manual documentation is required ([#47] by [@pieterlexis]).
|
|
9
|
+
|
|
5
10
|
## [3.9.0] - 2026-01-23
|
|
6
11
|
|
|
7
12
|
- Fixed LaTeX build and improved rendering of multiline signatures in LaTeX ([#46]).
|
|
@@ -251,10 +256,11 @@ Initial release.
|
|
|
251
256
|
|
|
252
257
|
## [0.0.1] - 2025-03-09
|
|
253
258
|
|
|
254
|
-
[#46]:https://github.com/sphinx-contrib/lua-ls/issues/46
|
|
255
259
|
[#18]: https://github.com/sphinx-contrib/lua-ls/pull/18
|
|
256
260
|
[#19]: https://github.com/sphinx-contrib/lua-ls/pull/19
|
|
257
261
|
[#3]: https://github.com/sphinx-contrib/lua-ls/issues/3
|
|
262
|
+
[#46]: https://github.com/sphinx-contrib/lua-ls/issues/46
|
|
263
|
+
[#47]: https://github.com/sphinx-contrib/lua-ls/pull/47
|
|
258
264
|
[0.0.1]: https://github.com/sphinx-contrib/lua-ls/releases/tag/v0.0.1
|
|
259
265
|
[0.0.2]: https://github.com/sphinx-contrib/lua-ls/compare/v0.0.1...v0.0.2
|
|
260
266
|
[0.0.3]: https://github.com/sphinx-contrib/lua-ls/compare/v0.0.2...v0.0.3
|
|
@@ -265,6 +271,7 @@ Initial release.
|
|
|
265
271
|
[2.0.1]: https://github.com/sphinx-contrib/lua-ls/compare/v2.0.0...v2.0.1
|
|
266
272
|
[3.0.0]: https://github.com/sphinx-contrib/lua-ls/compare/v2.0.1...v3.0.0
|
|
267
273
|
[3.1.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.0.0...v3.1.0
|
|
274
|
+
[3.10.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.9.0...v3.10.0
|
|
268
275
|
[3.2.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.1.0...v3.2.0
|
|
269
276
|
[3.3.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.2.0...v3.3.0
|
|
270
277
|
[3.4.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.3.0...v3.4.0
|
|
@@ -277,6 +284,7 @@ Initial release.
|
|
|
277
284
|
[3.8.1]: https://github.com/sphinx-contrib/lua-ls/compare/v3.8.0...v3.8.1
|
|
278
285
|
[3.9.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.8.1...v3.9.0
|
|
279
286
|
[@bkoropoff]: https://github.com/bkoropoff
|
|
287
|
+
[@pieterlexis]: https://github.com/pieterlexis
|
|
280
288
|
[emmylua]: https://github.com/EmmyLuaLs/emmylua-analyzer-rust/
|
|
281
289
|
[luals#3301]: https://github.com/LuaLS/lua-language-server/issues/3301
|
|
282
|
-
[unreleased]: https://github.com/sphinx-contrib/lua-ls/compare/v3.
|
|
290
|
+
[unreleased]: https://github.com/sphinx-contrib/lua-ls/compare/v3.10.0...HEAD
|
|
@@ -18,7 +18,9 @@ Settings
|
|
|
18
18
|
.. py:data:: lua_ls_backend
|
|
19
19
|
:type: str
|
|
20
20
|
|
|
21
|
-
Controls which lua analyzer is used. Can be either ``"emmylua"`` or ``"
|
|
21
|
+
Controls which lua analyzer is used. Can be either ``"emmylua"``, ``"luals"``, or ``"disable"``.
|
|
22
|
+
When set to ``"disable"``, no Lua files are analyzed, all language server related settings
|
|
23
|
+
are ignored, and :doc:`autodoc` does not work.
|
|
22
24
|
|
|
23
25
|
.. py:data:: lua_ls_auto_install
|
|
24
26
|
:type: bool
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "sphinx-lua-ls"
|
|
3
|
-
authors = [{name = "Tamika Nomara", email = "taminomara@gmail.com"}]
|
|
3
|
+
authors = [{ name = "Tamika Nomara", email = "taminomara@gmail.com" }]
|
|
4
4
|
description = "Automatic documentation generation via EmmyLua/LuaLs"
|
|
5
5
|
dynamic = ["version"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -21,23 +21,20 @@ classifiers = [
|
|
|
21
21
|
"Topic :: Documentation :: Sphinx",
|
|
22
22
|
"Typing :: Typed",
|
|
23
23
|
]
|
|
24
|
-
dependencies = [
|
|
25
|
-
"sphinx>=8.0,<10.0",
|
|
26
|
-
"PyGithub>=1.59,<3.0",
|
|
27
|
-
"requests~=2.31",
|
|
28
|
-
]
|
|
24
|
+
dependencies = ["sphinx>=8.0,<10.0", "PyGithub>=1.59,<3.0", "requests~=2.31"]
|
|
29
25
|
|
|
30
26
|
[dependency-groups]
|
|
31
27
|
dev = [
|
|
32
28
|
"pytest-cov==7.0.0",
|
|
33
|
-
{include-group = "test"},
|
|
34
|
-
{include-group = "lint"},
|
|
35
|
-
{include-group = "doc"},
|
|
29
|
+
{ include-group = "test" },
|
|
30
|
+
{ include-group = "lint" },
|
|
31
|
+
{ include-group = "doc" },
|
|
36
32
|
]
|
|
37
33
|
lint = [
|
|
38
|
-
"black==
|
|
34
|
+
"black==26.1.0",
|
|
39
35
|
"isort==7.0.0",
|
|
40
|
-
"pre-commit==4.5.
|
|
36
|
+
"pre-commit==4.5.1",
|
|
37
|
+
"cl-keeper==0.0.0-b6",
|
|
41
38
|
]
|
|
42
39
|
test = [
|
|
43
40
|
"pyright==1.1.408",
|
|
@@ -45,13 +42,13 @@ test = [
|
|
|
45
42
|
"sybil==9.3.0",
|
|
46
43
|
"pytest-regressions==2.9.1",
|
|
47
44
|
"beautifulsoup4==4.14.3",
|
|
48
|
-
"myst-parser==5.0.0"
|
|
45
|
+
"myst-parser==5.0.0",
|
|
49
46
|
]
|
|
50
47
|
doc = [
|
|
51
48
|
"sybil==9.3.0",
|
|
52
49
|
"furo==2025.12.19",
|
|
53
50
|
"sphinx_design==0.7.0",
|
|
54
|
-
"myst-parser==5.0.0"
|
|
51
|
+
"myst-parser==5.0.0",
|
|
55
52
|
]
|
|
56
53
|
|
|
57
54
|
[project.urls]
|
|
@@ -33,6 +33,9 @@ logger = logging.getLogger("sphinx_lua_ls")
|
|
|
33
33
|
def run_lua_ls(app: sphinx.application.Sphinx):
|
|
34
34
|
domain: sphinx_lua_ls.domain.LuaDomain = app.env.get_domain("lua") # type: ignore
|
|
35
35
|
|
|
36
|
+
if domain.config.backend == "disable":
|
|
37
|
+
return
|
|
38
|
+
|
|
36
39
|
root_dir = domain.config.project_root
|
|
37
40
|
project_directories = domain.config.project_directories
|
|
38
41
|
if project_directories is None:
|
|
@@ -130,6 +133,12 @@ def run_apidoc(
|
|
|
130
133
|
app: sphinx.application.Sphinx,
|
|
131
134
|
):
|
|
132
135
|
domain = _t.cast(sphinx_lua_ls.domain.LuaDomain, app.env.get_domain("lua"))
|
|
136
|
+
if domain.config.backend == "disable":
|
|
137
|
+
logger.warning(
|
|
138
|
+
"apidoc requested, but the language server backend is disabled",
|
|
139
|
+
type="lua-ls",
|
|
140
|
+
)
|
|
141
|
+
return
|
|
133
142
|
cwd = pathlib.Path.cwd()
|
|
134
143
|
for name, params in domain.config.apidoc_roots.items():
|
|
135
144
|
try:
|
|
@@ -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.10.0'
|
|
32
|
+
__version_tuple__ = version_tuple = (3, 10, 0)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g73d8efc53'
|
|
@@ -22,8 +22,7 @@ _ENV.filters["h2"] = lambda title: f"{title}\n{'-' * len(title)}" # type: ignor
|
|
|
22
22
|
_ENV.filters["h3"] = lambda title: f"{title}\n{'~' * len(title)}" # type: ignore
|
|
23
23
|
_ENV.filters["mangle"] = lambda name: _mangle_filename(name) # type: ignore
|
|
24
24
|
|
|
25
|
-
_TEMPLATE_RST = _ENV.from_string(
|
|
26
|
-
"""{{ title | h1 }}
|
|
25
|
+
_TEMPLATE_RST = _ENV.from_string("""{{ title | h1 }}
|
|
27
26
|
|
|
28
27
|
.. lua:currentmodule:: {{ parent_modname }}
|
|
29
28
|
|
|
@@ -39,11 +38,9 @@ _TEMPLATE_RST = _ENV.from_string(
|
|
|
39
38
|
{{ child_fullname | mangle }}.rst
|
|
40
39
|
{% endfor %}
|
|
41
40
|
{% endif %}
|
|
42
|
-
""".lstrip()
|
|
43
|
-
)
|
|
41
|
+
""".lstrip())
|
|
44
42
|
|
|
45
|
-
_TEMPLATE_MD = _ENV.from_string(
|
|
46
|
-
"""# {{ title }}
|
|
43
|
+
_TEMPLATE_MD = _ENV.from_string("""# {{ title }}
|
|
47
44
|
|
|
48
45
|
```{lua:currentmodule} {{ parent_modname }}
|
|
49
46
|
```
|
|
@@ -62,8 +59,7 @@ _TEMPLATE_MD = _ENV.from_string(
|
|
|
62
59
|
{% endfor %}
|
|
63
60
|
```
|
|
64
61
|
{% endif %}
|
|
65
|
-
""".lstrip()
|
|
66
|
-
)
|
|
62
|
+
""".lstrip())
|
|
67
63
|
|
|
68
64
|
|
|
69
65
|
def generate(
|
|
@@ -1069,6 +1069,10 @@ class AutoObjectDirective(AutodocUtilsMixin):
|
|
|
1069
1069
|
doctype_override: str | None = None
|
|
1070
1070
|
|
|
1071
1071
|
def run(self):
|
|
1072
|
+
if self.lua_domain.config.backend == "disable":
|
|
1073
|
+
raise self.error(
|
|
1074
|
+
"autoobject requested but the Lua language server is disabled"
|
|
1075
|
+
)
|
|
1072
1076
|
self.prepare_options()
|
|
1073
1077
|
|
|
1074
1078
|
signatures: list[str] = []
|
|
@@ -20,7 +20,7 @@ A = _t.ParamSpec("A")
|
|
|
20
20
|
@dataclass
|
|
21
21
|
class LuaDomainConfig:
|
|
22
22
|
project_root: pathlib.Path
|
|
23
|
-
backend: _t.Literal["emmylua", "luals"] = "luals"
|
|
23
|
+
backend: _t.Literal["emmylua", "luals", "disable"] = "luals"
|
|
24
24
|
project_directories: list[pathlib.Path] | None = None
|
|
25
25
|
auto_install: bool = True
|
|
26
26
|
auto_install_location: pathlib.Path | None = None
|
|
@@ -188,9 +188,11 @@ def set_options(app: sphinx.application.Sphinx):
|
|
|
188
188
|
|
|
189
189
|
if config["lua_ls_backend"] is not None:
|
|
190
190
|
domain_config.backend = _t.cast(
|
|
191
|
-
_t.Literal["emmylua", "luals"],
|
|
191
|
+
_t.Literal["emmylua", "luals", "disable"],
|
|
192
192
|
_str_choices(
|
|
193
|
-
"lua_ls_backend",
|
|
193
|
+
"lua_ls_backend",
|
|
194
|
+
config["lua_ls_backend"],
|
|
195
|
+
["luals", "emmylua", "disable"],
|
|
194
196
|
),
|
|
195
197
|
)
|
|
196
198
|
else:
|
|
@@ -61,6 +61,10 @@ test/roots/test-autodoc/Makefile
|
|
|
61
61
|
test/roots/test-autodoc/conf.py
|
|
62
62
|
test/roots/test-autodoc/index.rst
|
|
63
63
|
test/roots/test-autodoc/make.bat
|
|
64
|
+
test/roots/test-autodoc-disabled/Makefile
|
|
65
|
+
test/roots/test-autodoc-disabled/conf.py
|
|
66
|
+
test/roots/test-autodoc-disabled/index.rst
|
|
67
|
+
test/roots/test-autodoc-disabled/make.bat
|
|
64
68
|
test/roots/test-autodoc-emmylua/Makefile
|
|
65
69
|
test/roots/test-autodoc-emmylua/conf.py
|
|
66
70
|
test/roots/test-autodoc-emmylua/index.rst
|
|
@@ -134,6 +138,7 @@ test/roots/test-autodoc/src/nesting.rst
|
|
|
134
138
|
test/roots/test-autodoc/src/nesting_recursive.rst
|
|
135
139
|
test/roots/test-autodoc/src/object_types.rst
|
|
136
140
|
test/roots/test-autodoc/src/relative_resolve.rst
|
|
141
|
+
test/roots/test-autodoc/src/unknown_object.rst
|
|
137
142
|
test/roots/test-doc/Makefile
|
|
138
143
|
test/roots/test-doc/conf.py
|
|
139
144
|
test/roots/test-doc/index.rst
|
|
@@ -154,6 +159,7 @@ test/test_regression/apidoc-rst-sep.yml
|
|
|
154
159
|
test/test_regression/apidoc-rst.yml
|
|
155
160
|
test/test_regression/autodoc-annotations.html
|
|
156
161
|
test/test_regression/autodoc-autoindex.html
|
|
162
|
+
test/test_regression/autodoc-disabled-index.html
|
|
157
163
|
test/test_regression/autodoc-emmylua-annotations.html
|
|
158
164
|
test/test_regression/autodoc-emmylua-autoindex.html
|
|
159
165
|
test/test_regression/autodoc-emmylua-doctype.html
|
|
@@ -185,6 +191,7 @@ test/test_regression/autodoc-roots-no-roots.html
|
|
|
185
191
|
test/test_regression/autodoc-roots-single-root.html
|
|
186
192
|
test/test_regression/autodoc-settings-no-recursion.html
|
|
187
193
|
test/test_regression/autodoc-settings-simple.html
|
|
194
|
+
test/test_regression/autodoc-unknown_object.html
|
|
188
195
|
test/test_regression/doc-annotations.html
|
|
189
196
|
test/test_regression/doc-autoindex.html
|
|
190
197
|
test/test_regression/doc-directives.html
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line, and also
|
|
5
|
+
# from the environment for the first two.
|
|
6
|
+
SPHINXOPTS ?=
|
|
7
|
+
SPHINXBUILD ?= sphinx-build
|
|
8
|
+
SOURCEDIR = .
|
|
9
|
+
BUILDDIR = build
|
|
10
|
+
|
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
|
12
|
+
help:
|
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
+
|
|
15
|
+
.PHONY: help Makefile
|
|
16
|
+
|
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
+
%: Makefile
|
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@ECHO OFF
|
|
2
|
+
|
|
3
|
+
pushd %~dp0
|
|
4
|
+
|
|
5
|
+
REM Command file for Sphinx documentation
|
|
6
|
+
|
|
7
|
+
if "%SPHINXBUILD%" == "" (
|
|
8
|
+
set SPHINXBUILD=sphinx-build
|
|
9
|
+
)
|
|
10
|
+
set SOURCEDIR=.
|
|
11
|
+
set BUILDDIR=build
|
|
12
|
+
|
|
13
|
+
%SPHINXBUILD% >NUL 2>NUL
|
|
14
|
+
if errorlevel 9009 (
|
|
15
|
+
echo.
|
|
16
|
+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
|
17
|
+
echo.installed, then set the SPHINXBUILD environment variable to point
|
|
18
|
+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
|
19
|
+
echo.may add the Sphinx directory to PATH.
|
|
20
|
+
echo.
|
|
21
|
+
echo.If you don't have Sphinx installed, grab it from
|
|
22
|
+
echo.https://www.sphinx-doc.org/
|
|
23
|
+
exit /b 1
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
if "%1" == "" goto help
|
|
27
|
+
|
|
28
|
+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
29
|
+
goto end
|
|
30
|
+
|
|
31
|
+
:help
|
|
32
|
+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
33
|
+
|
|
34
|
+
:end
|
|
35
|
+
popd
|
|
@@ -54,21 +54,25 @@ def test_intersphinx(app, ver):
|
|
|
54
54
|
@pytest.mark.sphinx("html", testroot="autodoc")
|
|
55
55
|
@pytest.mark.test_params(shared_result="test_autodoc_regression")
|
|
56
56
|
@pytest.mark.parametrize(
|
|
57
|
-
"src",
|
|
57
|
+
"src,messages",
|
|
58
58
|
[
|
|
59
|
-
"src/annotations.html",
|
|
60
|
-
"src/autoindex.html",
|
|
61
|
-
"src/globals.html",
|
|
62
|
-
"src/member_ordering.html",
|
|
63
|
-
"src/module_title.html",
|
|
64
|
-
"src/nested_modules.html",
|
|
65
|
-
"src/nesting_recursive.html",
|
|
66
|
-
"src/nesting.html",
|
|
67
|
-
"src/object_types.html",
|
|
68
|
-
"src/relative_resolve.html",
|
|
59
|
+
("src/annotations.html", []),
|
|
60
|
+
("src/autoindex.html", []),
|
|
61
|
+
("src/globals.html", []),
|
|
62
|
+
("src/member_ordering.html", []),
|
|
63
|
+
("src/module_title.html", []),
|
|
64
|
+
("src/nested_modules.html", []),
|
|
65
|
+
("src/nesting_recursive.html", []),
|
|
66
|
+
("src/nesting.html", []),
|
|
67
|
+
("src/object_types.html", []),
|
|
68
|
+
("src/relative_resolve.html", []),
|
|
69
|
+
(
|
|
70
|
+
"src/unknown_object.html",
|
|
71
|
+
["ERROR: unknown lua object unknown_module.UnknownObject"],
|
|
72
|
+
),
|
|
69
73
|
],
|
|
70
74
|
)
|
|
71
|
-
def test_autodoc_regression(app, src, file_regression):
|
|
75
|
+
def test_autodoc_regression(app, src, messages, file_regression):
|
|
72
76
|
app.build()
|
|
73
77
|
path = pathlib.Path(app.outdir) / src
|
|
74
78
|
soup = BeautifulSoup(path.read_text("utf8"), "html.parser")
|
|
@@ -81,6 +85,10 @@ def test_autodoc_regression(app, src, file_regression):
|
|
|
81
85
|
encoding="utf8",
|
|
82
86
|
)
|
|
83
87
|
|
|
88
|
+
warning = app.warning.getvalue()
|
|
89
|
+
for message in messages:
|
|
90
|
+
assert message in warning
|
|
91
|
+
|
|
84
92
|
|
|
85
93
|
@pytest.mark.sphinx("html", testroot="autodoc-emmylua")
|
|
86
94
|
@pytest.mark.test_params(shared_result="test_autodoc_regression_emmylua")
|
|
@@ -271,3 +279,35 @@ def test_apidoc(app, name, data_regression, file_regression):
|
|
|
271
279
|
},
|
|
272
280
|
basename=f"apidoc-{name}",
|
|
273
281
|
)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
@pytest.mark.sphinx("html", testroot="autodoc-disabled")
|
|
285
|
+
@pytest.mark.test_params(shared_result="test_autodoc_disabled")
|
|
286
|
+
@pytest.mark.parametrize(
|
|
287
|
+
"src,messages",
|
|
288
|
+
[
|
|
289
|
+
(
|
|
290
|
+
"index.html",
|
|
291
|
+
[
|
|
292
|
+
"autoobject requested but the Lua language server is disabled",
|
|
293
|
+
"ERROR: autoobject requested but the Lua language server is disabled",
|
|
294
|
+
],
|
|
295
|
+
),
|
|
296
|
+
],
|
|
297
|
+
)
|
|
298
|
+
def test_autodoc_disabled(app, src, messages, file_regression):
|
|
299
|
+
app.build()
|
|
300
|
+
path = pathlib.Path(app.outdir) / src
|
|
301
|
+
soup = BeautifulSoup(path.read_text("utf8"), "html.parser")
|
|
302
|
+
content = soup.select_one("div.regression")
|
|
303
|
+
assert content
|
|
304
|
+
file_regression.check(
|
|
305
|
+
content.prettify(),
|
|
306
|
+
basename="autodoc-disabled-" + pathlib.Path(src).stem,
|
|
307
|
+
extension=".html",
|
|
308
|
+
encoding="utf8",
|
|
309
|
+
)
|
|
310
|
+
|
|
311
|
+
warning = app.warning.getvalue()
|
|
312
|
+
for message in messages:
|
|
313
|
+
assert message in warning
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Test autodoc
|
|
2
|
-
============
|
|
3
|
-
|
|
4
|
-
.. toctree::
|
|
5
|
-
|
|
6
|
-
src/annotations.rst
|
|
7
|
-
src/autoindex.rst
|
|
8
|
-
src/globals.rst
|
|
9
|
-
src/member_ordering.rst
|
|
10
|
-
src/module_title.rst
|
|
11
|
-
src/nested_modules.rst
|
|
12
|
-
src/nesting_recursive.rst
|
|
13
|
-
src/nesting.rst
|
|
14
|
-
src/object_types.rst
|
|
15
|
-
src/relative_resolve.rst
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
Test autodoc
|
|
2
|
-
============
|
|
3
|
-
|
|
4
|
-
.. toctree::
|
|
5
|
-
|
|
6
|
-
src/annotations.rst
|
|
7
|
-
src/autoindex.rst
|
|
8
|
-
src/doctype.rst
|
|
9
|
-
src/globals.rst
|
|
10
|
-
src/global_tables.rst
|
|
11
|
-
src/incongruent_export.rst
|
|
12
|
-
src/member_ordering.rst
|
|
13
|
-
src/module_title.rst
|
|
14
|
-
src/module_function.rst
|
|
15
|
-
src/nested_modules.rst
|
|
16
|
-
src/nesting_recursive.rst
|
|
17
|
-
src/nesting.rst
|
|
18
|
-
src/object_types.rst
|
|
19
|
-
src/relative_resolve.rst
|
|
20
|
-
src/require.rst
|
|
21
|
-
src/signatures.rst
|
|
22
|
-
src/using.rst
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|