This will help merge all the *.md files in a tree into 1 and form chapter structures.
Change the folder/book name in the source file merge_into_book.py:
# for example: book_name = "A5-现代软件工程(更新中)"
book_name = "the book folder name"
and then run:
python3 merge_into_book.py
Please install the below tools and make sure they are added to Path.
To check whether these binaries are available, open your terminal and type:
pandoc --version
pdflatex --version
miktex --help