fix links

This commit is contained in:
relt-1
2023-09-23 13:58:13 +02:00
parent bcb3d037d9
commit e7f72c8ccf
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ for root, subdirs, files in os.walk(src):
rawmarkdown = f.read()
if(rawmarkdown[0:2] != "# "):
raise SyntaxError(".md file must begin with a # marked title!")
documentlist.append(fpath[len(src):].replace(".md",".html").replace("\\","/"))
documentlist.append("/wiki/"+fpath[len(src):].replace(".md",".html").replace("\\","/"))
namelist.append(rawmarkdown[2:].split("\n",1)[0])
template = template.replace("@DOCUMENTLIST",str(documentlist)).replace("@NAMELIST",str(namelist))
for root, subdirs, files in os.walk(src):

View File

@@ -1,6 +1,6 @@
<!DOCTYPE html>
<script>
const documentlist = ['index.html', 'folder/other.html']
const documentlist = ['/wiki/index.html', '/wiki/folder/other.html']
const namelist = ['test', 'Other']
function updateSearch() {

View File

@@ -1,6 +1,6 @@
<!DOCTYPE html>
<script>
const documentlist = ['index.html', 'folder/other.html']
const documentlist = ['/wiki/index.html', '/wiki/folder/other.html']
const namelist = ['test', 'Other']
function updateSearch() {