Skip to content

Commit 2db7fab

Browse files
committed
Fix online redirection
1 parent 64c23e9 commit 2db7fab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
cur.execute('INSERT OR IGNORE INTO searchIndex(name, type, path) VALUES (?,?,?)', (cmd_name, 'Command', sub_dir+'/'+cmd_name+".html"))
6868
doc = markdowner.convert(archive.read(path))
6969
doc = re.sub(r'{{(.*?)}}', r'<em>\1</em>', doc)
70-
doc = html_tmpl.format(url=online_url+'/'+sub_dir+'/'+cmd_name, content=doc)
70+
doc = html_tmpl.format(url=online_url+'/'+sub_dir+'/'+cmd_name+'.md', content=doc)
7171
with open(os.path.join(doc_path, path[len(doc_pref)+1:].replace(".md", ".html")), "wb") as html:
7272
html.write(doc.encode("utf-8"))
7373
db.commit()

0 commit comments

Comments
 (0)