sphinx-lua-ls 3.1.0__tar.gz → 3.2.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.
Files changed (182) hide show
  1. sphinx_lua_ls-3.2.0/.github/dependabot.yml +21 -0
  2. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/.github/workflows/ci.yaml +1 -33
  3. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/CHANGELOG.md +13 -0
  4. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/PKG-INFO +17 -17
  5. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/source/roles.rst +1 -2
  6. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/pyproject.toml +16 -16
  7. sphinx_lua_ls-3.2.0/sphinx_lua_ls/__init__.py +217 -0
  8. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/_version.py +3 -3
  9. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/autodoc.py +11 -15
  10. sphinx_lua_ls-3.2.0/sphinx_lua_ls/config.py +302 -0
  11. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/domain.py +31 -18
  12. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/inherited.py +2 -1
  13. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/intersphinx.py +10 -1
  14. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/utils.py +28 -9
  15. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls.egg-info/PKG-INFO +17 -17
  16. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls.egg-info/SOURCES.txt +2 -0
  17. sphinx_lua_ls-3.2.0/sphinx_lua_ls.egg-info/requires.txt +26 -0
  18. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-doc/src/directives.rst +5 -1
  19. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-object_types.html +6 -12
  20. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/doc-directives.html +424 -4
  21. sphinx_lua_ls-3.1.0/sphinx_lua_ls/__init__.py +0 -454
  22. sphinx_lua_ls-3.1.0/sphinx_lua_ls.egg-info/requires.txt +0 -26
  23. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/.gitignore +0 -0
  24. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/.pre-commit-config.yaml +0 -0
  25. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/CONTRIBUTING.md +0 -0
  26. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/LICENSE +0 -0
  27. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/README.md +0 -0
  28. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/conftest.py +0 -0
  29. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/Makefile +0 -0
  30. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/example/.emmyrc.json +0 -0
  31. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/example/logging.lua +0 -0
  32. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/make.bat +0 -0
  33. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/source/_extra/robots.txt +0 -0
  34. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/source/apidoc.rst +0 -0
  35. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/source/autodoc.rst +0 -0
  36. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/source/conf.py +0 -0
  37. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/source/directives.rst +0 -0
  38. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/source/example.rst +0 -0
  39. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/source/index.rst +0 -0
  40. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/source/installation.rst +0 -0
  41. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/source/quickstart.rst +0 -0
  42. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/docs/source/settings.rst +0 -0
  43. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/setup.cfg +0 -0
  44. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/apidoc.py +0 -0
  45. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/autoindex.py +0 -0
  46. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/lua_ls.py +0 -0
  47. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/objtree.py +0 -0
  48. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/py.typed +0 -0
  49. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/pygments.py +0 -0
  50. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls/static/lua.css +0 -0
  51. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls.egg-info/dependency_links.txt +0 -0
  52. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/sphinx_lua_ls.egg-info/top_level.txt +0 -0
  53. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/conftest.py +0 -0
  54. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-apidoc/.gitignore +0 -0
  55. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-apidoc/Makefile +0 -0
  56. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-apidoc/conf.py +0 -0
  57. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-apidoc/index.rst +0 -0
  58. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-apidoc/lua/mod/inner.lua +0 -0
  59. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-apidoc/lua/mod.lua +0 -0
  60. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-apidoc/make.bat +0 -0
  61. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/Makefile +0 -0
  62. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/conf.py +0 -0
  63. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/index.rst +0 -0
  64. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/lua/annotations.lua +0 -0
  65. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/lua/globals.lua +0 -0
  66. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/lua/globals_2.lua +0 -0
  67. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/lua/member_ordering.lua +0 -0
  68. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/lua/module_title.lua +0 -0
  69. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/lua/nested_modules.lua +0 -0
  70. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/lua/nesting.lua +0 -0
  71. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/lua/object_types.lua +0 -0
  72. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/lua/relative_resolve.lua +0 -0
  73. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/make.bat +0 -0
  74. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/src/annotations.rst +0 -0
  75. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/src/autoindex.rst +0 -0
  76. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/src/globals.rst +0 -0
  77. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/src/member_ordering.rst +0 -0
  78. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/src/module_title.rst +0 -0
  79. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/src/nested_modules.rst +0 -0
  80. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/src/nesting.rst +0 -0
  81. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/src/nesting_recursive.rst +0 -0
  82. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/src/object_types.rst +0 -0
  83. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc/src/relative_resolve.rst +0 -0
  84. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/Makefile +0 -0
  85. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/conf.py +0 -0
  86. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/index.rst +0 -0
  87. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/.emmyrc.json +0 -0
  88. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/annotations.lua +0 -0
  89. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/foo/x.lua +0 -0
  90. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/global_tables.lua +0 -0
  91. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/globals.lua +0 -0
  92. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/globals_2.lua +0 -0
  93. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/incongruent_export.lua +0 -0
  94. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/member_ordering.lua +0 -0
  95. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/module_title.lua +0 -0
  96. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/nested_modules.lua +0 -0
  97. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/nesting.lua +0 -0
  98. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/object_types.lua +0 -0
  99. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/relative_resolve.lua +0 -0
  100. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/signatures.lua +0 -0
  101. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/lua/using.lua +0 -0
  102. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/make.bat +0 -0
  103. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/annotations.rst +0 -0
  104. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/autoindex.rst +0 -0
  105. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/global_tables.rst +0 -0
  106. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/globals.rst +0 -0
  107. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/incongruent_export.rst +0 -0
  108. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/member_ordering.rst +0 -0
  109. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/module_title.rst +0 -0
  110. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/nested_modules.rst +0 -0
  111. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/nesting.rst +0 -0
  112. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/nesting_recursive.rst +0 -0
  113. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/object_types.rst +0 -0
  114. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/relative_resolve.rst +0 -0
  115. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/require.rst +0 -0
  116. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/signatures.rst +0 -0
  117. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-emmylua/src/using.rst +0 -0
  118. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-roots/Makefile +0 -0
  119. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-roots/conf.py +0 -0
  120. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-roots/index.rst +0 -0
  121. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-roots/lua/root_1/autodoc.lua +0 -0
  122. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-roots/lua/root_2/autodoc.lua +0 -0
  123. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-roots/make.bat +0 -0
  124. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-settings/Makefile +0 -0
  125. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-settings/conf.py +0 -0
  126. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-settings/index.rst +0 -0
  127. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-settings/lua/autodoc.lua +0 -0
  128. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-autodoc-settings/make.bat +0 -0
  129. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-doc/Makefile +0 -0
  130. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-doc/conf.py +0 -0
  131. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-doc/index.rst +0 -0
  132. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-doc/make.bat +0 -0
  133. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-doc/src/annotations.rst +0 -0
  134. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-doc/src/autoindex.rst +0 -0
  135. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-doc/src/inherited.rst +0 -0
  136. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-doc/src/modules.rst +0 -0
  137. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-doc/src/refs.rst +0 -0
  138. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-intersphinx/Makefile +0 -0
  139. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-intersphinx/conf.py +0 -0
  140. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-intersphinx/index.rst +0 -0
  141. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/roots/test-intersphinx/make.bat +0 -0
  142. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_parse.py +0 -0
  143. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/apidoc-md-sep.yml +0 -0
  144. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/apidoc-md.yml +0 -0
  145. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/apidoc-rst-sep.yml +0 -0
  146. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/apidoc-rst.yml +0 -0
  147. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-annotations.html +0 -0
  148. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-autoindex.html +0 -0
  149. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-annotations.html +0 -0
  150. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-autoindex.html +0 -0
  151. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-global_tables.html +0 -0
  152. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-globals.html +0 -0
  153. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-incongruent_export.html +0 -0
  154. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-member_ordering.html +0 -0
  155. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-module_title.html +0 -0
  156. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-nested_modules.html +0 -0
  157. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-nesting.html +0 -0
  158. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-nesting_recursive.html +0 -0
  159. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-relative_resolve.html +0 -0
  160. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-require.html +0 -0
  161. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-signatures.html +0 -0
  162. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-emmylua-using.html +0 -0
  163. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-globals.html +0 -0
  164. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-member_ordering.html +0 -0
  165. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-module_title.html +0 -0
  166. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-nested_modules.html +0 -0
  167. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-nesting.html +0 -0
  168. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-nesting_recursive.html +0 -0
  169. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-object_types.html +0 -0
  170. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-relative_resolve.html +0 -0
  171. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-roots-default.html.html +0 -0
  172. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-roots-no-roots.html.html +0 -0
  173. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-roots-single-root.html.html +0 -0
  174. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-settings-annotation.html.html +0 -0
  175. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-settings-no-recursion.html.html +0 -0
  176. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/autodoc-settings-simple.html.html +0 -0
  177. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/doc-annotations.html +0 -0
  178. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/doc-autoindex.html +0 -0
  179. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/doc-inherited.html +0 -0
  180. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/doc-modules.html +0 -0
  181. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression/doc-refs.html +0 -0
  182. {sphinx_lua_ls-3.1.0 → sphinx_lua_ls-3.2.0}/test/test_regression.py +0 -0
@@ -0,0 +1,21 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "pip"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
7
+ groups:
8
+ dev:
9
+ patterns:
10
+ - "black"
11
+ - "furo"
12
+ - "isort"
13
+ - "pre-commit"
14
+ - "pyright"
15
+ - "pytest_image_diff"
16
+ - "pytest-cov"
17
+ - "pytest"
18
+ - "reportlab"
19
+ - "sphinx_design"
20
+ - "svglib"
21
+ - "sybil"
@@ -155,7 +155,7 @@ jobs:
155
155
  name: Build docs
156
156
  needs:
157
157
  - test
158
- if: ${{ !(github.event_name == 'pull_request' && github.event.action == 'closed') }}
158
+ if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && !contains(github.event.ref, '.dev') }}
159
159
  runs-on: ubuntu-latest
160
160
  steps:
161
161
  - name: Checkout
@@ -187,38 +187,6 @@ jobs:
187
187
  path: docs/build/html
188
188
  include-hidden-files: true
189
189
 
190
- # Publishes documentation preview and posts a comment to the initiating PR.
191
- #
192
- # This job runs on all pull request actions. If also runs when a pull request is closed,
193
- # in this case it deletes the preview.
194
- #
195
- # Since the default condition -- `success()` -- only runs if all dependencies succeeded,
196
- # we use `!failure() && !cancelled()`, which also runs when any dependencies were skipped.
197
- publish_docs_preview:
198
- name: Publish docs preview to GitHub Pages
199
- needs:
200
- - build_docs
201
- if: ${{ !failure() && !cancelled() && github.event_name == 'pull_request' }}
202
- concurrency:
203
- group: publish-docs-${{ github.ref }}
204
- cancel-in-progress: true
205
- permissions: write-all
206
- runs-on: ubuntu-latest
207
- steps:
208
- - name: Checkout
209
- uses: actions/checkout@v4
210
- - name: Download artifact
211
- if: ${{ needs.build_docs.result == 'success' }} # only download docs if build wasn't skipped
212
- uses: actions/download-artifact@v4
213
- with:
214
- name: html_output
215
- path: docs/build/html
216
- - name: Publish HTML
217
- uses: rossjrw/pr-preview-action@v1
218
- with:
219
- source-dir: docs/build/html
220
- umbrella-dir: pr-preview
221
-
222
190
  # Builds and publishes production docs.
223
191
  #
224
192
  # Only runs on tag pushes.
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## v3.2.0
4
+
5
+ - Updated a few dependencies. Most notably, restricted `sphinx` to `<9`.
6
+
7
+ - Fixed dashes in types being parsed as type names ([#18] by [@bkoropoff]).
8
+
9
+ - Added normalization for function syntax (`fun() -> T` is converted to `fun(): T`).
10
+
11
+ - Done some internal refactorings.
12
+
13
+ [#18]: https://github.com/taminomara/sphinx-lua-ls/pull/18
14
+ [@bkoropoff]: https://github.com/bkoropoff
15
+
3
16
  ## v3.1.0
4
17
 
5
18
  - Added pygments lexer for Lua that highlights documentation tags.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sphinx-lua-ls
3
- Version: 3.1.0
3
+ Version: 3.2.0
4
4
  Summary: Automatic documentation generation via EmmyLua/LuaLs
5
5
  Author-email: Tamika Nomara <taminomara@gmail.com>
6
6
  License-Expression: MIT
@@ -24,28 +24,28 @@ Classifier: Typing :: Typed
24
24
  Requires-Python: >=3.12
25
25
  Description-Content-Type: text/markdown
26
26
  License-File: LICENSE
27
- Requires-Dist: sphinx>=8.0
28
- Requires-Dist: PyGithub~=1.59
27
+ Requires-Dist: sphinx<9.0,>=8.0
28
+ Requires-Dist: PyGithub<3.0,>=1.59
29
29
  Requires-Dist: requests~=2.31
30
30
  Provides-Extra: dev
31
- Requires-Dist: pytest-cov~=6.0.0; extra == "dev"
31
+ Requires-Dist: pytest-cov==6.2.1; extra == "dev"
32
32
  Requires-Dist: sphinx-lua-ls[doc,lint,test]; extra == "dev"
33
33
  Provides-Extra: lint
34
- Requires-Dist: black~=23.7; extra == "lint"
35
- Requires-Dist: isort~=5.12; extra == "lint"
36
- Requires-Dist: pre-commit~=3.8.0; extra == "lint"
34
+ Requires-Dist: black==25.1.0; extra == "lint"
35
+ Requires-Dist: isort==6.0.1; extra == "lint"
36
+ Requires-Dist: pre-commit==4.3.0; extra == "lint"
37
37
  Provides-Extra: test
38
- Requires-Dist: pyright~=1.1; extra == "test"
39
- Requires-Dist: pytest~=7.4; extra == "test"
40
- Requires-Dist: sybil~=6.1; extra == "test"
41
- Requires-Dist: pytest-regressions~=2.7; extra == "test"
42
- Requires-Dist: beautifulsoup4~=4.13; extra == "test"
43
- Requires-Dist: myst-parser~=4.0; extra == "test"
38
+ Requires-Dist: pyright==1.1.404; extra == "test"
39
+ Requires-Dist: pytest==8.4.1; extra == "test"
40
+ Requires-Dist: sybil==9.2.0; extra == "test"
41
+ Requires-Dist: pytest-regressions==2.8.2; extra == "test"
42
+ Requires-Dist: beautifulsoup4==4.13.5; extra == "test"
43
+ Requires-Dist: myst-parser==4.0.1; extra == "test"
44
44
  Provides-Extra: doc
45
- Requires-Dist: sybil~=6.1; extra == "doc"
46
- Requires-Dist: furo>=2024; extra == "doc"
47
- Requires-Dist: sphinx_design>=0.6; extra == "doc"
48
- Requires-Dist: myst-parser~=4.0; extra == "doc"
45
+ Requires-Dist: sybil==9.2.0; extra == "doc"
46
+ Requires-Dist: furo==2025.7.19; extra == "doc"
47
+ Requires-Dist: sphinx_design==0.6.1; extra == "doc"
48
+ Requires-Dist: myst-parser==4.0.1; extra == "doc"
49
49
  Dynamic: license-file
50
50
 
51
51
  # Sphinx plugin for Lua and Lua Language Server
@@ -6,7 +6,7 @@ Cross-referencing objects
6
6
 
7
7
  You can reference any documented object through the :rst:role:`lua:obj` role.
8
8
 
9
- Given an object path, Lua domain will first search for an object with this path
9
+ Given an object path, Sphinx-LuaLs will first search for an object with this path
10
10
  in the outer-most class, then in the current module, and finally
11
11
  in the global namespace.
12
12
 
@@ -18,7 +18,6 @@ Cross-referencing objects
18
18
  If you specify a fully qualified object name, and would like to hide its prefix,
19
19
  you can add a tilde (``~``) to the object's path:
20
20
 
21
-
22
21
  .. tab-set::
23
22
  :sync-group: lang
24
23
 
@@ -22,34 +22,34 @@ classifiers = [
22
22
  "Typing :: Typed",
23
23
  ]
24
24
  dependencies = [
25
- "sphinx>=8.0",
26
- "PyGithub~=1.59",
25
+ "sphinx>=8.0,<9.0",
26
+ "PyGithub>=1.59,<3.0",
27
27
  "requests~=2.31",
28
28
  ]
29
29
 
30
30
  [project.optional-dependencies]
31
31
  dev = [
32
- "pytest-cov~=6.0.0",
32
+ "pytest-cov==6.2.1",
33
33
  "sphinx-lua-ls[test,lint,doc]",
34
34
  ]
35
35
  lint = [
36
- "black~=23.7",
37
- "isort~=5.12",
38
- "pre-commit~=3.8.0",
36
+ "black==25.1.0",
37
+ "isort==6.0.1",
38
+ "pre-commit==4.3.0",
39
39
  ]
40
40
  test = [
41
- "pyright~=1.1",
42
- "pytest~=7.4",
43
- "sybil~=6.1",
44
- "pytest-regressions~=2.7",
45
- "beautifulsoup4~=4.13",
46
- "myst-parser~=4.0"
41
+ "pyright==1.1.404",
42
+ "pytest==8.4.1",
43
+ "sybil==9.2.0",
44
+ "pytest-regressions==2.8.2",
45
+ "beautifulsoup4==4.13.5",
46
+ "myst-parser==4.0.1"
47
47
  ]
48
48
  doc = [
49
- "sybil~=6.1",
50
- "furo>=2024",
51
- "sphinx_design>=0.6",
52
- "myst-parser~=4.0"
49
+ "sybil==9.2.0",
50
+ "furo==2025.7.19",
51
+ "sphinx_design==0.6.1",
52
+ "myst-parser==4.0.1"
53
53
  ]
54
54
 
55
55
  [project.urls]
@@ -0,0 +1,217 @@
1
+ import fnmatch
2
+ import pathlib
3
+ import re
4
+ import typing as _t
5
+
6
+ import sphinx.addnodes
7
+ import sphinx.application
8
+ import sphinx.builders
9
+ import sphinx.builders.html
10
+ import sphinx.domains
11
+ import sphinx.errors
12
+ from sphinx.util.display import progress_message
13
+ from sphinx.util.fileutil import copy_asset_file
14
+
15
+ import sphinx_lua_ls.apidoc
16
+ import sphinx_lua_ls.autodoc
17
+ import sphinx_lua_ls.autoindex
18
+ import sphinx_lua_ls.config
19
+ import sphinx_lua_ls.domain
20
+ import sphinx_lua_ls.inherited
21
+ import sphinx_lua_ls.intersphinx
22
+ import sphinx_lua_ls.lua_ls
23
+ import sphinx_lua_ls.objtree
24
+ from sphinx_lua_ls._version import __version__, __version_tuple__
25
+ from sphinx_lua_ls.pygments import LuaLexer
26
+
27
+
28
+ def run_lua_ls(app: sphinx.application.Sphinx):
29
+ domain: sphinx_lua_ls.domain.LuaDomain = app.env.get_domain("lua") # type: ignore
30
+
31
+ root_dir = domain.config.project_root
32
+ project_directories = domain.config.project_directories
33
+ if project_directories is None:
34
+ project_directories = [root_dir]
35
+ project_directories.sort()
36
+
37
+ modified = (
38
+ "objtree" not in domain.data
39
+ or "objtree_roots" not in domain.data
40
+ or "objtree_paths" not in domain.data
41
+ or domain.data["objtree_roots"] != project_directories
42
+ )
43
+ if not modified:
44
+ for path, modtime in domain.data["objtree_paths"].items():
45
+ if not path.exists() or path.stat().st_mtime_ns > modtime:
46
+ modified = True
47
+ break
48
+ if not modified:
49
+ for dir in project_directories:
50
+ for path in dir.rglob("*.lua"):
51
+ if path not in domain.data["objtree_paths"]:
52
+ modified = True
53
+ break
54
+ if not modified:
55
+ return
56
+
57
+ min_version = domain.config.min_version
58
+ if min_version is None:
59
+ if domain.config.backend == "luals":
60
+ min_version = "3.0.0"
61
+ else:
62
+ min_version = "0.11.0"
63
+
64
+ cwd = pathlib.Path.cwd()
65
+ try:
66
+ runner = sphinx_lua_ls.lua_ls.resolve(
67
+ backend=domain.config.backend,
68
+ min_version=min_version,
69
+ cwd=root_dir,
70
+ reporter=sphinx_lua_ls.lua_ls.SphinxProgressReporter(app.verbosity),
71
+ install=domain.config.auto_install,
72
+ cache_path=domain.config.auto_install_location,
73
+ )
74
+ except sphinx_lua_ls.lua_ls.LuaLsError as e:
75
+ raise
76
+ except Exception as e:
77
+ raise sphinx.errors.ExtensionError(str(e)) from e
78
+
79
+ if domain.config.backend == "luals":
80
+ parser = sphinx_lua_ls.objtree.LuaLsParser()
81
+ else:
82
+ parser = sphinx_lua_ls.objtree.EmmyLuaParser()
83
+
84
+ configs = []
85
+ if (path := pathlib.Path(root_dir, ".emmyrc.json")).exists():
86
+ configs.append(path)
87
+ if (path := pathlib.Path(root_dir, ".luarc.json")).exists():
88
+ configs.append(path)
89
+ parser.files.update(configs)
90
+
91
+ for dir in project_directories:
92
+ try:
93
+ relpath = dir.relative_to(cwd, walk_up=True)
94
+ except ValueError:
95
+ relpath = dir
96
+ with progress_message(f"running lua language server in {relpath or '.'}"):
97
+ parser.class_default_function_name = (
98
+ domain.config.class_default_function_name
99
+ )
100
+ parser.class_default_force_non_colon = (
101
+ domain.config.class_default_force_non_colon
102
+ )
103
+ parser.class_default_force_return_self = (
104
+ domain.config.class_default_force_return_self
105
+ )
106
+ parser.parse(runner.run(dir, configs=configs), dir)
107
+ parser.files.update(map(pathlib.Path, dir.rglob("*.lua")))
108
+
109
+ domain.objtree = parser.root
110
+ domain.data["objtree_roots"] = project_directories
111
+ domain.data["objtree_paths"] = {p: p.stat().st_mtime_ns for p in parser.files}
112
+
113
+ if parser.runtime_version and not domain.config.lua_version:
114
+ domain.config.lua_version = parser.runtime_version
115
+
116
+
117
+ def run_apidoc(
118
+ app: sphinx.application.Sphinx,
119
+ ):
120
+ domain = _t.cast(sphinx_lua_ls.domain.LuaDomain, app.env.get_domain("lua"))
121
+ cwd = pathlib.Path.cwd()
122
+ for name, params in domain.config.apidoc_roots.items():
123
+ try:
124
+ relpath = params["path"].relative_to(cwd, walk_up=True)
125
+ except ValueError:
126
+ relpath = params["path"]
127
+ with progress_message(f"running lua apidoc in {relpath or '.'}"):
128
+ ignored_modules = params["ignored_modules"]
129
+ if ignored_modules:
130
+ mod_filter = re.compile(
131
+ "|".join(f"(?:{fnmatch.translate(e)})" for e in ignored_modules)
132
+ ).match
133
+ else:
134
+ mod_filter = lambda s: False
135
+ sphinx_lua_ls.apidoc.generate(
136
+ outdir=app.outdir,
137
+ domain=domain,
138
+ dir=params["path"],
139
+ fullname=name,
140
+ objtree=domain.objtree,
141
+ options=params["options"],
142
+ depth=params["max_depth"],
143
+ mod_filter=mod_filter,
144
+ format=params["format"],
145
+ separate_members=params["separate_members"],
146
+ )
147
+
148
+
149
+ def copy_asset_files(app: sphinx.application.Sphinx, exc: Exception | None):
150
+ if isinstance(app.builder, sphinx.builders.html.StandaloneHTMLBuilder) and not exc:
151
+ custom_file = pathlib.Path(__file__).parent / "static/lua.css"
152
+ static_dir = app.outdir / "_static"
153
+ copy_asset_file(custom_file, static_dir)
154
+
155
+
156
+ def suppress_auto_ref_warnings(
157
+ app: sphinx.application.Sphinx,
158
+ domain: sphinx.domains.Domain,
159
+ node: sphinx.addnodes.pending_xref,
160
+ ):
161
+ if node["refdomain"] == "lua" and node["reftype"] == "_auto":
162
+ return True
163
+
164
+
165
+ def setup(app: sphinx.application.Sphinx):
166
+ app.add_domain(sphinx_lua_ls.domain.LuaDomain)
167
+
168
+ app.add_config_value("lua_ls_backend", None, rebuild="env")
169
+ app.add_config_value("lua_ls_project_root", None, rebuild="env")
170
+ app.add_config_value("lua_ls_project_directories", None, rebuild="env")
171
+ app.add_config_value("lua_ls_auto_install", True, rebuild="")
172
+ app.add_config_value("lua_ls_auto_install_location", None, rebuild="")
173
+ app.add_config_value("lua_ls_min_version", None, rebuild="env")
174
+ app.add_config_value("lua_ls_lua_version", None, rebuild="html")
175
+ app.add_config_value("lua_ls_default_options", None, rebuild="env")
176
+ app.add_config_value("lua_ls_apidoc_roots", None, rebuild="")
177
+ app.add_config_value("lua_ls_apidoc_default_options", None, rebuild="")
178
+ app.add_config_value("lua_ls_apidoc_max_depth", None, rebuild="")
179
+ app.add_config_value("lua_ls_apidoc_ignored_modules", None, rebuild="")
180
+ app.add_config_value("lua_ls_apidoc_format", None, rebuild="")
181
+ app.add_config_value("lua_ls_apidoc_separate_members", None, rebuild="")
182
+ app.add_config_value("lua_ls_class_default_function_name", None, rebuild="env")
183
+ app.add_config_value("lua_ls_class_default_force_non_colon", None, rebuild="env")
184
+ app.add_config_value("lua_ls_class_default_force_return_self", None, rebuild="env")
185
+ app.add_config_value("lua_ls_maximum_signature_line_length", 50, rebuild="env")
186
+
187
+ app.add_directive_to_domain(
188
+ "lua", "autoobject", sphinx_lua_ls.autodoc.AutoObjectDirective
189
+ )
190
+ app.add_directive_to_domain(
191
+ "lua", "autoindex", sphinx_lua_ls.autoindex.AutoIndexDirective
192
+ )
193
+ app.add_directive_to_domain(
194
+ "lua",
195
+ "other-inherited-members",
196
+ sphinx_lua_ls.inherited.InheritedMembersDirective,
197
+ )
198
+
199
+ app.connect("builder-inited", sphinx_lua_ls.config.set_options)
200
+ app.connect("builder-inited", run_lua_ls)
201
+ app.connect("builder-inited", run_apidoc)
202
+ app.connect("missing-reference", sphinx_lua_ls.intersphinx.resolve_std_reference)
203
+ app.connect("build-finished", copy_asset_files)
204
+ app.connect("warn-missing-reference", suppress_auto_ref_warnings)
205
+
206
+ app.add_post_transform(sphinx_lua_ls.autoindex.AutoIndexTransform)
207
+ app.add_post_transform(sphinx_lua_ls.inherited.InheritedMembersTransform)
208
+
209
+ app.add_lexer("lua", LuaLexer)
210
+
211
+ app.add_css_file("lua.css")
212
+
213
+ return {
214
+ "version": __version__,
215
+ "parallel_read_safe": True,
216
+ "parallel_write_safe": True,
217
+ }
@@ -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.1.0'
32
- __version_tuple__ = version_tuple = (3, 1, 0)
31
+ __version__ = version = '3.2.0'
32
+ __version_tuple__ = version_tuple = (3, 2, 0)
33
33
 
34
- __commit_id__ = commit_id = 'g26ca4bce6'
34
+ __commit_id__ = commit_id = 'g226dbf0db'
@@ -78,9 +78,11 @@ def _iter_children(
78
78
  case "bysource":
79
79
  children.sort(
80
80
  key=lambda ch: (
81
- str(ch[1].docstring_file or "~")
82
- if not _FIX_FLAKY_ALIAS_TESTS
83
- else "",
81
+ (
82
+ str(ch[1].docstring_file or "~")
83
+ if not _FIX_FLAKY_ALIAS_TESTS
84
+ else ""
85
+ ),
84
86
  ch[1].line or math.inf,
85
87
  ch[0],
86
88
  )
@@ -465,7 +467,7 @@ class AutodocUtilsMixin(sphinx_lua_ls.domain.LuaContextManagerMixin):
465
467
 
466
468
  @property
467
469
  def objtree(self) -> Object:
468
- return self.env.domaindata["lua"]["objtree"]
470
+ return self.lua_domain.objtree
469
471
 
470
472
  @functools.cached_property
471
473
  def parent(self):
@@ -504,13 +506,10 @@ class AutodocDirectiveMixin(AutodocUtilsMixin):
504
506
  and nodes
505
507
  and isinstance(nodes[0], docutils.nodes.paragraph)
506
508
  ):
507
- objects: dict[
508
- str, sphinx_lua_ls.domain.LuaDomain.ObjectEntry
509
- ] = self.env.domaindata["lua"]["objects"]
510
- if fullname in objects:
511
- data = objects[fullname]
509
+ if fullname in self.lua_domain.objects:
510
+ data = self.lua_domain.objects[fullname]
512
511
  if not data.synopsis:
513
- objects[fullname] = dataclasses.replace(
512
+ self.lua_domain.objects[fullname] = dataclasses.replace(
514
513
  data, synopsis=nodes[0].astext()
515
514
  )
516
515
 
@@ -892,7 +891,6 @@ class LuaModule(AutodocDirectiveMixin, sphinx_lua_ls.domain.LuaModule):
892
891
 
893
892
  api_docs = docutils.nodes.section("", names=[])
894
893
 
895
- domain: sphinx_lua_ls.domain.LuaDomain = self.env.get_domain("lua") # type: ignore
896
894
  prev_title = None
897
895
  for name, child in _iter_children(
898
896
  self.root, self.objtree, self.parent, self.options
@@ -902,7 +900,7 @@ class LuaModule(AutodocDirectiveMixin, sphinx_lua_ls.domain.LuaModule):
902
900
  if child.is_toplevel:
903
901
  title = "Global"
904
902
  else:
905
- title = domain.object_types[kind.value].lname.title()
903
+ title = self.lua_domain.object_types[kind.value].lname.title()
906
904
 
907
905
  if prev_title != title:
908
906
  if api_docs.children:
@@ -941,9 +939,7 @@ class AutoObjectDirective(AutodocUtilsMixin):
941
939
  has_content = True
942
940
 
943
941
  def run(self):
944
- for name, option in self.env.domaindata["lua"]["config"][
945
- "default_options"
946
- ].items():
942
+ for name, option in self.lua_domain.config.default_options.items():
947
943
  if name not in self.options:
948
944
  self.options[name] = option
949
945