From 5ddf4638e1ee4d5ff13da65d42777a19fdf65944 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Fri, 11 Mar 2022 13:05:51 +0900 Subject: periject: Fix menu and subindex file locations part2 It seems some browther can't handle symbolic link correctly (some browther think it at original path, some browther think it as linked path). Inidex.html is designed to located under ${periject}/index.html. But the reason why it is created inside ${periject}/html is keeping simple Makefile. Thus it is using link to under ${periject}. This patch uses hard link instead of symbolic link for it. Tested-by: Geert Uytterhoeven Signed-off-by: Kuninori Morimoto --- Makefile | 2 +- scripts/html_index.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e10f939..6fbf38e 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ html/schedule.html: projects/schedule.py scripts/schedule.py @./scripts/timesheet.py > $@ index.html: - @ln -sf html/index.html . + @ln -f html/index.html . ${HTMLDIR} ${WIKIDIR}: mkdir -p $@ diff --git a/scripts/html_index.py b/scripts/html_index.py index 0da5b05..50415ca 100755 --- a/scripts/html_index.py +++ b/scripts/html_index.py @@ -22,8 +22,8 @@ class periject_html(html_base.myhtml): # |menu|body| # | | | with html("frameset", {"cols":"{},*".format(self.config("html-default-cols"))}): - html("frame", {"src":"./menu.html", "name":"menu"}).print() - html("frame", {"src":"./subindex.html", "name":"body"}).print() + html("frame", {"src":"./html/menu.html", "name":"menu"}).print() + html("frame", {"src":"./html/subindex.html", "name":"body"}).print() #==================================== # -- cgit v1.2.3