Update varialbe naming

This commit is contained in:
Nikolai Rodionov 2023-02-27 16:00:57 +01:00
parent 36ae68be6b
commit 389ae73ba7
1 changed files with 5 additions and 2 deletions

View File

@ -22,6 +22,9 @@ from pathlib import Path
ENABLE_ENV_VAR = "MKDOCS_TO_CONFLUENCE"
DRY_RUN_ENV_VAR = "MKDOCS_TO_CONFLUENCE_DRY_RUN"
CONFLUENCE_PASSWORD_ENV_VAR = "CONFLUENCE_PASSWORD"
CONFLUENCE_USER_ENV_VAR = "CONFLUENCE_USER"
TEMPLATE_BODY = "<p> TEMPLATE </p>"
HEADER_WARNING = "‼️ This page is created automatically, all you changes will be overwritten during the next MKDocs deployment. Do not edit a page here ‼️"
SECTION_PAGE_CONTENT = "<p> It's just a Section Page </p>"
@ -45,8 +48,8 @@ class MkdocsWithConfluence(BasePlugin):
("host_url", config_options.Type(str, default=None)),
("space", config_options.Type(str, default=None)),
("parent_page_name", config_options.Type(str, default=None)),
("username", config_options.Type(str, default=environ.get("JIRA_USERNAME", None))),
("password", config_options.Type(str, default=environ.get("JIRA_PASSWORD", None))),
("username", config_options.Type(str, default=environ.get(CONFLUENCE_USER_ENV_VAR, None))),
("password", config_options.Type(str, default=environ.get(CONFLUENCE_PASSWORD_ENV_VAR, None))),
("dryrun", config_options.Type(bool, default=False)),
("header_message", config_options.Type(str, default=None)),
("upstream_url", config_options.Type(str, default=None)),