Compare commits

...

2 Commits
v0.3.3 ... main

Author SHA1 Message Date
Nikolai Rodionov 136d9c72b6 upgrade version 2023-02-28 16:35:30 +01:00
Nikolai Rodionov f3553e9dfd fix: do not add ancestors if page is in the root 2023-02-28 16:34:54 +01:00
2 changed files with 3 additions and 2 deletions

View File

@ -357,9 +357,10 @@ class MkdocsWithConfluence(BasePlugin):
"type": "page",
"title": page_name,
"space": {"key": space},
"ancestors": [{"id": parent_page_id}],
"body": {"storage": {"value": page_content_in_storage_format, "representation": "storage"}},
}
if parent_page_id:
data["ancestors"] = [{"id": parent_page_id}]
logger.debug(f"DATA: {data}")
if not self.dryrun:
try:

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "mkdocs-with-confluence"
version = "0.3.3"
version = "0.3.4"
description = "MkDocs plugin for uploading markdown documentation to Confluence via Confluence REST API"
authors = ["Nikolai Rodionov <allanger@zohomail.com>"]
readme = "README.md"