Skip to content

Commit

Permalink
v1.2.0.4
Browse files Browse the repository at this point in the history
- fix webroot
  • Loading branch information
maybeetree committed Feb 3, 2025
1 parent b2477c2 commit 34e67be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "raidoc"
version = "1.2.0.3"
version = "1.2.0.4"
description = "Documentation for RAIMAD"
authors = [
{name = "maybetree", email = "[email protected]"}
Expand Down
2 changes: 1 addition & 1 deletion src/raidoc/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _parse_journey(self, page: Page) -> None:

def _render_page(self, page: Page):

webroot = '../' * (len(page.path.parts))
webroot = '../' * (len(page.path.parts) - 1)

# TODO full jinja
page.md_filled = page.md.replace(
Expand Down
2 changes: 1 addition & 1 deletion src/raidoc/raimark_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def render_wiki_link(self, element):

page = LinkMixin.builder.page(element.target)

webroot = '../' * (len(page.path.parts) + 1) # FIXME ???
webroot = '../' * (len(page.path.parts) - 1) # FIXME ???

href = f'{webroot}{page.path_html}'
title = page.title
Expand Down

0 comments on commit 34e67be

Please sign in to comment.