markdown-to-confluence 0.3.1__tar.gz → 0.3.2__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.
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/PKG-INFO +3 -2
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/markdown_to_confluence.egg-info/PKG-INFO +3 -2
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/__init__.py +1 -1
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/api.py +19 -3
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/LICENSE +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/README.md +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/markdown_to_confluence.egg-info/SOURCES.txt +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/markdown_to_confluence.egg-info/dependency_links.txt +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/markdown_to_confluence.egg-info/entry_points.txt +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/markdown_to_confluence.egg-info/requires.txt +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/markdown_to_confluence.egg-info/top_level.txt +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/markdown_to_confluence.egg-info/zip-safe +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/__main__.py +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/application.py +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/converter.py +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/emoji.py +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/entities.dtd +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/matcher.py +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/mermaid.py +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/processor.py +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/properties.py +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/puppeteer-config.json +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/md2conf/py.typed +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/pyproject.toml +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/setup.cfg +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/setup.py +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/tests/test_conversion.py +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/tests/test_matcher.py +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/tests/test_mermaid.py +0 -0
- {markdown_to_confluence-0.3.1 → markdown_to_confluence-0.3.2}/tests/test_processor.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-to-confluence
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Publish Markdown files to Confluence wiki
|
|
5
5
|
Home-page: https://github.com/hunyadi/md2conf
|
|
6
6
|
Author: Levente Hunyadi
|
|
@@ -30,6 +30,7 @@ Requires-Dist: pyyaml>=6.0
|
|
|
30
30
|
Requires-Dist: types-PyYAML>=6.0
|
|
31
31
|
Requires-Dist: requests>=2.32
|
|
32
32
|
Requires-Dist: types-requests>=2.32
|
|
33
|
+
Dynamic: license-file
|
|
33
34
|
|
|
34
35
|
# Publish Markdown files to Confluence wiki
|
|
35
36
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-to-confluence
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Publish Markdown files to Confluence wiki
|
|
5
5
|
Home-page: https://github.com/hunyadi/md2conf
|
|
6
6
|
Author: Levente Hunyadi
|
|
@@ -30,6 +30,7 @@ Requires-Dist: pyyaml>=6.0
|
|
|
30
30
|
Requires-Dist: types-PyYAML>=6.0
|
|
31
31
|
Requires-Dist: requests>=2.32
|
|
32
32
|
Requires-Dist: types-requests>=2.32
|
|
33
|
+
Dynamic: license-file
|
|
33
34
|
|
|
34
35
|
# Publish Markdown files to Confluence wiki
|
|
35
36
|
|
|
@@ -5,7 +5,7 @@ Parses Markdown files, converts Markdown content into the Confluence Storage For
|
|
|
5
5
|
Confluence API endpoints to upload images and content.
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
|
-
__version__ = "0.3.
|
|
8
|
+
__version__ = "0.3.2"
|
|
9
9
|
__author__ = "Levente Hunyadi"
|
|
10
10
|
__copyright__ = "Copyright 2022-2025, Levente Hunyadi"
|
|
11
11
|
__license__ = "MIT"
|
|
@@ -40,6 +40,17 @@ class ConfluenceVersion(enum.Enum):
|
|
|
40
40
|
VERSION_2 = "api/v2"
|
|
41
41
|
|
|
42
42
|
|
|
43
|
+
class ConfluencePageParentContentType(enum.Enum):
|
|
44
|
+
"""
|
|
45
|
+
Content types that can be a parent to a Confluence page
|
|
46
|
+
"""
|
|
47
|
+
PAGE = "page"
|
|
48
|
+
WHITEBOARD = "whiteboard"
|
|
49
|
+
DATABASE = "database"
|
|
50
|
+
EMBED = "embed"
|
|
51
|
+
FOLDER = "folder"
|
|
52
|
+
|
|
53
|
+
|
|
43
54
|
def build_url(base_url: str, query: Optional[dict[str, str]] = None) -> str:
|
|
44
55
|
"Builds a URL with scheme, host, port, path and query string parameters."
|
|
45
56
|
|
|
@@ -71,6 +82,8 @@ class ConfluenceAttachment:
|
|
|
71
82
|
class ConfluencePage:
|
|
72
83
|
id: str
|
|
73
84
|
space_id: str
|
|
85
|
+
parent_id: str
|
|
86
|
+
parent_type: ConfluencePageParentContentType
|
|
74
87
|
title: str
|
|
75
88
|
version: int
|
|
76
89
|
content: str
|
|
@@ -194,7 +207,7 @@ class ConfluenceSession:
|
|
|
194
207
|
payload = self._invoke(
|
|
195
208
|
ConfluenceVersion.VERSION_2,
|
|
196
209
|
"/spaces",
|
|
197
|
-
{"ids": id, "
|
|
210
|
+
{"ids": id, "status": "current"},
|
|
198
211
|
)
|
|
199
212
|
payload = typing.cast(dict[str, JsonType], payload)
|
|
200
213
|
results = typing.cast(list[JsonType], payload["results"])
|
|
@@ -216,7 +229,7 @@ class ConfluenceSession:
|
|
|
216
229
|
payload = self._invoke(
|
|
217
230
|
ConfluenceVersion.VERSION_2,
|
|
218
231
|
"/spaces",
|
|
219
|
-
{"keys": key, "
|
|
232
|
+
{"keys": key, "status": "current"},
|
|
220
233
|
)
|
|
221
234
|
payload = typing.cast(dict[str, JsonType], payload)
|
|
222
235
|
results = typing.cast(list[JsonType], payload["results"])
|
|
@@ -261,7 +274,6 @@ class ConfluenceSession:
|
|
|
261
274
|
comment: Optional[str] = None,
|
|
262
275
|
force: bool = False,
|
|
263
276
|
) -> None:
|
|
264
|
-
|
|
265
277
|
if attachment_path is None and raw_data is None:
|
|
266
278
|
raise ConfluenceError("required: `attachment_path` or `raw_data`")
|
|
267
279
|
|
|
@@ -422,6 +434,8 @@ class ConfluenceSession:
|
|
|
422
434
|
return ConfluencePage(
|
|
423
435
|
id=page_id,
|
|
424
436
|
space_id=typing.cast(str, data["spaceId"]),
|
|
437
|
+
parent_id=typing.cast(str, data["parentId"]),
|
|
438
|
+
parent_type=ConfluencePageParentContentType(typing.cast(str, data["parentType"])),
|
|
425
439
|
title=typing.cast(str, data["title"]),
|
|
426
440
|
version=typing.cast(int, version["number"]),
|
|
427
441
|
content=typing.cast(str, storage["value"]),
|
|
@@ -524,6 +538,8 @@ class ConfluenceSession:
|
|
|
524
538
|
return ConfluencePage(
|
|
525
539
|
id=typing.cast(str, data["id"]),
|
|
526
540
|
space_id=typing.cast(str, data["spaceId"]),
|
|
541
|
+
parent_id=typing.cast(str, data["parentId"]),
|
|
542
|
+
parent_type=ConfluencePageParentContentType(typing.cast(str, data["parentType"])),
|
|
527
543
|
title=typing.cast(str, data["title"]),
|
|
528
544
|
version=typing.cast(int, version["number"]),
|
|
529
545
|
content=typing.cast(str, storage["value"]),
|
|
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
|