From b873e32f2f3fa39ec32a522e2a34e18d6ba19a9b Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Thu, 18 Apr 2024 15:53:48 -0700 Subject: [PATCH] improve how status.json is displayed in status.html The contents of `status.json` is now indented when forming `status.html. Changed `bin/status2html.sh` VERSION from to "1.3.1 2024-04-16" to "1.4 2024-04-18". Run `make gen_status` to perform the above. --- bin/status2html.sh | 4 ++-- status.html | 14 +++++++------- status.json | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/bin/status2html.sh b/bin/status2html.sh index a6b2cb2da..c2b20fff2 100755 --- a/bin/status2html.sh +++ b/bin/status2html.sh @@ -99,7 +99,7 @@ shopt -s globstar # enable ** to match all files and zero or more directories an # set variables referenced in the usage message # -export VERSION="1.3.1 2024-04-16" +export VERSION="1.4 2024-04-18" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -469,7 +469,7 @@ esac # echo '# status.json' echo '```' - cat "$STATUS_JSON" + sed -e 's/^/ /' "$STATUS_JSON" echo '```' } | if [[ -z $NOOP ]]; then cat >> "$TMP_FILE" diff --git a/status.html b/status.html index 9afeb8020..3d9c26329 100644 --- a/status.html +++ b/status.html @@ -138,13 +138,13 @@

The IOCCC is NOT accepting new submissions at this time. See the IOCCC winning entries page for the entires that have won the IOCCC.

Watch both the IOCCC status page and the @IOCCC mastodon feed for information about future IOCCC openings.

status.json

-
{
-    "no_comment" : "mandatory comment: because comments were removed from the original JSON spec",
-    "IOCCC_status_version" : "1.0 2024-03-09",
-    "contest_status" : "closed",
-    "news_update" : "2024-04-12T18:22:04+00:00",
-    "status_update" : "2024-03-31T05:02:06+00:00"
-}
+
    {
+        "no_comment" : "mandatory comment: because comments were removed from the original JSON spec",
+        "IOCCC_status_version" : "1.0 2024-03-09",
+        "contest_status" : "closed",
+        "news_update" : "2024-04-18T22:49:50+00:00",
+        "status_update" : "2024-03-31T05:02:06+00:00"
+    }
diff --git a/status.json b/status.json index 8b589cae8..6328cba1d 100644 --- a/status.json +++ b/status.json @@ -2,6 +2,6 @@ "no_comment" : "mandatory comment: because comments were removed from the original JSON spec", "IOCCC_status_version" : "1.0 2024-03-09", "contest_status" : "closed", - "news_update" : "2024-04-12T18:22:04+00:00", + "news_update" : "2024-04-18T22:49:50+00:00", "status_update" : "2024-03-31T05:02:06+00:00" }