Mike decided to get me involved. ![]()
I did some work on this in a fork, @Joschua. You likely don’t want to pull it in directly but I made some adjustments for my own purposes.
-
Instead of relying on the installation of the BG to MD dependency, I installed it as a submodule and then referenced the
.rbexecutable directly in your script. -
I removed a lot of the "00 - " numbering and such in your script so that it was cleaner on the output side.
-
I added a script
versesplit.shthat can be run on a version directory and it will split out the chapter markdown files into individual verse markdown files. -
I added another script
masterfiles.shthat when run will create a file in each book and chapter folder that contains links to the downstream files. SoGenesis.mdhas links to all the chapters.Genesis 1.mdhas links to all the verses. That way there’s a link between it all. -
I then added a final script to add the sorting numbers back to the book folders for sorting them correctly.
-
Last note, the verse files take on the format
Genesis 1.1.md. Colons are no fun in filenames. -
Oh! I also changed the root folder name to be just the version text. In my scripts, I have ESV in there. So to use them on a different version, you’ll need to change that bit or alter it to use a variable passed into the script.
Enjoy!