3 Commits

Author SHA1 Message Date
b259beac50 Add renovate.json 2024-09-11 14:11:06 +00:00
136d9c72b6 upgrade version 2023-02-28 16:35:30 +01:00
f3553e9dfd fix: do not add ancestors if page is in the root 2023-02-28 16:34:54 +01:00
3 changed files with 6 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"

3
renovate.json Normal file
View File

@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}