From 279b1172a647edc1602bcf36c78cd085e96c4682 Mon Sep 17 00:00:00 2001 From: Cody Fincher Date: Mon, 23 Dec 2024 05:28:56 +0000 Subject: [PATCH] chore(build): adjust changelog reference --- .gitignore | 2 +- tools/sphinx_ext/changelog.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 7226e4e..7b796ef 100644 --- a/.gitignore +++ b/.gitignore @@ -26,7 +26,7 @@ share/python-wheels/ *.egg MANIFEST tmp/ - +docs-build/ # PyInstaller # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. diff --git a/tools/sphinx_ext/changelog.py b/tools/sphinx_ext/changelog.py index 10d0a9c..4e726e6 100644 --- a/tools/sphinx_ext/changelog.py +++ b/tools/sphinx_ext/changelog.py @@ -12,7 +12,7 @@ if TYPE_CHECKING: from sphinx.application import Sphinx -_GH_BASE_URL = "https://github.com/litestar-org/litestar-inertia" +_GH_BASE_URL = "https://github.com/litestar-org/litestar-vite" def _parse_gh_reference(raw: str, type_: Literal["issues", "pull"]) -> list[str]: @@ -43,7 +43,7 @@ def run(self) -> list[nodes.Node]: change_node = nodes.container("\n".join(self.content)) change_node.attributes["classes"].append("changelog-change") - self.state.nested_parse(self.content, self.content_offset, change_node) + self.state.nested_parse(self.content, self.content_offset, change_node) # pyright: ignore[reportUnknownMemberType] reference_links = [ *_parse_gh_reference(self.options.get("issue", ""), "issues"), @@ -91,7 +91,7 @@ def run(self) -> list[nodes.Node]: changelog_node += nodes.strong("", "Released: ") changelog_node += nodes.Text(release_date) - self.state.nested_parse(self.content, self.content_offset, changelog_node) + self.state.nested_parse(self.content, self.content_offset, changelog_node) # pyright: ignore[reportUnknownMemberType] change_group_lists = { "feature": nodes.definition_list(), @@ -129,12 +129,12 @@ def run(self) -> list[nodes.Node]: list_item += nodes.definition("", change_node.children[0]) - nodes_to_remove.append(change_node) + nodes_to_remove.append(change_node) # pyright: ignore[reportUnknownMemberType] change_group_lists[change_type] += list_item - for node in nodes_to_remove: - changelog_node.remove(node) + for node in nodes_to_remove: # pyright: ignore[reportUnknownVariableType] + changelog_node.remove(node) # pyright: ignore[reportUnknownArgumentType] for change_group_type, change_group_list in change_group_lists.items(): if not change_group_list.children: