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

+4 -4
View File
@@ -14,8 +14,8 @@
//
// Anything with a dot in its last segment is a file, not a route, and is
// served from the cache or the network without going near the router. Pages
// have no extension: what is on disk is books/GEN.html, what the reader sees
// is /GEN, and server.py resolves one to the other. books/index.html is the
// have no extension: what is on disk is bible/GEN.html, what the reader sees
// is /GEN, and server.py resolves one to the other. bible/index.html is the
// root itself -- there is no /index, the book list lives at /.
//
// The files on disk are fragments: a title element and one root element. The
@@ -72,7 +72,7 @@ const DOWNLOAD_AT_ONCE = 4;
// The two versions are deliberately separate, over the two directories the
// server puts together. VERSION covers the hand-written chrome in assets/,
// templates included, so editing the shell drops and refetches a few hundred
// kilobytes. The other covers the generated pages in books/, which change only
// kilobytes. The other covers the generated pages in bible/, which change only
// when compile_bible.py runs -- so a change of chrome no longer costs every
// device the whole corpus again.
const VERSION = 'dev';
@@ -259,7 +259,7 @@ const MISSING_NOTICE = ['Not found', 'There is no page at this address.'];
// The fragment a page URL names, or one explaining why there is none. A page
// asks the origin for its own address -- /GEN fetches ./GEN -- and server.py
// is what knows the file behind it is books/GEN.html.
// is what knows the file behind it is bible/GEN.html.
async function fragmentFor(path, event) {
let res;
try {