This commit is contained in:
mark committed 2026-09-04 12:05:50 -04:00
1 parent 777996cb40
commit b9d19368f1
91 files changed
+25 -47569

No files matched your search

+6 -5
View File
@@ -3,7 +3,7 @@
One step, source to output. It reads a directory of eBible .htm files -- a flat
set of per-chapter pages, ``JHN03.htm``, plus a site index -- and writes
books/GEN.html and so on, plus books/index.html.
bible/GEN.html and so on, plus bible/index.html.
There used to be two scripts and a 15 MB bible.json between them. The JSON was
worth having when the corpus was going to be queried; nothing queries it, so
@@ -30,14 +30,15 @@ different jobs and the seam is where a second output format would attach:
whole corpus can be restyled from the stylesheet without being
regenerated.
This is the only build step in the project, and books/ is all it owns.
This is the only build step in the project, and bible/ is all it owns.
Its output is not committed: bible/ is in .gitignore, so a deploy runs this.
Everything hand-written lives in assets/ and is served straight from there.
Grouping worth knowing about: consecutive poetry lines are wrapped in a
<div class="poetry"> that a blank-line block closes, so stanzas are real
elements rather than spacing; consecutive list items become one <ul>.
python3 utils/compile_bible.py source -o books
python3 utils/compile_bible.py source -o bible
"""
from __future__ import annotations
@@ -785,8 +786,8 @@ def main(argv=None):
formatter_class=argparse.RawDescriptionHelpFormatter)
ap.add_argument("source", nargs="?", default="source",
help="directory of eBible .htm files (default: source)")
ap.add_argument("-o", "--out", default="books",
help="output directory (default: books)")
ap.add_argument("-o", "--out", default="bible",
help="output directory (default: bible)")
args = ap.parse_args(argv)
data, skipped = extract(args.source)