Simply adding sorting when processing the list of topic map files, would allow us to split us the humongous _topic_map.yml file into multiple smaller files with one map for each book:
Dir.glob("#{topic_map_folder}/*.yml").sort.each do |filename|
instead of:
Dir.glob("#{topic_map_folder}/*.yml").each do |filename|
We could split the map, naming the files so that they would sort in the correct order (and allow additions/reorgs without needing to rename):
As well as improving usability by having smaller (modular) topic maps, it would ultimately help enable rendering individual books, rather than the full >>2GB previews that ends up being very expensive for hosting purposes...
Using @gabriel-rh's container image with his updated version of asciibinder, I verified the fixes worked as expected. Note: I was able to also build using the split maps using my local build.
Simply adding sorting when processing the list of topic map files, would allow us to split us the humongous _topic_map.yml file into multiple smaller files with one map for each book:
instead of:
We could split the map, naming the files so that they would sort in the correct order (and allow additions/reorgs without needing to rename):
As well as improving usability by having smaller (modular) topic maps, it would ultimately help enable rendering individual books, rather than the full >>2GB previews that ends up being very expensive for hosting purposes...