Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions apindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ def writeIndex(startPath, title = None, footer=None):
html = html.replace("#FOOTER", footer)
html = html.replace("#DIR", root.getPathFromRoot())

# add the back dir
dirsRead.append(File("..").toHTML())

for file in root.getChildren():
# we do not want to index the index itself
if file.getFileName() == "index.html":
Expand All @@ -183,6 +180,10 @@ def writeIndex(startPath, title = None, footer=None):
# fill in the file list
dirsRead.sort()
filesRead.sort()

# add the back dir
dirsRead.append(File("..").toHTML())

html = html.replace("#GEN_DIRS", "".join(str(x) for x in dirsRead))
html = html.replace("#GEN_FILES", "".join(str(x) for x in filesRead))

Expand Down