Skip to content

Commit

Permalink
rename README.md to index.md, due to mdbook bug in included md file.
Browse files Browse the repository at this point in the history
E.g.

A.md: {{ #include B.md }}
B.md: ![](../README.md)
The ../README.md is converted to ../README.html instead of ../index.html
  • Loading branch information
xieby1 committed Nov 8, 2023
1 parent 5e5b9df commit ac4cb18
Show file tree
Hide file tree
Showing 93 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions src/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1403,10 +1403,10 @@ def outputSUMMARY() -> None:
for transor in sorted_transors:
import os
canonical_folder_name: str = _canonicalize_folder_name(transor.name)
canonical_folder_name_README: str = canonical_folder_name + "/README.md"
if not os.path.exists("src/" + canonical_folder_name_README):
print("outputListByName error: File %s not exists" % canonical_folder_name_README)
f.write(" * [%s](%s/README.md),\n" % (transor.name, canonical_folder_name))
canonical_folder_name_index: str = canonical_folder_name + "/index.md"
if not os.path.exists("src/" + canonical_folder_name_index):
print("outputListByName error: File %s not exists" % canonical_folder_name_index)
f.write(" * [%s](%s/index.md),\n" % (transor.name, canonical_folder_name))
f.close()

def outputMetaMd() -> None:
Expand Down Expand Up @@ -1483,6 +1483,6 @@ def outputByTermMd() -> None:
f.write(" * [%s (%d)](list/byTerm/%s.md)\n" % (term2str(term), len(sorted_transors), term.name))
for transor in sorted_transors:
canonical_folder_name: str = _canonicalize_folder_name(transor.name)
f.write(" * [%s](%s/README.md)\n" % (transor.name, canonical_folder_name))
f.write(" * [%s](%s/index.md)\n" % (transor.name, canonical_folder_name))

f.close()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ac4cb18

Please sign in to comment.