diff --git a/docs/Miscellaneous/Documentation Development.md b/docs/Miscellaneous/Documentation Development.md index 59a6735..6105eac 100644 --- a/docs/Miscellaneous/Documentation Development.md +++ b/docs/Miscellaneous/Documentation Development.md @@ -201,7 +201,7 @@ To check that none of the internal links in the most recent documentation build check.bat -This runs [Lychee](https://github.com/lycheeverse/lychee) in offline mode against the built `_site/`. +This runs three checks: [Lychee](https://github.com/lycheeverse/lychee) in offline mode against `_site/` (the live tree), the same against `_site-offline/` (the file://-browsable mirror), and a small Python pass over `_site-offline/` that flags any surviving `https://docs.twinbasic.com/` link --- the offline mirror should not navigate back to the live docs site. ### Building and Local Serving diff --git a/docs/Miscellaneous/FAQs.md b/docs/Miscellaneous/FAQs.md index 8124044..e8bb7f9 100644 --- a/docs/Miscellaneous/FAQs.md +++ b/docs/Miscellaneous/FAQs.md @@ -69,7 +69,7 @@ For a full list of all the new features available right now, see the Wiki articl {: #to-learn-more } [twinBASIC Home Page](https://twinbasic.com) -twinBASIC GitHub: [Main section](https://github.com/twinbasic/twinbasic) \| [Issues](https://github.com/twinbasic/twinbasic/issues) \| [Discussions](https://github.com/twinbasic/twinbasic/discussions) \| [Language Design](https://github.com/twinbasic/lang-design) \| [ Language Specification](https://github.com/twinbasic/lang-spec) \| [Documentation](https://docs.twinbasic.comi) +twinBASIC GitHub: [Main section](https://github.com/twinbasic/twinbasic) \| [Issues](https://github.com/twinbasic/twinbasic/issues) \| [Discussions](https://github.com/twinbasic/twinbasic/discussions) \| [Language Design](https://github.com/twinbasic/lang-design) \| [ Language Specification](https://github.com/twinbasic/lang-spec) \| [Documentation](https://docs.twinbasic.com) [twinBASIC Discord](https://discord.gg/UaW9GgKKuE) diff --git a/docs/_plugins/book-href-rewrite.rb b/docs/_plugins/book-href-rewrite.rb index 963ff87..d0b7486 100644 --- a/docs/_plugins/book-href-rewrite.rb +++ b/docs/_plugins/book-href-rewrite.rb @@ -228,6 +228,8 @@ def self.process(page) return if parent_map.empty? landing_anchors = build_landing_anchors(site) + start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC) + rewritten = 0 landings_stripped = 0 page.output = page.output.gsub(/(]*id="(ch-[^"]+)"[^>]*>)(.*?)(<\/article>)/m) do @@ -254,6 +256,9 @@ def self.process(page) "#{article_open}#{body}#{article_end}" end Jekyll.logger.info "BookHrefRewrite:", "rewrote #{rewritten} chapter bodies, stripped #{landings_stripped} landing H3s" + + elapsed_ms = ((Process.clock_gettime(Process::CLOCK_MONOTONIC) - start_time) * 1000).round(0) + Jekyll.logger.info "BookHrefRewrite:", "BookHrefRewriter ran in #{elapsed_ms}ms." end end diff --git a/docs/_plugins/offlinify.md b/docs/_plugins/offlinify.md index 49b7785..979afe7 100644 --- a/docs/_plugins/offlinify.md +++ b/docs/_plugins/offlinify.md @@ -1,6 +1,6 @@ # Offlinify -`_plugins/offlinify.rb` produces a `file://`-browsable copy of the rendered site. Every page-to-page link is rewritten to a page-relative path with an explicit file extension; the two just-the-docs JS functions that break under `file://` are patched; the lunr search index is rewired to load from a `