Commit Graph
100 Commits
Author SHA1 Message Date
Landon Curt Noll 0dbf358b37 add a consistent set of text about X11 2024-07-21 17:27:47 -07:00
Landon Curt Noll e719e63a1e fix bin/new-year.sh rename
Sorry (tm Canada 🇨).
2024-07-21 17:07:19 -07:00
Landon Curt Noll 082c8edbed add bin/add-dir.sh tool
Added `bin/add-dir.sh` VERSION "1.0 2024-07-21".
2024-07-21 16:53:20 -07:00
Landon Curt Noll d60f7784ba rename new_year.sh to new-year.sh
Use -'s for consistent bin tool names.
2024-07-21 16:30:22 -07:00
Landon Curt Noll 89e66b96c5 improve word flow around FAQ references 2024-07-21 16:17:20 -07:00
Landon Curt Noll f7e7610370 added the ability to wish a Happy New IOCCC Year
:-)

Added `bin/new_year.sh` VERSION "1.0 2024-07-21".
2024-07-21 15:22:40 -07:00
Landon Curt Noll 314ef43d25 improve the 1992/nathan historical note 2024-07-21 14:27:37 -07:00
Landon Curt Noll 62a90df37f improve CSV / .entry.json tools
Any canonicalization errors (e.g., sort error, mv error, etc.) will
cause an immediate `exit 8`.

The `bin/entry2csv.sh` tool will verify the author_handles referred
to by `author_wins.csv` and check the `author/cauthor_handle.json' file set.

The `bin/csv2entry.sh` tool will verify the author_handles referred
to by `author_wins.csv` and check the `author/cauthor_handle.json' file set.

In `bin/entry2csv.sh` changed VERSION from 1.0.4 2024-07-19"
"1.1 2024-07-20".

In `bin/csv2entry.sh` changed VERSION from to "1.0.1 2024-07-19"
"1.1 2024-07-20".

Performed `make www` to accomplish the above and to test under macOS.

TODO: Remove the `tmp` directory (after saving contents into private storage)
      after testing and improvement of `bin/csv2entry.sh` and
      `bin/entry2csv.sh is complete.
2024-07-20 23:44:45 -07:00
Landon Curt Noll 34178dadba improve CSV / .entry.json tools, fix make csv2entry
Fixed typo in `make csv2entry` rule in `Makefile`.

Fixed how exit codes triggered deep within loops are realized.
Regularize how raising an exit codes with loops are announced.

The use of `-n` does NOT prevent the creation of temporary files:
only permanent files are not modified with `-n`.  NOTE: While
CSV files are NOT permanent files, they too are not modified with `-n`.

Fixed the canonical sort of `manifest.csv`.  Now running
`bin/csv2entry.sh` immediately after `bin/entry2csv.sh` will not
modify `manifest.csv`.

If `bin/csv2entry.sh` encounters an author handle for which
there is no `author/author_handle.json` file, the tool will
complete the formation of the CSV file set and then exit 9
at the very end.

Fixed a few comments in `bin/csv2entry.sh` and `bin/entry2csv.sh`.

In `bin/entry2csv.sh` changed VERSION from "1.0.3 2024-07-19"
to "1.0.4 2024-07-19".

In `bin/csv2entry.sh` changed VERSION from "1.0 2024-07-19"
to "1.0.1 2024-07-19".

Performed `make www` to accomplish the above and to test under macOS.

TODO: Incorporate as needed, more processing of `author/author_handle.json` files.

TODO: Remove the `tmp` directory (after saving contents into private storage).
2024-07-19 16:39:09 -07:00
Landon Curt Noll fcd016a884 update and improve make help
Added `make entry2csv` and `make csv2entry` to the help list.

Changed the "syntax" if the lines printed by `make help` so
that when one selects the entire line and pastes that line
into the shell, the trailing comment is not seen as a rule,
nor it is executed.

Made other minor formatting changes of `make help`.
2024-07-19 14:41:20 -07:00
Landon Curt Noll 097dd49cc7 add tools to manage .entry.json content
Added `bin/csv2entry.sh` VERSION "1.0 2024-07-19".

In `bin/entry2csv.sh` changed VERSION from "1.0.2 2024-07-14"
to "1.0.3 2024-07-19".

The `bin/entry2csv.sh` tool converts all entry `.entry.json` files
into canonicalized `author_wins.csv`, `manifest.csv`, and `year_prize.csv`
CSV files.

The `bin/csv2entry.sh` tool converts `author_wins.csv`, `manifest.csv`,
and `year_prize.csv` (canonicalizing them if needed)  `.entry.json`
files for all entries.

To change the manifest for one or more entries:

```sh
    bin/entry2csv.sh -v 1
    # ((import `manifest.csv` into a spreadsheet tool))
    # ((modify in the spreadsheet tool, the content as needed))
    # ((export the spreadsheet contents, as the CSV file  `manifest.csv`))
    bin/csv2entry.sh -v 1
    make www
``

To change the award for one or more entries:

```sh
    bin/entry2csv.sh -v 1
    # ((import `year_prize.csv` into a spreadsheet tool))
    # ((modify in the spreadsheet tool, the content as needed))
    # ((export the spreadsheet contents, as the CSV file  `year_prize.csv`))
    bin/csv2entry.sh -v 1
    make www
``

To change the authorship of one or more entries:

```sh
    bin/entry2csv.sh -v 1
    # ((import `author_wins.csv` into a spreadsheet tool))
    # ((modify in the spreadsheet tool, the content as needed))
    # ((export the spreadsheet contents, as the CSV file  `author_wins.csv`))
    bin/csv2entry.sh -v 1
    # ((modify winning_entry_set of `author/author_handle.json` files as needed))
    make www
``

Performed `make www` to accomplish the above and to test under macOS.

TODO: Review and improve/expand as needed, changes that were made to `bin/README.md`.

TODO: Remove the `tmp` directory (after saving contents into private storage).
2024-07-19 02:15:18 -07:00
Landon Curt Noll ed866b45e8 format headers
We move `tmp/format-headers.sh` into `bin/format-headers.sh`.

We also add a few missing empty lines to `README.md`.

We add `bin/format-headers.sh` to the `bin/README.md`.

We run `bin/format-headers.sh` to perform the above.

Performed `make www` to accomplish the above and to test under macOS.
2024-07-19 00:18:41 -07:00
Landon Curt Noll 0ae673c24e added UNIX command line quote to bin/README.md 2024-07-18 15:23:30 -07:00
Landon Curt Noll be94c60316 fix how tools check exit codes an entire pipe
We use the `status_codes=("${PIPESTATUS[@]}")` method to
collect all of the bash exit codes from a pipe in one go,
and then test for any failure with `[[ ${status_codes[*]} =~ [1-9] ]]`.

There are other cases where an exit code is obtained,
however in each of those cases only a single exit code
from just one of the commands in the pipe is needed.

In `bin/gen-sitemap.sh` changed VERSION from "1.3.9 2024-06-21"
to "1.3.10 2024-07-18".

In `bin/gen-status.sh` changed VERSION from "1.5.4 2024-07-18"
to "1.5.5 2024-07-18".

Performed `make www` to accomplish the above and to test under macOS.
2024-07-18 15:02:16 -07:00
Landon Curt Noll ef35efc4d3 canonicalize failure :-)
We fix some error messages in a few bin scripts.

Sorry (tm Canada 🇨) for the punny log message.
2024-07-18 13:37:44 -07:00
Landon Curt Noll ad72ca96ea add change that was caught by make www 2024-07-18 12:41:08 -07:00
Landon Curt Noll 6d7b5348b6 improve FAQ 5.5 and FAQ 6.16
We improve FAQ 5.5 (correcting or updating IOCCC author information)
by adding a generic example on changing author's URL.

Now the "PLEASE HELP us identify proper locations for IOCCC authors"
(that now follows the change of URL example) contains only
generic information about changing the location_code from ZZ to AU.

We remove the indirect reference to author email in FAQ 6.16 as we
do not wish to call out what we previously included in the
`authors.html` page.

This commit modifies that otherwise perfect fine PR #2578.

Performed `make www` to accomplish the above and to test under macOS.
2024-07-17 12:38:14 -07:00
Landon Curt Noll 55a413cd55 Merge remote-tracking branch 'origin/master' into statuses 2024-07-17 12:29:55 -07:00
Landon Curt Noll 43fafd0af6 improve FAQ 5.5 and FAQ 6.16
We improve FAQ 5.5 (correcting or updating IOCCC author information)
by adding a generic example on changing author's URL.

Now the "PLEASE HELP us identify proper locations for IOCCC authors"
(that now follows the change of URL example) contains only
generic information about changing the location_code from ZZ to AU.

We remove the indirect reference to author email in FAQ 6.16 as we
do not wish to call out what we previously included in the
`authors.html` page.

This commit modifies that otherwise perfect fine PR #2578.

Performed `make www` to accomplish the above and to test under macOS.
2024-07-17 12:25:23 -07:00
Landon Curt Noll 538c11b639 remove reference author email, clarify make quick_www
We remove an indirect reference to author email in FAQ 6.16.

We also clarify and simplify mention of `make quick_www` in FAQ 5.5.
2024-07-17 10:37:29 -07:00
Landon Curt Noll 0bc6c3e413 improve markdown references to FAQ entries
We quasi-canonicalized markdown links to FAQ entries.

**IMPORTANT NOTE**: This is a useful step in completing issue #2417.  This commit is consistent with the top level TODO comment requirements.  Nevertheless, this changes made by this commit needs to be examined and in some cases improved.

A link to an FAQ entry is of the form:

```
FAQ on "[the link text](....faq.html#string)"
    FAQ on "[the link text](....faq.html#string)"
```

The "FAQ" is at the start of the line, or in rare cases is preceded only by whitespace.

The reference to the FAQ starts outside of the markdown link with the string **FAQ ON "**.

After the markdown link is a **"** followed by either the end of line or a single punctuation character such as a period or comma.

We reduced the size of "the link text" that refer to an FAQ to at most 3 words.  In some cases the sentence and/or text surrounding the markdown link to a FAQ may need to be further adjusted to better accommodate this new style.

**IMPORTANT NOTE**: References to a FAQ entry are on a separate line.

p.s. When linking to the `faq.html` file itself, we use markdown of the form "`the [IOCCC FAQ](..../faq.html)`" and place the word "the" outside of the "IOCCC FAQ" link text.

Given the above system (and because references to an FAQ entry is on a separate line), the following command shows links to FAQ entries, sorted by FAQ entry "link #name" so that one may evaluate the way a given FAQ entry is referenced:

```sh
find * -name '*.md' -print0 | xargs0 grep -E '^[[:space:]]*FAQ on "' | sed -e 's/^\([^:]*\):\( *FAQ on "[^#]*\)#\([^)]*\)\()".*\)$/#\3\t\1\t\2#\3\4/' | sort
```

The above command shows the value of consistency when it comes to FAQ references.

**NOTE**: There are a few differences on how a given FAQ is references.  That is probably OK as there is NOT an "total mandate" that all references to a given FAQ must have the same "link text" for example.  On the other hand if references to a given FAQ can be identical, that might be helpful.  We are certain that in some contexts the "link text" might need to change.

Should we decide to change the way FAQ are referenced, we will be able to modify identify and modify them with greater ease.'

Examine the changes made by this commit and adjust and/or improve as needed.

Performed `make www` to accomplish the above and to test under macOS.
2024-07-17 03:11:19 -07:00
Landon Curt Noll d852734d98 fix faq link URLs what used faq numbers 2024-07-16 22:55:52 -07:00
Landon Curt Noll 5371a515d3 update that make www would have applied 2024-07-15 16:01:59 -07:00
Landon Curt Noll 2883f339be reapply commit a6458d125f 2024-07-15 15:26:18 -07:00
Landon Curt Noll a815874caa remove trailing space from inc/header.no-header-2.html 2024-07-15 14:50:53 -07:00
Landon Curt Noll 31868158ea improve the result of pr 2570
We improve the language in `SECURITY.md` and the resulting
`SECURITY.html` page, and add an important disclaimer.  We also add
that same disclaimer to the bottom of the of the main `index.html`
we page (via `index.md`).
2024-07-15 14:25:04 -07:00
Landon Curt Noll a6458d125f remove trailing space from inc/header.default.html
Removed an annoying trailing space from `inc/header.default.html`.

Performed `make www` to complete the above change.
2024-07-14 22:29:05 -07:00
Landon Curt Noll ace37d56d3 improve debug message in bin/entry2csv.sh
Improved the replaced CSV file debug message from `bin/entry2csv.sh`.

Changed  `bin/entry2csv.sh` VERSION from "1.0 2024-07-14"
to "1.0.1 2024-07-14".
2024-07-14 22:26:33 -07:00
Landon Curt Noll 00bd6ff028 add bin/entry2csv.sh tool
We add a new `bin/entry2csv.sh` tool VERSION "1.0 2024-07-14"
that will convert entry `.entry.json` files into 3 CSV files
`author_wins.csv`, `manifest.csv`, and `year_prize.csv`.

The `bin/entry2csv.sh` tool uses `bin/manifest.csv.entry.awk`.
The new `bin/manifest.csv.entry.awk` VERSION is "1.0 2024-07-14".

This tool will be used to convert entry `.entry.json` file into
CSV files suitable for importing into a spreadsheet application
for further processing.

TODO: Write the `bin/csv2entry.sh` tool, for a given entry, to
      convert 3 CSV files into that entry's c`.entry.json` file.
2024-07-14 14:46:31 -07:00
Landon Curt Noll 9a5667c4f0 improve the quote about no comment 2024-07-14 13:23:25 -07:00
Landon Curt Noll 386ece032b fix faq.md HTML flaw, improve string and no_comment 2024-07-14 13:15:21 -07:00
Landon Curt Noll 41f8acd3ae test DarkGreen CSS code colour
As a trial, we change the `<pre>..</pre>` and `<code>..</code>`
blocks form "_Indigo_" to "_DarkGreen_".

We needed a colour that was **NOT** on the "_blue_ thru _purple_" colour
range, nor "_red_" that is currently used by links.

We choose "_DarkGreen_" as this is the same colour as the box around
quotes.  Given that `<pre>..</pre>` and `<code>..</code>` text
is unlikely to be confused with a box around a quote, we felt this
was a safe colour to try.
2024-07-14 12:32:23 -07:00
Landon Curt Noll 40209422c0 set FAQ version
We add a FAQ version of "28.0 2024-07-14" to `faq.md`
using a similar form of version strings as `next/rules.md`
and `next/guidelines.md`.

Ran `make faq` to perform and test the above under macOS.
2024-07-14 11:40:31 -07:00
Landon Curt Noll 7b100f1264 reduce bold links in a few link heavy areas
While the use of `**font-weight: bold;` helps links standout in
most cases, there a few "_link heavy_" pages were the **MANY BOLD
LINK IN CLOSE PROXIMITY** looks excessive to the point of being
distracting.  In areas where **nearly everything is BOLD, nothing
seems to stand out**.

Fortunately there seems to be only a very few places where this is a problem:

* `faq.html` - the table of contents
* `authors.html` - nearly the entire page
* `location.html` - nearly the entire page
* `years.html` - nearly the entire page

As an **bold** 😎 experiment we added to the CSS:

```css
/*
 * To make a link non-bold, use: <a class="normal" href="url">link text</a>
 */
a.normal {
    font-weight: normal;
}
```

And then modified select tools and a markdown file to "_unbold_"
those "_link heavy_"  areas of the 4 pages above.

We don't claim that this is the best solution and there may be an
even better way to solve this, nevertheless we **do** think the it
improves the look and feel of the "_link heavy_"  areas of the 4
pages above.   For example, in `faq.html` beyond the table of
contents, the bold links look reasonable (although again there are
some quasi-"_link heavy_" areas down in the page look a bit too
bold, but perhaps not enough to warrant changing so we only altered
the table of contents).

In a few cases, while we were editing code that generated links,
we remove a few "**.**"'s where we didn't think they helped the
look and feel.

Change `bin/gen-authors.sh` VERSION from "1.10.3 2024-05-24"
to "1.10.4 2024-07-13".

Change `bin/gen-location.sh` VERSION from "1.4.2 2024-05-19"
to "1.4.3 2024-07-13".

Change `bin/gen-years.sh` VERSION from "1.3.3 2024-07-07"
to "1.3.4 2024-07-13".

Performed `make www` to accomplish the above and to test under macOS.
2024-07-13 19:56:02 -07:00
Landon Curt Noll 310f7bd8ee fix files that were modified by make www 2024-07-09 13:44:49 -07:00
Landon Curt Noll f3aa3c8112 fix output_award function in certain bin files
Repaired the output_award function in `bin/gen-years.sh`
and `bin/output-year-index.sh`.

Previous modifications to the output_award function made
is impossible to detect if output was empty.
Modifications also ran counter the Unix concept that a function
should ideally to one thing and one thing well.

Changed so that the code that called the output_award function
would decorate the award with bold markdown syntax.

Changed `bin/gen-years.sh` VERSION from "1.3.2 2024-05-19"
to "1.3.3 2024-07-07".

Changed `bin/output-year-index.sh` VERSION from "1.4.1 2024-04-28"
to "1.4.2 2024-07-07".

Ran `make www` to perform the above and test under macOS.
2024-07-07 12:56:17 -07:00
Landon Curt Noll 892f7daf41 fix thanks-for-help.html that was built by make www
Perhaps we need a test, run under `make test`, to look for
cases where 'foo.html' is older than 'foo.md` or where
`index.html` is older than `README.md`, etc. ???
2024-07-07 11:04:34 -07:00
Landon Curt Noll ed96c2288f rename test.yml to sanity check 2024-07-07 00:39:39 -07:00
Landon Curt Noll 2e2ae5f132 add notices to those who wish for a greater challenge
We add the following level-3 header to help people identify text
they may wish to skip if they wish for a greater challenge:

```
```

After that notice we add:

```
**If you want a greater challenge, don't read any further**:
just try to understand the program via the source.

If you get stuck, come back and read below for additional hints and information.
```

And sometimes follow with:

```
```

Or sometimes follow with:

```
```

Where the alt code impacts a "greater challenge", we add instead:

```
**If you want a greater challenge, don't read any further**:
just try to understand the program without looking at the Alternate code.

If you get stuck, come back and look at the Alternate code.
```

And where a given command impacts a "greater challenge", we add instead:

```
**If you want a greater challenge, don't read any further**:
just try to understand the program without running the command below.

If you get stuck, come back and run the following command:
```

Perform `make www` to perform the above and test under macOS.
2024-07-07 00:25:20 -07:00
Landon Curt Noll 7af7a80cca Use git ls-files to find files under git in bin/chk-entry.sh
Thanks to @xexyl for the suggestion.

Changed `bin/chk-entry.sh` VERSION from "1.1.7 2024-04-28"
to VERSION="1.1.8 2024-07-06".

Performed `make test` to test the above.
2024-07-06 21:22:56 -07:00
Landon Curt Noll a72cff909f test for initial make test workflow 2024-07-04 18:29:59 -07:00
Landon Curt Noll 96c113d225 complete All Done!!! All Done!!! -- Jessica Noll, Age 2 2024-07-04 13:53:10 -07:00
Landon Curt Noll a379463919 add make test to top level Makefile 2024-07-03 11:50:09 -07:00
Landon Curt Noll 54317f44b8 fix change to 2020/ferguson1/index.html that was missed 2024-07-02 11:21:06 -07:00
Landon Curt Noll 5dd3311e9e fix the remaining spoilers 2024-07-01 01:16:26 -07:00
Landon Curt Noll 85c991620f convert spoiler filenames into deobfuscation filenames 2024-07-01 01:02:40 -07:00
Landon Curt Noll 3aec80f057 convert more spoiler into deobfuscation 2024-06-30 23:23:48 -07:00
Landon Curt Noll 4d6009b58f convert spoiler language and towards deobfuscation language 2024-06-30 23:07:18 -07:00
Landon Curt Noll 50a2a6293c add CUNKNOWN make variables to entry Makefiles 2024-06-30 21:29:27 -07:00
Landon Curt Noll 4d37308d12 add draft FAQ about contributing deobfuscated code 2024-06-30 18:41:50 -07:00
Landon Curt Noll e50d9f2620 change some build individual HTML files to use -v 1 2024-06-30 18:34:59 -07:00
Landon Curt Noll f335a9b415 update rules and guideline headers
Harmonized and improve the headers that are prepended
to the rules and guidelines given the IOCCC state.

Attempted to make the headers that are prepended
to the rules and guidelines more consistent.

Make reference to, where applicable, FAQs
about feedback and questions in those headers.

Perform `make www` to perform the above and test under macOS.
2024-06-30 16:19:11 -07:00
Landon Curt Noll 91adb55e07 improve and add FAQ about rules, guidelines, tools 2024-06-30 15:50:42 -07:00
Landon Curt Noll 4af3d3f1bf improve the to mastodon users 2024-06-30 14:25:53 -07:00
Landon Curt Noll 637b83badd fix make gen_status
The `make gen_status` now also invokes `make gen_next`
instead of `make gen_top_html`.
2024-06-30 14:24:26 -07:00
Landon Curt Noll d273ba6c2b restore and improve previous Makefile edits
NOTE: There were a number of conflicts with this pull request
      that we had to resolve.
2024-06-30 14:10:38 -07:00
Landon Curt Noll 28e6c86041 improve format and order of HTML building rules
Updated `make help`, updated .PHONY, added
missing begin and end echos, fixed order,
misc cleanup.
2024-06-30 13:20:13 -07:00
Landon Curt Noll 0957b9ba6a fix make tab_check issues, change tab_check more portable 2024-06-29 15:20:09 -07:00
Landon Curt Noll 668a6f6b8d change old !-route into a historic quote 2024-06-29 15:02:37 -07:00
Landon Curt Noll f8a2c9defc fix formatting problem in guielines
.. as reported by @SirWumpus via issue #2511

Ran `make gen_top_html` to complete the above.
2024-06-29 14:24:41 -07:00
Landon Curt Noll 1e2793bf5b improve IOCCC rules and guidelines
Fixed a number of typos, inconsistencies, and problems with the
rules and guidelines.

Improved how the closed version of the rules and guidelines declare
themselves at the top of the markdown and HTML file.

Changed `next/rules.md` VERSION from "2024-06-29-v28"
to "28.1 2024-06-29" in order to be more consistent
with IOCCC tool version format.

Changed `next/guidelines.md` VERSION from "2024-06-29-v28"
to "28.1 2024-06-29" in order to be more consistent
with IOCCC tool version format.

Make a minor format fix to `faq.md`.

Performed `make status` and `make www` to test the above umder macOS.
2024-06-29 02:15:38 -07:00
Landon Curt Noll 300b06debd fix the closed form of rules and guidelines 2024-06-29 01:38:23 -07:00
Landon Curt Noll ce05938987 add IOCCC support content to the guidelines and FAQ
This is also a compromise for the idea of "fixing the IOCCC judges".

Perform `make www` to perform the above and test under macOS.
2024-06-28 17:57:32 -07:00
Landon Curt Noll 9700f7abf5 add changes that make www made 2024-06-27 21:15:37 -07:00
Landon Curt Noll fa132223a8 fix broken links identifed by make find_missing_links 2024-06-26 13:41:01 -07:00
Landon Curt Noll 70a494b8e4 expand tabs in files caught by make tab_check 2024-06-26 13:33:03 -07:00
Landon Curt Noll 778f57b318 remove Makefile assignment of MAKE
For systems such as BSD that use gmake, do not set `MAKE=`.
2024-06-25 18:28:04 -07:00
Landon Curt Noll f08f87d92f checkpoint on updating the rules and guidelines
Added a `#weverything` div tag to the FAQ.

Expanded and improved(?) a number of rules and guidelines.
In particular, the consequences of the new mkiocccentry
repo have been put into the rules and guidelines.

This is a checkpoint from which we can review,
edit and improve.
2024-06-25 14:16:19 -07:00
Landon Curt Noll 6eebade91b expand tabs in recent markdown changes that violate tab_check 2024-06-25 14:14:46 -07:00
Landon Curt Noll 1110280c24 add guidelines about compiler warning, change c11 to gnu17 2024-06-24 18:42:26 -07:00
Landon Curt Noll 4690ba97c1 expand on guidelines relating to rule violations 2024-06-24 18:21:12 -07:00
Landon Curt Noll 93081c8f5d improvements to Rule 2 in rules and guidelines 2024-06-24 18:10:15 -07:00
Landon Curt Noll bcd73781c0 fix a minor typo in next/guidelines.md 2024-06-24 15:07:32 -07:00
Landon Curt Noll 6abd69c5c7 fix formatting errors in next/guidelines.md
Sorry (tm Canada 🇨🇦).
2024-06-24 15:02:55 -07:00
Landon Curt Noll 5c710b39e7 reverted most quotes in guidelines.md
The way that markdown quotes are currently formatted (with a gray
vertical line) looks too much like a change bar.  The change bar
is an important tool to help notice new and changed rules and
guidelines.  Unfortunately the current quotes style looks too much
like a change bar, so we use markdown quotes **ONLY** for literal
quotes (such as from Mark Twain) in the `guidelines.md` file.
2024-06-24 15:01:02 -07:00
Landon Curt Noll 51130083c4 check for any ASCII tabs anywhere in markdown files
Clarified and simplified the request to not use ASCII tabs within
markdown file content.

Added _guidelines_ to `next/guidelines.md` about not using ASCII
tab characters in markdown files while stating that is just fine
to use ASCII tabs in non-markdown files and C code.

The `make tab_check` rule now simply checks for ASCII tabs within
markdown files, except `markdown.md` where they are required to
serve as examples of what not to do.

Perform `make quick_www` to perform the above and test under macOS.

Perform `make www` to perform the above and test under macOS.
2024-06-24 14:52:00 -07:00
Landon Curt Noll 4bd1916871 check for leading ASCII tabs in leading whitespace in markdown files
Given that there are no longer any ASCII tab characters within
leading whitespace in markdown files, commit XXX added a `make
tab_check` rule to the top level `Makefile`.  Moreover both `make
quick_www` and `make www` perform a `make tab_check` after running
`make clobber`.

Perform `make quick_www` to perform the above and test under macOS.

Perform `make www` to perform the above and test under macOS.
2024-06-24 12:55:43 -07:00
Landon Curt Noll 7712db4a17 Expand all leading tabs in markdown files
Given how problematic leading tabs in markdown files can be,
we have expanded all leading tabs in markdown files by:

```sh
find * -type f -name '*.md' -print |
  while read -r file; do
    rm -f "$file.tmp" ;
    expand < "$file" > "$file.tmp" ;
    mv -f -v "$file.tmp" "$file" ;
  done
```

Given the previous changes to `bin/pandoc-wrapper.sh` and other recent
commits and recent pull requests, the were were **NO** changes to
any HTML files.  This is a **good thing** as the expression goes.

No there are no leading tabs in any markdown files.
A check to catch any re-introduction of leading tabs
into any markdown file is on the way.

BTW: We do not have anything against leading tabs in files,
even though we have had to deal with their impact on forming
HTML from markdown files (as well as the calc source code).
It is just that this is one of those cases where tabs conflict
(sometimes caused by people wanting to change the classic
8-space tab model) with a desired outcome.

Perform `make www` to perform the above and test under macOS.
2024-06-24 11:57:35 -07:00
Landon Curt Noll 20d0b2a8d4 improve references to IOCCC rules and IOCCC guidelines
Each individual IOCCC rule has its own div tag.

References to a specific IOCCC rule is now a link.

We now use the term **IOCCC rules** more consistency when
referring to the rules.

We now use the term **IOCCC guidelines** more consistency when
referring to the guidelines.

In the **IOCCC guidelines**, we use _guideline_ when
referring to a general guideline.

Updated  **IOCCC rules** and  **IOCCC guidelines** to 2024-06-23-v28.

Added guidelines about the recent Rule 2a changes.

Improved to order of the guidelines related to Rule 2.

Added a ">" formatted quote about the iocccsize summary to the IOCCC guidelines.

Perform `make www` to perform the above and test under macOS.
2024-06-23 13:51:40 -07:00
Landon Curt Noll 02c0cd30af update the (we forgot to add) the next/rules.html too 2024-06-23 12:39:14 -07:00
Landon Curt Noll 5c2733bc24 fix rule 2a to be consistent with the FAQ :) 2024-06-23 12:38:22 -07:00
Landon Curt Noll af05374a19 change to bugs.html (again?) due to make www
Didn't this get fixed before .. or is there some deeper
problem going on here?
2024-06-23 12:35:24 -07:00
Landon Curt Noll 71280fc6de fix 1992/westley/README.md
Improve the formatting in `1992/westley/README.md`
and thus the resulting `1992/westley/index.html`.

Corrected a mistake on the use of `./whereami.alt`.

Perform `make www` to perform the above and test under macOS.
2024-06-23 00:13:30 -07:00
Landon Curt Noll e66631b543 convert leading TAB chars into 8 spaces before running pandoc
The `bin/pandoc-wrapper.sh` tool will use `expand(1)` to expand
leading ASCII TAB characters into multiples of 8 ASCII space
characters on all markdown data before piping it into `pandoc(1)`.
Thus, any leading ASCII TAB character in markdown files will be
automatically converted into spaces using 8 character tabs.

Changed `bin/pandoc-wrapper.sh` VERSION from "1.6.3 2024-06-22"
to "1.7 2024-06-22" to preform the above.

Perform `make www` to perform the above and test under macOS.

It turns out that only one other HTML file was impacted: `bugs.html`.
All other leading ASCII tab characters have been rendered
[Mostly Harmless](https://en.wikipedia.org/wiki/Mostly_Harmless).  :)
2024-06-22 23:48:49 -07:00
Landon Curt Noll 2626143532 fix typo in markdown.md 2024-06-22 23:23:22 -07:00
Landon Curt Noll c482321046 fix pandoc-wrapper.sh error code and ,gitignore sort comment
When `bin/pandoc-wrapper.sh` encounters a fatal error, it will
leave behind `debug.input.md` and `debug.output.html`.

Added `debug.input.md` and `debug.output.html` to `.gitignore`.

The `.gitignore` file comment noew refers to `sgi.sh` not sgi.

Changed `bin/pandoc-wrapper.sh` VERSION from "1.6.2 2024-04-18"
to 1.6.3 2024-06-22" to preform the above.

Perform `make www` to perform the above and test under macOS.
2024-06-22 22:46:03 -07:00
Landon Curt Noll 4ee4c731f7 convert markdown copyright TAB chars into SPACE chars
While not strictly necessary, replacing the two ASCII tab characters
in the markdown copyright comment makes it easier to detect problematic
TAB indentation within markdown files.

After this commit, only 90 markdown files have leading ASCII TAB
characters.  And again, while not strictly necessary, we can consider
running expand on those 90 markdown files to see what effect that
might have on the HTML files they produce.

Replace leading ASCII TAB characters with multiples of 8 ASCII SPACE
characters (the default action of the `expand(1)` tool) might have
an negative effect on some HTML formatting where **hack-a-round**
formatting was attempted to fix broken indentation caused by
problematic ASCII TAB characters.

Think of this as a baseline for evaluating leading
TAB characters within markdown files.

TODO: Consider either using `expand(1)` to replace leading ASCII
TAB characters with multiples of 8 ASCII SPACE characters AND/OR
modifying the appropriate `bin` tool to convert leading ASCII TAB
characters into multiples of 8 ASCII SPACE characters.
2024-06-22 22:15:25 -07:00
Landon Curt Noll affbd30553 fix 1992/westley/README.md, warn about TAB intending in markdown.md
One must **NOT** use ASCII TAB characters to intent text.  Down the TAB-ed
road is nothing but trouble!  There are _quasi-solutions_, however those
have side effects that lead to a different set of problems.

The `markdown.md` was updated to ask that text not be intended with ASCII tabs.

See [Please do NOT use ASCII tabs to indent
text](https://ioccc-src.github.io/temp-test-ioccc/markdown.html#markdown.html#please-do-not-specify-a-language-for-a-code-block).

We discovered this awhile ago and fixed it in markdown files.  Sorry
(tm Canada 🇨🇦), we forgot to mention this this in `markdown.md`.

BTW: It took some **deep magic** to be able to show an HTML comment
after a starting fenced markdown code block!  See the **NO_COMMENT=**
line in `bin/md2html.cfg`.  :-)

TODO: Stamp out indenting TABs in markdown files, especially in code blocks.

TODO: Consider a rule to detect problematic ASCII TAB intendation
      within makrkdown files.
2024-06-22 21:38:03 -07:00
Landon Curt Noll 76630fd521 improve look of Rule 6
Used an even more of a hack to format Rule 6 well.

Performed `make www` to test the result.
2024-06-22 09:11:51 -07:00
Landon Curt Noll 9109c81ac9 complete change to rule 6
Performed `make www`.
2024-06-22 09:04:06 -07:00
Landon Curt Noll b84982ad46 fix missing tool debug in bin/gen-status.sh 2024-06-21 22:39:20 -07:00
Landon Curt Noll 3dacba6a44 complete stat fix
The previous commit missed changes related to the LS_TOOL.

Perform `make www` to perform the above and test under macOS.
2024-06-21 22:13:28 -07:00
Landon Curt Noll ccc53f83e5 improved how stat tool is used
Detect were the stat tool is located.  If no stat tool is found,
set `$STAT_TOOL` to `false`.  Cleanup comments related to
determining the modification time of a file.

Changed `bin/gen-sitemap.sh` VERSION from "1.3.8 2024-04-28"
to "1.3.9 2024-06-21".

Changed `bin/gen-status.sh` VERSION from "1.5.2 2024-04-30"
to "1.5.3 2024-06-21".

Perform `make www` to perform the above and test under macOS.
2024-06-21 21:44:23 -07:00
Landon Curt Noll 8fb4edb6f5 change reported by make www 2024-06-21 13:15:28 -07:00
Landon Curt Noll d6d4c1cacb fix errors caught by running make www 2024-06-19 13:26:33 -07:00
Landon Curt Noll 973e15a82f update via make www due to previous pull requests 2024-06-18 12:34:12 -07:00
Landon Curt Noll 8d4f872dfb improve the README.md text that will go away 2024-06-16 08:39:50 -07:00
Landon Curt Noll 6793e2210c fix the case of the work rule, in the rules 2024-06-15 13:57:44 -07:00
Landon Curt Noll b9f4a8e79b improve next rules and guidelines
Changed version from "2024-06-11-v28"
to "2024-06-15-v28'.

Changed all places where a date was used.

Improved the "XXX - date/time is TBD - XXX" message format.

Removed more stuff about tweeting that we no longer do.

Added a few missing | change marks.

As we fixed a rules typo, we went ahead and merged in a few of the
new rules that were pending.
2024-06-15 13:48:15 -07:00
Landon Curt Noll 9b98d02645 fix alignment and HTML bug
Fixed the alignment of an arrow in `markdown.md`.

Fixed an HTML error, caught by `make quick_www`, in `bin/README.md`.
2024-06-15 13:08:25 -07:00