]> Lady’s Gitweb - GitWikiWeb/commitdiff
Allow more git calls for Special:RecentlyChanged
authorLady <redacted>
Sat, 29 Jul 2023 00:17:58 +0000 (17:17 -0700)
committerLady <redacted>
Sat, 29 Jul 2023 00:17:59 +0000 (17:17 -0700)
This is now configurable in `config.yaml` (`max_recency`) and defaults
to `7` instead of `5`.

build.js
config.yaml
style.css

index bd8ff27ba2c0fe3743ba4132236fd65237c8cfbc..ca07283ba29bb747f7b353661da5b224607e554c 100644 (file)
--- a/build.js
+++ b/build.js
@@ -664,7 +664,8 @@ class GitWikiWebPage {
         }
         const results = new Array(6);
         const seen = new Set();
-        let recency = 5;
+        const maxRecency = Math.max(config.max_recency | 0, 0);
+        let recency = maxRecency;
         let current;
         do {
           const show = new Deno.Command("git", {
@@ -672,7 +673,7 @@ class GitWikiWebPage {
               "show",
               "-s",
               "--format=%H%x00%cI%x00%cD",
-              recency ? `HEAD~${5 - recency}` : commit,
+              recency ? `HEAD~${maxRecency - recency}` : commit,
             ],
             stdout: "piped",
             stderr: "piped",
index 555db2bbfeccd43359c82441dd4436b5a3a7f281..1972fa4eebb8238b9825ddeb5717967824a10065 100644 (file)
@@ -1,4 +1,11 @@
-# Modify this file to configure your GitWikiWeb instance.
+# The maximum number of calls to git in Special:RecentlyChanged before
+# giving up and just collecting all remaining files in the time·period.
+#
+# This configuration gives the maximum number of unique dates shown on
+# the page.
+max_recency: 7
+
+# Symbol conversions supported in Djot.
 symbols:
   nbsp: "\xA0" # no‐break space
   cgj: "\u034F" # combining grapheme joiner
index 82330d09636fbcdab7ea91e54dd0cd2463383e87..e79e07046621309399333aca92a68944e27d8f87 100644 (file)
--- a/style.css
+++ b/style.css
@@ -16,9 +16,11 @@ p{ Margin: 0 }
 p+p{ Margin-Block-Start: .75EM }
 :Any-Link[href^="/Special:NotFound?path="]{ Color: Firebrick }
 span.sig{ Font-Style: Italic; Font-Weight: Bold }
-strong[data-recency="5"]{ Font-Weight: 900 }
-strong[data-recency="4"]{ Font-Weight: 800 }
-strong[data-recency="3"]{ Font-Weight: 700 }
-strong[data-recency="2"]{ Font-Weight: 600 }
+strong[data-recency="7"]{ Font-Weight: 800 }
+strong[data-recency="6"]{ Font-Weight: 750 }
+strong[data-recency="5"]{ Font-Weight: 700 }
+strong[data-recency="4"]{ Font-Weight: 650 }
+strong[data-recency="3"]{ Font-Weight: 600 }
+strong[data-recency="2"]{ Font-Weight: 550 }
 strong[data-recency="1"]{ Font-Weight: 500 }
 strong[data-recency] time{ Font-Style: Italic }
This page took 0.031935 seconds and 4 git commands to generate.