Skip to content

Commit

Permalink
fixed entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
josephlewis42 committed Oct 14, 2024
1 parent e74ca23 commit a952ef4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/devdocs2zim/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class NavbarDocument(BaseModel):
# implicitly.
href: str = "index"
# Link to the main root of the document, usually "index"
license_href: str = Field(alias="licenseHref", default="licenses.txt")
license_href: str = Field(serialization_alias="licenseHref", default="licenses.txt")
# Version information to display.
version: str
# Sections to show
Expand Down Expand Up @@ -264,7 +264,7 @@ def build_navbar_json(self, name: str, version: str) -> str:
name=name,
version=version,
children=children,
).model_dump_json()
).model_dump_json(by_alias=True)


class DevdocsClient:
Expand Down
2 changes: 1 addition & 1 deletion src/devdocs2zim/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def main() -> None:
help=(
"Directory containing Vite build output from the Zim UI Vue.JS application"
),
default=os.getenv("DEVDOCS_ZIMUI_DIST", "../zimui/dist"),
default=os.getenv("DEVDOCS_ZIMUI_DIST", "zimui/dist"),
)

args = parser.parse_args()
Expand Down

0 comments on commit a952ef4

Please sign in to comment.