Compare commits
1 Commits
cleanupfea
...
renovate/c
Author | SHA1 | Date | |
---|---|---|---|
b259beac50 |
@ -66,7 +66,6 @@ class MkdocsWithConfluence(BasePlugin):
|
||||
self.repo_url = None
|
||||
self.header_message = None
|
||||
self.upstream_url = None
|
||||
self.page_ids = []
|
||||
|
||||
|
||||
def on_config(self, config):
|
||||
@ -140,13 +139,6 @@ class MkdocsWithConfluence(BasePlugin):
|
||||
for path in page.url.rsplit("/", 2)[0].split("/"):
|
||||
logger.debug(f"path is {path}")
|
||||
parent_id = self.find_page_id(parent_page)
|
||||
if not parent_id:
|
||||
self.add_page(parent_page, None, SECTION_PAGE_CONTENT)
|
||||
parent_id = self.find_page_id(parent_page)
|
||||
# --------------------------------------------------------
|
||||
# -- Add it to the list only if it was created by plugin
|
||||
# --------------------------------------------------------
|
||||
self.page_ids.append(parent_id)
|
||||
if path:
|
||||
if page_name:
|
||||
page_name = page_name + " " + path
|
||||
@ -156,8 +148,6 @@ class MkdocsWithConfluence(BasePlugin):
|
||||
self.add_page(page_name, parent_id, SECTION_PAGE_CONTENT)
|
||||
parent_page = page_name
|
||||
parent_id = self.find_page_id(parent_page)
|
||||
self.page_ids.append(parent_id)
|
||||
|
||||
confluence_page_name = parent_page + " " + page.title
|
||||
new_markdown = markdown
|
||||
# -- Adding an upstream url
|
||||
@ -192,7 +182,6 @@ class MkdocsWithConfluence(BasePlugin):
|
||||
logger.debug(f"attachments: {attachments}")
|
||||
confluence_body = self.confluence_mistune(new_markdown)
|
||||
self.add_page(confluence_page_name, parent_id, confluence_body)
|
||||
self.page_ids.append(self.find_page_id(confluence_page_name))
|
||||
logger.info(f"page url = {page.url}")
|
||||
if not page.url and self.config["set_homepage"]:
|
||||
self.set_homepage(confluence_page_name)
|
||||
@ -215,9 +204,6 @@ class MkdocsWithConfluence(BasePlugin):
|
||||
if self.enabled:
|
||||
logger.info("The author was uploading images here, maybe there was a reason for that")
|
||||
|
||||
def on_post_build(self, config):
|
||||
logger.warning(self.page_ids)
|
||||
|
||||
def on_page_content(self, html, page, config, files):
|
||||
return html
|
||||
|
||||
|
3
renovate.json
Normal file
3
renovate.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||
}
|
Reference in New Issue
Block a user