Skip to content

Commit

Permalink
Fixed uppercase in hrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSpaar committed Sep 11, 2024
1 parent f957561 commit 90dbc1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/.venv
**/dist/
**/generated/
**/__pycache__/
Expand Down
7 changes: 4 additions & 3 deletions src/markdown_spa/generator/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def __prepare(self, full_path: str) -> dict[str, Page]:

uri = item_path.removeprefix(f"{self.config.pages_path}/") \
.removesuffix(f".{ext}") \
.removesuffix("index")
.removesuffix("index") \
.lower()

# File already processed, processing dir
if isdir(item_path) and uri in entry:
Expand Down Expand Up @@ -181,7 +182,7 @@ def render_pages(self) -> Optional[str]:
if self.full_tb:
raise e
return f"Error while rendering pages: {e}"

return None

def copy_assets(self) -> Optional[str]:
Expand All @@ -193,5 +194,5 @@ def copy_assets(self) -> Optional[str]:
if self.full_tb:
raise e
return f"Error while copying assets: {e}"

return None

0 comments on commit 90dbc1d

Please sign in to comment.