Skip to content

Commit 2f1f768

Browse files
committed
style: Format
1 parent 718b0bc commit 2f1f768

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/mkdocs_llmstxt/_internal/plugin.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ def on_page_content(self, html: str, *, page: Page, **kwargs: Any) -> str | None
138138
# Use `base_url` if it exists.
139139
if self.config.base_url is not None:
140140
base = cast("str", self.config.base_url)
141-
else: # use a url that is guaranteed to exist as we require `site_url` to be configured.
141+
else:
142+
# Use `site_url`, which we assume to be always specified.
142143
base = cast("str", self.mkdocs_config.site_url)
143144
if not base.endswith("/"):
144145
base += "/"
@@ -191,7 +192,9 @@ def on_post_build(self, *, config: MkDocsConfig, **kwargs: Any) -> None: # noqa
191192
if self.config.full_output is not None:
192193
full_output_file = Path(config.site_dir).joinpath(self.config.full_output)
193194
for section_name, page_uris in self._sections.items():
194-
list_content = "\n".join(self._md_pages[page_uri].content for page_uri in page_uris if page_uri in self._md_pages)
195+
list_content = "\n".join(
196+
self._md_pages[page_uri].content for page_uri in page_uris if page_uri in self._md_pages
197+
)
195198
full_markdown += f"# {section_name}\n\n{list_content}"
196199
full_output_file.write_text(full_markdown, encoding="utf8")
197200
_logger.debug(f"Generated file /{self.config.full_output}.txt")

0 commit comments

Comments
 (0)