Skip to content

Commit

Permalink
Argument text2detail
Browse files Browse the repository at this point in the history
  • Loading branch information
zyzzyxdonta committed Dec 19, 2024
1 parent d953c3f commit f1f4909
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/source/_ext/plugin_markup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
logger = logging.getLogger(__name__)


def log_message(text: str, text2: str = None) -> None:
def log_message(text: str, detail: str = None) -> None:
message = colorize("bold", "[Plugin Markup]") + " " + text
if text2 is not None:
message += " " + colorize("darkgreen", text2)
if detail is not None:
message += " " + colorize("darkgreen", detail)
logger.info(message)


Expand Down Expand Up @@ -94,12 +94,12 @@ def run(self) -> list[nodes.Node]:
directory = filename.parent

plugins_file = directory / self.arguments[0]
log_message("reading plugins file", text2=str(plugins_file))
log_message("reading plugins file", detail=str(plugins_file))
with open(plugins_file) as file:
plugin_data = json.load(file)

plugins_schema_file = directory / self.arguments[1]
log_message("reading plugins schema file", text2=str(plugins_schema_file))
log_message("reading plugins schema file", detail=str(plugins_schema_file))
with open(plugins_schema_file) as file:
plugin_schema = json.load(file)

Expand Down

0 comments on commit f1f4909

Please sign in to comment.