You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
The text was updated successfully, but these errors were encountered:
gabriel-rh
changed the title
Add sorting to the llist of topic map files
Add sorting to the list of topic map files
Jul 4, 2022
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...
The text was updated successfully, but these errors were encountered: