Skip to content

Commit a4f1f0c

Browse files
committed
Fix documentation build
1 parent 1682461 commit a4f1f0c

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

docs/source/autodoc.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ can be slightly different:
1616
comments.
1717

1818
When generating documentation for a module, Sphinx-LuaLs will include
19-
all module's objects returned by `require`, as well as all types located
19+
all module's objects returned by ``require``, as well as all types located
2020
in the same namespace.
2121

22-
That is, for module `meow`, it will list everything in the ``require("meow")``,
22+
That is, for module ``meow``, it will list everything in the ``require("meow")``,
2323
as well as all classes, aliases, and enums that have prefix ``meow.*``.
2424

2525
Thus, a typical Lua module will look like this:
@@ -185,7 +185,7 @@ Autodoc directive
185185
.. rst:directive:option:: undoc-members
186186
187187
Include undocumented members to the object's description. By default,
188-
they are skipped even if :rst:dir:`members` is passed.
188+
they are skipped even if :rst:dir:`members <lua:autoobject:members>` is passed.
189189
190190
Accepts a comma-separated list of names; if list is empty,
191191
adds all undoc members.

docs/source/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
extensions = [
1414
"sphinx.ext.githubpages",
15+
"sphinx.ext.intersphinx",
1516
"sphinx_design",
1617
"sphinx_lua_ls",
1718
"myst_parser",
@@ -23,9 +24,14 @@
2324
primary_domain = "lua"
2425
default_role = "lua:obj"
2526

26-
lua_ls_project_root = "../example"
27+
lua_ls_project_root = "example"
2728
lua_ls_backend = "emmylua"
2829

30+
intersphinx_mapping = {
31+
"python": ("https://docs.python.org/3", None),
32+
"sphinx": ("https://www.sphinx-doc.org/", None),
33+
}
34+
2935
# -- Options for HTML output -------------------------------------------------
3036
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
3137

docs/source/settings.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ Settings
8989
.. py:data:: class_default_force_non_colon
9090
:type:
9191

92-
If `true`, Sphinx-LuaLs will remove ``self`` from class constructor's signature.
92+
If ``True``, Sphinx-LuaLs will remove ``self`` from class constructor's signature.
9393

9494
If using EmmyLua as lua analyzer, this option will be inferred from ``.emmyrc.json``.
9595

9696
.. py:data:: class_default_force_return_self
9797
:type:
9898

99-
If `true`, Sphinx-LuaLs will replace class constructor's return type with ``self``.
99+
If ``True``, Sphinx-LuaLs will replace class constructor's return type with ``self``.
100100

101101
If using EmmyLua as lua analyzer, this option will be inferred from ``.emmyrc.json``.
102102

@@ -109,7 +109,7 @@ Settings
109109
Can be either ``"5.1"``, ``"5.2"``, ``"5.3"``, ``"5.4"``, or ``"jit"``.
110110

111111
By default, Sphinx-LuaLs will choose this setting
112-
based on your `.emmyrc.json`/`.luarc.json` file.
112+
based on your ``.emmyrc.json``/``.luarc.json`` file.
113113

114114
.. py:data:: lua_ls_apidoc_roots
115115
:type: dict[str, str | dict[str, Any]]
@@ -165,7 +165,7 @@ Settings
165165
This option might not work correctly on case-insensitive file systems.
166166

167167
It will generate a separate file for every member of a module;
168-
if there are members that only differ in case (i.e. `Class` vs `class`),
168+
if there are members that only differ in case (i.e. ``Class`` vs ``class``),
169169
one of them will overwrite the file for another.
170170

171171
If you're on Windows, and you experience difficulties because of it,
@@ -215,7 +215,7 @@ Settings
215215

216216
Default value is ``50``, which is suitable for most Sphinx themes.
217217

218-
Setting this value to `None` will cause signature formatter
218+
Setting this value to ``None`` will cause signature formatter
219219
to use Sphinx's global setting ``maximum_signature_line_length``.
220220
If ``maximum_signature_line_length`` is also ``None``,
221221
signature wrapping will be disabled.

0 commit comments

Comments
 (0)