poxy 0.19.1__py3-none-any.whl → 0.19.3__py3-none-any.whl
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.
- poxy/fixers.py +12 -6
- poxy/project.py +1 -1
- poxy/run.py +7 -3
- poxy/version.txt +1 -1
- {poxy-0.19.1.dist-info → poxy-0.19.3.dist-info}/METADATA +7 -2
- {poxy-0.19.1.dist-info → poxy-0.19.3.dist-info}/RECORD +11 -11
- {poxy-0.19.1.dist-info → poxy-0.19.3.dist-info}/LICENSE.txt +0 -0
- {poxy-0.19.1.dist-info → poxy-0.19.3.dist-info}/WHEEL +0 -0
- {poxy-0.19.1.dist-info → poxy-0.19.3.dist-info}/entry_points.txt +0 -0
- {poxy-0.19.1.dist-info → poxy-0.19.3.dist-info}/top_level.txt +0 -0
- {poxy-0.19.1.dist-info → poxy-0.19.3.dist-info}/zip-safe +0 -0
poxy/fixers.py
CHANGED
@@ -1031,14 +1031,20 @@ class ImplementationDetails(PlainTextFixer):
|
|
1031
1031
|
Replaces implementation details with appropriate shorthands.
|
1032
1032
|
'''
|
1033
1033
|
|
1034
|
-
|
1034
|
+
__patterns = (
|
1035
|
+
re.compile(
|
1036
|
+
r'<\s*a\s+class="m-doc"\s+href=".+?"\s*>POXY_(?:<wbr>)?IMPLEMENTATION_(?:<wbr>)?DETAIL_(?:<wbr>)?IMPL<\s*/a\s*>',
|
1037
|
+
re.I,
|
1038
|
+
),
|
1039
|
+
re.compile(r'POXY_(?:<wbr>)?IMPLEMENTATION_(?:<wbr>)?DETAIL_(?:<wbr>)?IMPL', re.I),
|
1040
|
+
re.compile(r'poxyimplementationdetailimplplaceholder', re.I),
|
1041
|
+
)
|
1042
|
+
|
1043
|
+
__replacement = r'<code class="m-note m-dim poxy-impl">/* ... */</code>'
|
1035
1044
|
|
1036
1045
|
def __call__(self, context: Context, text: str, path: Path) -> str:
|
1037
|
-
for
|
1038
|
-
|
1039
|
-
while idx >= 0:
|
1040
|
-
text = text[:idx] + replacement + text[idx + len(shorthand) :]
|
1041
|
-
idx = text.find(shorthand)
|
1046
|
+
for pattern in self.__patterns:
|
1047
|
+
text = pattern.sub(self.__replacement, text)
|
1042
1048
|
return text
|
1043
1049
|
|
1044
1050
|
|
poxy/project.py
CHANGED
@@ -47,7 +47,7 @@ class Defaults(object):
|
|
47
47
|
r'__has_builtin(...)': 0,
|
48
48
|
r'__has_feature(...)': 0,
|
49
49
|
r'__has_cpp_attribute(...)': 999999,
|
50
|
-
r'POXY_IMPLEMENTATION_DETAIL(...)': r'
|
50
|
+
r'POXY_IMPLEMENTATION_DETAIL(...)': r'poxyimplementationdetailimplplaceholder',
|
51
51
|
r'POXY_IGNORE(...)': r'',
|
52
52
|
}
|
53
53
|
cpp_builtin_macros = {
|
poxy/run.py
CHANGED
@@ -746,12 +746,17 @@ def postprocess_xml(context: Context):
|
|
746
746
|
|
747
747
|
# re-sort members to override Doxygen's weird and stupid sorting 'rules'
|
748
748
|
if 1:
|
749
|
-
sort_members_by_name = lambda tag: tag.find(r'name').text
|
749
|
+
# sort_members_by_name = lambda tag: tag.find(r'name').text
|
750
|
+
def sort_members_by_name(tag):
|
751
|
+
n = tag.find(r'name')
|
752
|
+
if n is None:
|
753
|
+
return ''
|
754
|
+
return '' if n.text is None else n.text
|
755
|
+
|
750
756
|
members = [tag for tag in section.findall(r'memberdef')]
|
751
757
|
for tag in members:
|
752
758
|
section.remove(tag)
|
753
759
|
# fmt: off
|
754
|
-
# yapf: disable
|
755
760
|
groups = [
|
756
761
|
([tag for tag in members if tag.get(r'kind') == r'define'], True), #
|
757
762
|
([tag for tag in members if tag.get(r'kind') == r'typedef'], True),
|
@@ -763,7 +768,6 @@ def postprocess_xml(context: Context):
|
|
763
768
|
([tag for tag in members if tag.get(r'kind') == r'function' and tag.get(r'static') == r'no'], True),
|
764
769
|
([tag for tag in members if tag.get(r'kind') == r'friend'], True)
|
765
770
|
]
|
766
|
-
# yapf: enable
|
767
771
|
# fmt: on
|
768
772
|
for group, sort in groups:
|
769
773
|
if sort:
|
poxy/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.19.
|
1
|
+
0.19.3
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: poxy
|
3
|
-
Version: 0.19.
|
3
|
+
Version: 0.19.3
|
4
4
|
Summary: Documentation generator for C++.
|
5
5
|
Author-email: Mark Gillard <mark.gillard@outlook.com.au>
|
6
6
|
License: MIT
|
@@ -221,9 +221,14 @@ Poxy bundles a fork of m.css, used per the [MIT/Expat license](https://github.co
|
|
221
221
|
|
222
222
|
# Changelog
|
223
223
|
|
224
|
+
## v0.19.3 - 2024-11-11
|
225
|
+
|
226
|
+
- fixed crash with nested C-style enums without a name (#39) (@tim-janik)
|
227
|
+
- fixed `POXY_IMPLEMENTATION_DETAIL_IMPL` appearing in HTML in some circumstances
|
228
|
+
|
224
229
|
## v0.19.1 - 2024-10-30
|
225
230
|
|
226
|
-
- fixed `ModuleNotFoundError` error in Python 3.12
|
231
|
+
- fixed `ModuleNotFoundError` error in Python 3.12 (#38) (@dekinet)
|
227
232
|
|
228
233
|
## v0.19.0 - 2024-09-15
|
229
234
|
|
@@ -3,20 +3,20 @@ poxy/cppreference-doxygen-web.tag.xml,sha256=jHYta0FGk5opq8ZrbnVDuk3AV4psKmgcDbq
|
|
3
3
|
poxy/css.py,sha256=PP7rACVpzLC0-mTDKRxMrVaYdNBZZ_X6USCcaMgw5H0,6953
|
4
4
|
poxy/doxygen.py,sha256=nHygTYfKqh4M0hcdomWK5J3T16GZ7owM5oaWa141Ky4,46372
|
5
5
|
poxy/emoji.py,sha256=Vj2ZbUq1MewLMVoLtH2xP_jZToRoNi52AgrIg3VhUuU,3410
|
6
|
-
poxy/fixers.py,sha256=
|
6
|
+
poxy/fixers.py,sha256=7stPmUxxD3uKHqj-0XZC1y4CuhqaTq_4H-G5l1912Ro,46243
|
7
7
|
poxy/graph.py,sha256=xI7xoV6-yTM-gh2OBARakANLHzGYBwwhwJHchQz2EKw,31959
|
8
8
|
poxy/main.py,sha256=PwidelWWB3rxLPCAYgiof7NB35HmZmU-lSi7RfQL8j4,27175
|
9
9
|
poxy/mcss.py,sha256=j9PmkfjcwaKdKBauwiPKhSeKGNmGiBt0i_WcnVAV3Hk,2157
|
10
10
|
poxy/paths.py,sha256=OqyP9bIIhW0zyWL6PV2TVV9zsrtvnb25_XNmHlFJmQ8,1540
|
11
|
-
poxy/project.py,sha256=
|
11
|
+
poxy/project.py,sha256=qgvHR-V0gi_mFv1sCiTZ1VTFy8iprAQr3mJvEry5lZQ,99057
|
12
12
|
poxy/repos.py,sha256=rUOVTvR6KxrkSvEA0S340OzMStbSk2SBJUEzKEIynzc,3945
|
13
|
-
poxy/run.py,sha256=
|
13
|
+
poxy/run.py,sha256=uKT3jKvnkH24nqOMizxuHXxa6ygobXpUUbnxDDwQNb4,80670
|
14
14
|
poxy/schemas.py,sha256=57qLWubeIWQUwwTpjRBggPBy70PTQS5JWKzUDKRuBkQ,2490
|
15
15
|
poxy/soup.py,sha256=gMXKigNJDuJWWFhPpD5Gu9gbeyVVXo7SrjL1GcsqlMs,7678
|
16
16
|
poxy/svg.py,sha256=tsMcKIxQ8OVmXEabqwKDkdEqYV4zI5wM0AJ-E1EXmVo,2657
|
17
17
|
poxy/utils.py,sha256=0_HRU6GxlwJ5TXPJId2j8zQJnUZ8TJBiBU6wqgrMjrI,5748
|
18
18
|
poxy/version.py,sha256=N5I7nr5zcmAy-hhgZFi7KfFPV-lB_ueD_Xx6R7XQ-tk,668
|
19
|
-
poxy/version.txt,sha256=
|
19
|
+
poxy/version.txt,sha256=bxXCv71PtYt7hPCo-ANvTW8xEs0_DLdZ3_6GzdaWtlA,7
|
20
20
|
poxy/xml_utils.py,sha256=dJEtHyp4lORHhmBt1E9miRH48PpPM6WRlLEdMhn0Yi8,2183
|
21
21
|
poxy/css/m-special.css,sha256=dLVigwqsg_Htm6CESQGemyOKjb-plBlFk54dsAoOd_A,4644
|
22
22
|
poxy/css/m-theme-dark.css,sha256=UbAEz9JAgJ1PJJG-Oy9UG2_DUqYTaPJm1cDvVGy5kYk,4186
|
@@ -176,10 +176,10 @@ poxy/mcss/plugins/m/plots.py,sha256=DGehGirCDzkPGAf0bE9nqX1Gk4JX7xA0VhGvJszFSg0,
|
|
176
176
|
poxy/mcss/plugins/m/qr.py,sha256=L1bsWUHUoFnshMhBlZs5T-yOzM82-C2NLMq6oLso3FI,4189
|
177
177
|
poxy/mcss/plugins/m/sphinx.py,sha256=_NO0FmI_BR8Y-idUtujzqX7lIuF94oQgN8CD2CAPw0o,30971
|
178
178
|
poxy/mcss/plugins/m/vk.py,sha256=pcda_Xz1mirqT8Uoq12d-p8F9ROT_C43kjyhWI-lyLQ,3114
|
179
|
-
poxy-0.19.
|
180
|
-
poxy-0.19.
|
181
|
-
poxy-0.19.
|
182
|
-
poxy-0.19.
|
183
|
-
poxy-0.19.
|
184
|
-
poxy-0.19.
|
185
|
-
poxy-0.19.
|
179
|
+
poxy-0.19.3.dist-info/LICENSE.txt,sha256=kp84JW_RPClTO5Hz6yHQ9jKPfUMerlHHAeyU0VpXV_E,1064
|
180
|
+
poxy-0.19.3.dist-info/METADATA,sha256=Ec_NlzK3cC93GUUCrxcYxvuVG4XE1dAiu3rMD7K7fTw,20493
|
181
|
+
poxy-0.19.3.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
182
|
+
poxy-0.19.3.dist-info/entry_points.txt,sha256=yWiOmptj1Ga_dDEU9ch16hRgmzDE8bgrtDkGbH7VFYc,66
|
183
|
+
poxy-0.19.3.dist-info/top_level.txt,sha256=vAxxbZDX_cQ6rfRZ1SYSStSdMMlsHEP-zgzBSB0gPco,5
|
184
|
+
poxy-0.19.3.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
185
|
+
poxy-0.19.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|