sphinx-lua 1.1.5__tar.gz → 1.1.6__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-1.1.5/sphinx_lua.egg-info → sphinx_lua-1.1.6}/PKG-INFO +21 -5
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/setup.py +5 -3
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua/luadoc.py +1 -1
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua/renderers.py +8 -4
- sphinx_lua-1.1.6/sphinx_lua/version.py +1 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6/sphinx_lua.egg-info}/PKG-INFO +21 -5
- sphinx-lua-1.1.5/sphinx_lua/version.py +0 -1
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/LICENSE.txt +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/MANIFEST.in +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/README.rst +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/setup.cfg +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua/__init__.py +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua/directives.py +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua/templates/attribute.rst +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua/templates/class.rst +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua/templates/classsummary.rst +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua/templates/function.rst +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua/templates/method.rst +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua/templates/module.rst +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua/templates/param_list.rst +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua/templates/type.rst +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua.egg-info/SOURCES.txt +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua.egg-info/dependency_links.txt +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua.egg-info/requires.txt +0 -0
- {sphinx-lua-1.1.5 → sphinx_lua-1.1.6}/sphinx_lua.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: sphinx-lua
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.6
|
|
4
4
|
Summary: Support for using Sphinx on Luadoc-documented Lua code
|
|
5
5
|
Author: Eliott Dumeix
|
|
6
6
|
Author-email: eliott.dumeix@gmail.com
|
|
@@ -9,12 +9,28 @@ Keywords: sphinx,documentation,docs,lua,luadoc,restructured
|
|
|
9
9
|
Classifier: Intended Audience :: Developers
|
|
10
10
|
Classifier: Natural Language :: English
|
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
16
|
Classifier: Topic :: Documentation :: Sphinx
|
|
16
17
|
Classifier: Topic :: Software Development :: Documentation
|
|
18
|
+
Requires-Python: >=3.9
|
|
17
19
|
License-File: LICENSE.txt
|
|
20
|
+
Requires-Dist: six
|
|
21
|
+
Requires-Dist: Jinja2>3.0
|
|
22
|
+
Requires-Dist: luadoc>=1.3.1
|
|
23
|
+
Requires-Dist: sphinxcontrib-luadomain>=1.1.1
|
|
24
|
+
Dynamic: author
|
|
25
|
+
Dynamic: author-email
|
|
26
|
+
Dynamic: classifier
|
|
27
|
+
Dynamic: description
|
|
28
|
+
Dynamic: keywords
|
|
29
|
+
Dynamic: license
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
Dynamic: requires-dist
|
|
32
|
+
Dynamic: requires-python
|
|
33
|
+
Dynamic: summary
|
|
18
34
|
|
|
19
35
|
###############################################################################
|
|
20
36
|
sphinx-lua
|
|
@@ -39,11 +39,13 @@ setup(
|
|
|
39
39
|
'Intended Audience :: Developers',
|
|
40
40
|
'Natural Language :: English',
|
|
41
41
|
'License :: OSI Approved :: MIT License',
|
|
42
|
-
'Programming Language :: Python :: 3.
|
|
43
|
-
'Programming Language :: Python :: 3.
|
|
44
|
-
'Programming Language :: Python :: 3.
|
|
42
|
+
'Programming Language :: Python :: 3.9',
|
|
43
|
+
'Programming Language :: Python :: 3.10',
|
|
44
|
+
'Programming Language :: Python :: 3.11',
|
|
45
|
+
'Programming Language :: Python :: 3.12',
|
|
45
46
|
'Topic :: Documentation :: Sphinx',
|
|
46
47
|
'Topic :: Software Development :: Documentation'
|
|
47
48
|
],
|
|
49
|
+
python_requires='>=3.9',
|
|
48
50
|
keywords=['sphinx', 'documentation', 'docs', 'lua', 'luadoc', 'restructured'],
|
|
49
51
|
)
|
|
@@ -79,10 +79,14 @@ class LuaRenderer(object):
|
|
|
79
79
|
|
|
80
80
|
def start_stop_line(doc_node, file_path):
|
|
81
81
|
""" Return start stop line in the form '1-5' """
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
file_path = os.path.join(self._app.confdir, file_path)
|
|
83
|
+
with open(file_path, "r") as f:
|
|
84
|
+
content = f.read()
|
|
85
|
+
total_lines = content.count('\n') + 1
|
|
86
|
+
start_line = content[:doc_node.start_char].count('\n') + 1
|
|
87
|
+
stop_line = content[:doc_node.stop_char].count('\n') + 1
|
|
88
|
+
# Clamp to actual file line count (avoid "out of range" with Sphinx -W)
|
|
89
|
+
stop_line = min(stop_line, total_lines)
|
|
86
90
|
return str(start_line) + "-" + str(stop_line)
|
|
87
91
|
|
|
88
92
|
# Render to RST using Jinja:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.1.6'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: sphinx-lua
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.6
|
|
4
4
|
Summary: Support for using Sphinx on Luadoc-documented Lua code
|
|
5
5
|
Author: Eliott Dumeix
|
|
6
6
|
Author-email: eliott.dumeix@gmail.com
|
|
@@ -9,12 +9,28 @@ Keywords: sphinx,documentation,docs,lua,luadoc,restructured
|
|
|
9
9
|
Classifier: Intended Audience :: Developers
|
|
10
10
|
Classifier: Natural Language :: English
|
|
11
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
16
|
Classifier: Topic :: Documentation :: Sphinx
|
|
16
17
|
Classifier: Topic :: Software Development :: Documentation
|
|
18
|
+
Requires-Python: >=3.9
|
|
17
19
|
License-File: LICENSE.txt
|
|
20
|
+
Requires-Dist: six
|
|
21
|
+
Requires-Dist: Jinja2>3.0
|
|
22
|
+
Requires-Dist: luadoc>=1.3.1
|
|
23
|
+
Requires-Dist: sphinxcontrib-luadomain>=1.1.1
|
|
24
|
+
Dynamic: author
|
|
25
|
+
Dynamic: author-email
|
|
26
|
+
Dynamic: classifier
|
|
27
|
+
Dynamic: description
|
|
28
|
+
Dynamic: keywords
|
|
29
|
+
Dynamic: license
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
Dynamic: requires-dist
|
|
32
|
+
Dynamic: requires-python
|
|
33
|
+
Dynamic: summary
|
|
18
34
|
|
|
19
35
|
###############################################################################
|
|
20
36
|
sphinx-lua
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.1.5'
|
|
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
|