mirror of
https://github.com/celisej567/wiki.git
synced 2025-12-31 01:49:32 +03:00
fix links
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user