388 Commits
Author SHA1 Message Date
Landon Curt Noll dede0bb7cd improved the h2 title for HTML from markdown other than README.md
For HTML files from markdown files other than README.md, the h2
title now refers to the HTML file instead of the markdown file.

Changed `bin/gen-other-html.sh` VERSION from "1.2.3 2024-04-28"
to "1.2.4 2024-05-31" to perform the above.

Perform `make www` to perform the above and test under macOS.
2024-05-31 18:09:35 -07:00
Cody Boone Ferguson 8bb3d46581 Fix URLs in bin/md2html.sh
There were URLs that linked to https://www.ioccc.org/bin/README.md#foo
but at ioccc.org it will be index.html so the README.md has been changed
to index.html.
2024-05-31 06:42:36 -07:00
Cody Boone Ferguson dc042c12af Typo fix 'entires' to 'entries'
This fix changes bin/status2html.sh, two files in inc/, news.{md,html},
several files in next/, status.html and status.md.
2024-05-29 11:13:27 -07:00
Landon Curt Noll ce662db192 add IOCCC markdown to the About menu 2024-05-28 15:22:22 -07:00
Landon Curt Noll 3f8375e1f2 Merge pull request #2364 from xexyl/more-thanks
More corrections in thanks file
2024-05-27 18:10:37 -07:00
Cody Boone Ferguson 128b8b74c5 Slight improvement to bin/gen-status.sh
Rather than do 'stat' or 'ls' do type -P on the tools and check that
they exist (or that the variables are not empty), exiting with a fatal
error (and exit code 5) if either are empty. The variables are used in
the script instead of the raw or literal 'stat' and 'ls'.
2024-05-27 10:02:22 -07:00
Cody Boone Ferguson 0239463711 Improve bin/gen-authors.sh, rebuild authors.html
Now the is for text is not in italic so that only the letter is in
italics and the word is in a code block but the 'is for' is in normal
text. This looks nicer and makes the letter and the word stand out
better.
2024-05-26 07:33:38 -07:00
Landon Curt Noll 43b3fc07c0 improve the footer of HTML pages
Removed a few blank lines in the Copyright section of all HTML footers.

Perform `make www` to perform the above and test under macOS.
2024-05-24 16:58:59 -07:00
Landon Curt Noll 36ab67dfd3 fix Makefile bugs, improve make help quick_www www, status.html formation
Fixed errors in `1991/davidguy/Makefile`, `2000/bmeyer/Makefile`
and `2012/kang/Makefile` where a multi-line `CSILENCE` make variable
was not properly continued onto the next line.

Improve the output of `make quick_www` and `make www` no be less
verbose and more informative.  Doing this allowed us to uncover
some bugs in the above mentioned entry Makefiles.

The `make quick_www` and `make www` no longer perform a
`make gen_status`.

The `make gen_top_html` rule, via `bin/gen-top-html.sh` will form
`status.html` based solely on the contents of `status.md`.  Only
the `make gen_status` rule will modify `status.md` if needed, and
then rebuild `status.html` if needed.

The `status.html` file was updated to reflect the common way that
`make gen_top_html` forms this file.  The `make timestamp` performs
a `make gen_top_html` after running `make gen_status` so that the
resulting  `status.html` file matches what `make quick_www` and
`make www` would produce.

Changed `bin/gen-top-html.sh` VERSION from "1.4.5 2024-05-19"
to "1.4.6 2024-05-24" to perform the above.

Improved the text written by `make help`.

Added "for $TOOL" to the debug output of `bin/all-run.sh` to
help identify the tool performing the action.

Changed `bin/all-run.sh` VERSION from "1.3.3 2024-04-13"
to "1.3.4 2024-05-24" to perform the above.

Moved `make gen_other_html` after `make entry_index` and after the
`make quick_entry_index` in `make quick_www` and `make www`.

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

Perform `make www` to perform the above and test under macOS.
2024-05-24 16:31:36 -07:00
Landon Curt Noll 128900352a fix HTML typo in authors.html 2024-05-24 11:57:08 -07:00
Landon Curt Noll 194e0adeb6 improve "is for" headers in authors.html
The "letter is for" is now inside HTML italics and
the C keyword is now inside HTML code.

Using lower case letters as the C keywords are
also in lower case and we prefer lower case.

Changed `bin/gen-authors.sh` VERSION from "1.10.2 2024-05-19"
to "1.10.3 2024-05-24" to perform the above.

Perform `make gen_authors` to perform the above.
2024-05-24 11:28:53 -07:00
Landon Curt Noll 69c38e0a48 correctly process non-zero EXIT_CODE, fix 2020/endoh2/README.md
We found cases where pandoc reported a conversion from markdown to
HTML problem that, while reported by the `bin/pandoc-wrapper.sh`
to `bin/md2html.sh`, which in turn reported to error to the tool
calling it, the tool calling `bin/md2html.sh` set `$EXIT_CODE` to
a non-zero value in order to delay the abort but then failed to act
on the non-zero `$EXIT_CODE` value at the end.

In a number of cases when `$EXIT_CODE` was set to non-zero, the
stderr message was labeled as a "Warning" instead of an "ERROR".

Fixed a bug in `bin/gen-authors.sh` that resulted the generation
of invalid markdown/HTML.  An `<hr>` HTML tag inside a `<div>` span
caused pandoc to issue "Div at .. closing implicitly" at the _hr_
HTML tag line.  For some reason, one cannot place a `<hr>`
(horizontal line) inside a `<div ... /div>` span.

Fixed a broken markdown links in `2020/endoh2/README.md` whose error
was hidden by one of the above mentioned problems.

Changed `bin/gen-authors.sh` VERSION from "1.10.1 2024-05-07"
to "1.10.2 2024-05-19" as a result of the above changes.

Changed `bin/gen-location.sh` VERSION from "1.4.1 2024-04-28"
to "1.4.2 2024-05-19" as a result of the above changes.

Changed `bin/gen-top-html.sh` VERSION from "1.4.6 2024-05-05"
to "1.4.5 2024-05-19" as a result of the above changes.

Changed `bin/gen-years.sh` VERSION from "1.3.1 2024-04-28"
to "1.3.2 2024-05-19" as a result of the above changes.

Changed `bin/quick-readme2index.sh` VERSION from "1.1.4 2024-04-13"
to "1.1.5 2024-05-19" as a result of the above changes.

Changed `bin/readme2index.sh` VERSION from "1.2.4 2024-04-14"
to "1.2.5 2024-05-19" as a result of the above changes.

Performed `make www` to test the above under macOS.
2024-05-19 14:15:31 -07:00
Landon Curt Noll 0ea819884e fix minor typos in comments on bin/output-index-author.sh 2024-05-14 13:15:04 -07:00
Landon Curt Noll fe41fdc9dc remove redundant check in readme2index.sh
Changed `bin/readme2index.sh` VERSION from "1.2.3 2024-04-13"
to "1.2.4 2024-04-14".

Ran `make www` to perform test the above under macOS.
2024-05-14 13:06:16 -07:00
Landon Curt Noll ab80984eb9 test again a more compact footer
We fixed an HTML error and improved the use of punctuation
in the footer, including the copyright.

This is a test using `make gen_top_html`.

TODO: If all is well, process `make www`.
2024-05-12 19:24:17 -07:00
Landon Curt Noll 50853863cc test a more compact footer
The footer, including the copyright, is now more compact.

This is a test using `make gen_top_html`.

TODO: If all is well, process `make www`.
2024-05-12 18:59:14 -07:00
Landon Curt Noll 1edbc93d1f test improved inc/footer.default.html
We make better use of the rel HTML attribute.

We format the inc/footer.default.html so that it is a
slightly easier to read.

This is a test using `make gen_top_html`.

TODO: If all is well, process `make www`.
2024-05-12 17:11:59 -07:00
Landon Curt Noll f9055fe356 added link to author handle JSON file in authors.html
Changed `bin/gen-authors.sh` VERSION from "1.10 2024-05-06"
to "1.10.1 2024-05-07".

Ran `make www` to perform test the above under macOS.
2024-05-07 10:00:50 -07:00
Landon Curt Noll 6f07b43cb1 added missing author information to authors.html
The `bin/gen-authors.sh` tool was upgraded to print URLs, alt URLs,
Mastodon, GitHub and affiliation information about authors.

The format for author information in `authors.html` was improved.

Changed `bin/gen-authors.sh` VERSION from "1.9.1 2024-04-28"
to "1.10 2024-05-06".

Ran `make www` to perform test the above under macOS.
2024-05-06 16:09:59 -07:00
Cody Boone Ferguson 8a55349783 Update version & usage string in gen-top-html.sh
This is for the previous commit that allows one to specify select files
to rebuild (if in the allowed set).
2024-05-05 08:44:04 -07:00
Cody Boone Ferguson b6a47803b2 Improve bin/gen-top-html.sh
It is now possible to specify select files to generate like the comment
at the top suggested (but was not actually allowed). This is useful
rarely but there is a case for it and that has been updated and it runs
a fair bit quicker now.

It is an error if no files specified are in the allowed set (the
variable TOP_MD_SET). If at least one file specified is in TOP_MD_SET it
will process that or those files but it will skip any that are not. This
is to prevent trying to process other markdown files like README.md
files without the proper script.
2024-05-05 08:38:51 -07:00
Landon Curt Noll 1d5fcc04a7 fix makrdown links to HTML files that use a %%TOKEN%% 2024-05-04 16:56:51 -07:00
Landon Curt Noll b1516f0ed9 fix non-indented markdown code blocks
We have fixed cases where markdown code blocks were not properly intended.

Updated `markdown.md` to discuss how markdown code blocks should be indented
and how blank lines should follow a markdown code block.

We used this shell script to find problematic code blocks:

```sh
find . -name '*.md' ! -name markdown.md -print | xargs pcregrep -M '^``.*\n[^|`\n \t]'
```

Ran `make www` to perform the above.
2024-04-30 17:24:50 -07:00
Landon Curt Noll a507a06076 fixed conflict between make gen_status and make gen_top_html
The `bin/gen-status.sh` will report that the given markdown file
(`next/rules.md` or `next/guidelines.md`) is the source of the
generated HTML file.  This is so that the HTML produced by either
`make gen_status` or `make gen_top_html` will generated the same
HTML comments.  Moreover the comments in `next/rules.html` and
`next/guidelines.html` refer to the markdown file as the source of
the information instead of a tool such as `bin/gen-status.sh`.

Changed `bin/gen-status.sh` VERSION from "1.5.1 2024-04-28"
to "1.5.2 2024-04-30".

Added news for 2024-04-30 into `news.md`.

Make news dates "less shouty".

Ran `make www` to perform the above.
2024-04-30 16:03:42 -07:00
Landon Curt Noll 62781ae6fc fix HTML 5 info notes related to hamburger-icon images 2024-04-29 14:34:56 -07:00
Landon Curt Noll 3603ad2d54 fix comment in bin/find-missing-links.sh
Removed a stray comment in the block of comments about regular expressions that was left behind during a previous edit.
2024-04-29 06:34:38 -07:00
Landon Curt Noll d70e7e410a fix broken markdown local links in bin/README.md
Ran `make gen_top_html` to perform the above.
2024-04-28 14:54:38 -07:00
Landon Curt Noll b3afeeaddd improve tmp filenames in bin tools
Temporary files are now of the form:

```
export TMP_AB_CD=".tmp.NAME.AB_CD.$$.tmp"
```

Where `NAME` is the basename of the script, and `AB_CD` is the
part of the exported variable name after the "TMP_".

This will help avoid bugs such as that
commit c7dc9a9f6b had to fix.

Added `.tmp.*` to the top level `.gitignore` file.

Changed `bin/chk-entry.sh` VERSION from "1.1.6 2024-04-13"
to "1.1.7 2024-04-28".

Changed `bin/gen-authors.sh` VERSION from "1.9 2024-04-21"
to "1.9.1 2024-04-28".

Changed `bin/gen-location.sh` VERSION from "1.4 2024-04-21"
to "1.4.1 2024-04-28".

Changed `bin/gen-other-html.sh` VERSION from "1.2.2 2024-04-21"
to "1.2.3 2024-04-28".

Changed `bin/gen-sitemap.sh` VERSION from "1.3.7 2024-04-14"
to "1.3.8 2024-04-28".

Changed `bin/gen-status.sh` VERSION from "1.5 2024-04-22"
to "1.5.1 2024-04-28".

Changed `bin/gen-years.sh` VERSION from "1.3 2024-04-21"
to "1.3.1 2024-04-28".

Changed `bin/md2html.sh` VERSION from "1.5 2024-04-20"
to "1.5.1 2024-04-28".

Changed `bin/output-index-author.sh` VERSION from "1.7 2024-04-15"
to "1.7.1 2024-04-28".

Changed `bin/output-index-inventory.sh` VERSION from "1.4 2024-04-21"
to "1.4.1 2024-04-28".

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

Changed `bin/sort.gitignore.sh` VERSION from "1.1.6 2024-04-13"
to "1.1.7 2024-04-28".

Changed `bin/status2html.sh` VERSION from "1.4 2024-04-18"
to "1.4.1 2024-04-28".

Changed `bin/tar-entry.sh` VERSION from "1.3.5 2024-04-13"
to "1.3.6 2024-04-28".

Changed `bin/tar-year.sh` VERSION from "1.2.3 2024-04-13"
to "1.2.4 2024-04-28".

Ran `make www` to perform test the above under macOS.
2024-04-28 14:32:45 -07:00
Landon Curt Noll c7dc9a9f6b fix bin/find-missing-links.sh to not report itself
The `bin/find-missing-links.sh` tool was reporting its own errors.

There is now only "86 missing link(s) found".

Change `bin/find-missing-links.sh` VERSION from "1.1 2024-04-28"
to "1.1.1 2024-04-28".
2024-04-28 13:35:14 -07:00
Landon Curt Noll 6491c061b7 change bin/find-missing-links.sh to print topdir relative paths
The `bin/find-missing-links.sh` tool now will print missing
files relative to "topdir", the root of the git repo.

Changed `bin/find-missing-links.sh` VERSION from "1.0 2024-04-28"
to "1.1 2024-04-28".
2024-04-28 12:57:02 -07:00
Cody Boone Ferguson e7ba31537e Typo fix in bin/find-missing-links.sh 2024-04-28 08:29:41 -07:00
Landon Curt Noll 217836e33f fix even more broken markdown links
Added `bin/find-missing-links.sh` tool to check for
markdown links to missing local files.

Regarding the missing link tool:

```
    Here be extended regular expression magic dragons! :-)
```

Added `make find_missing_links` to the top level Makefile.

Added `make find_missing_links` to `make www` and `make quick_www`.

Ran `make www` to perform the above.

TODO: Fix markdown links to missing local files.
2024-04-28 01:08:21 -07:00
Landon Curt Noll 4f95e3f3d6 fix more broken markdown links
We fix more markdown links in markdown files that refer to files
internally to the web site.

Added tmp tools to find and print various markdown links:

* `tmp/md-links.sh` - print all markdown links
* `tmp/md-token-links.sh` - print all markdown links that start with a **%%TOKEN%%**
* `tmp/md-local-links.sh` - print all markdown links to a local file
* `tmp/md-link-paths.sh` - print local file paths referenced in markdown links

Fixed a number of markdown formatting problems with `thanks-for-help.md`.
Fixed markdown links to files in `thanks-for-help.md`.  Improved
heading levels in `thanks-for-help.md`, and made entry sections consistent.

Changed all markdown links that end in "))" to end in a better way.

Explained in `markdown.md` why we are avoiding markdown links that
end in "))".

Ran `make www` to perform the above.

TODO: Fix stuff we broke by mistake doing the above.

TODO: Fix more broken markdown links.
2024-04-26 04:17:20 -07:00
Cody Boone Ferguson a02ada3f3a Fix stray and bogus file 'z' after make www
The problem is that bin/md2html.sh had the line:

	cp "$TMP_STRIPPED_MD" z

It did not use the file and it did not delete it either.
2024-04-25 07:33:41 -07:00
Landon Curt Noll bd63d57cb5 improve topbar for non-JavaScript and fix some internal links
For browsers that have JavaScript disabled, topbar puts up
a link that reads "Please Enable JavaScript" instead of the
so-called "hamburger menu" icon.

Fixed a number of internal links that were broken
when by commit `e7d69bc23270e8ad73d391d15d4c996ffbd33cc3 and
perhaps a few other earlier commits.

Ran `make www` to perform the above.
2024-04-24 22:55:35 -07:00
Landon Curt Noll b84f8cbe28 improve topbar
The icons used to show the menu open (`png/hamburger-icon-open.png`)
and closed (`png/hamburger-icon-closed.png`) have been added.

Changed `inc/topbar.default.html` to use the png icons instead
of a svg file.

A new page `nojs-menu.html` has been added for when
JavaScript is disabled.

Changed `bin/gen-top-html.sh` VERSION from to "1.4.4 2024-04-21"
to "1.4.5 2024-04-23".

Sorted top sections in `inc/md2html.cfg` and added
a section for `nojs-menu.md`.

Fixed `ioccc.css` so that the topbar and related pulldown
menus had the correct background colour.

Ran `make www` to perform the above.

TODO: Detect when JavaScript is disabled and display:

		Please
		Enable
	      JavaScript

      As a link to the new `nojs-menu.html` page.

TODO: Fix a problem on wide screens where some of
      the righthand edge pulldown menus are cutoff.

TODO: Fix the 5 HTML 5 errors introduced by the topbar code.
2024-04-23 23:47:03 -07:00
Landon Curt Noll afaa8aad3a fix font colors, and link udnerlines 2024-04-23 17:32:11 -07:00
Landon Curt Noll f226b7d65e fix topbar menu links 2024-04-23 15:56:19 -07:00
Landon Curt Noll 1878ea0f72 fix topbar menu items
Improved the topbar menu set.

Fixed broken links from the topbar.

Removed "Click this" (for now?).

Ran `make www` to perform the above.
2024-04-23 15:07:14 -07:00
Landon Curt Noll 97f6da1247 fix topbar to work on mobile devices
The topbar, by way of JavaScript, now works
on mobile devices such as cell phones and
tablets.

Internal links for entries from 1984 thru 2015
have been adjusted.

Ran `make www` to perform the above.

TODO: Fix some color issues on topbar.

TODO: More testing!
2024-04-22 15:05:59 -07:00
Landon Curt Noll 3ac0fb4f61 fix IOCCC rules and guidelines web pages
Fix the Nu html check URL for `next/rules.html` and `next/guidelines.html`.

Restore building `next/rules.html` and `next/guidelines.html` by
`bin/gen-top-html.sh` and `make gen_top_html`.  Also `make gen_status`
will rebuild these files if `status.json` changes or `news.html`
was modified.

Add cross links between  `next/rules.html` and `next/guidelines.html`.

Changed `bin/gen-top-html.sh` VERSION from "1.4.3 2024-04-21"
to "1.4.4 2024-04-21".

Ran `make gen_top_html gen_status` to perform the above.
2024-04-22 00:22:56 -07:00
Landon Curt Noll 8b1a0f4056 fix Nu html check URLs in rules and guidelines
Fix the Nu html check URL for `next/rules.html` and `next/guidelines.html`,

Changed `bin/gen-status.sh` VERSION from "1.4 2024-04-21"
to "1.5 2024-04-22".

Ran `make gen_status` to perform the above.
2024-04-22 00:10:19 -07:00
Landon Curt Noll 413c05b16f fix bug in bin/gen-other-html.sh
Fixed a big where the wrong shell variable for the HTML file was used.

Changed `bin/gen-other-html.sh` VERSION from "1.2.1 2024-04-21"
to "1.2.2 2024-04-21".

Ran `make gen_other_html` to perform the above.
2024-04-21 23:31:55 -07:00
Landon Curt Noll 5ed453970d fix Nu HTML check links for other entry HTML files
Testing another fix for **Nu HTML check this web page**
for constructed entry pages that are not `index.html`.

Changed `bin/gen-other-html.sh` VERSION from "1.2 2024-04-21".
to "1.2.1 2024-04-21".

Ran `make gen_other_html` to perform the above.
2024-04-21 20:48:52 -07:00
Landon Curt Noll 4d8d5cabce fix Nu HTML check links for other entry HTML files
Testing a fix for **Nu HTML check this web page**
for constructed entry pages that are not `index.html`.

Changed `bin/gen-other-html.sh` VERSION from "1.1 2024-04-20"
to "1.2 2024-04-21".

Ran `make gen_other_html` to perform the above.
2024-04-21 20:45:01 -07:00
Landon Curt Noll 95041b429c change inventory layout for year level index.html files
The "Jump to top" in the inventory section of an entry index.html file
now is below the secondary file list, with a short line above it.

Changed `bin/output-year-index.sh` VERSION from "1.3 2024-04-15"
to "1.4 2024-04-21".

Run `make gen_year_index` to perform the above.
2024-04-21 18:07:14 -07:00
Landon Curt Noll c6c8c06ae6 improve layout of 1984/laman/index.html
Fixed code block.

Run `bin/readme2index.sh -v 1 1984/laman` to perform the above.
2024-04-21 17:57:58 -07:00
Landon Curt Noll d71de68c68 add entry_id links all entries listed in years.html
All entries listed in `years.html` now have a link
so that historic links to _years.html#entry_id_ will work.

**IMPORTANT NOTE**: We do this for backward compatibility only.
When linking to an entry, it is **much better and more useful**
to link to _YYYY/dir/index.html_ instead.

Changed `bin/gen-years.sh` VERSION from "1.2 2024-04-15"
to "1.3 2024-04-21".

Run `make gen_years` to perform the above.
2024-04-21 17:43:05 -07:00
Landon Curt Noll 521a852e24 improve news.html and mastodon info
Added "2024-04-20" news update.

Fixed format for "2023-05-22" news.

Fixed bad links to `judges.html`.

Add "Jump to: top" near the bottom.

The `make gen_top_html` no longer builds `next/rules.html`
nor `next/guidelines.html`.  This is being done by
the `bin/gen-status.sh` tool and `make gen_status`.

Moved `make gen_top_html` after `make gen_status` in the top level
Makefile rules for `make www` and `make quick_www` because
`bin/gen-status.sh` uses the modification date of `news.html` (that
make gen_top_html might modify) when forming `status.json`.

Added FAQ 6.12 for "What is Mastodon and why does IOCCC use it?".

Simplified `contact.html` mastodon info to refer the above FAQ
for further mastodon information.

Changed `bin/gen-top-html.sh` VERSION from "1.4.2 2024-04-21"
to "1.4.3 2024-04-21".

The `bin/gen-status.sh` tool will build `next/rules.html` and/or
`next/guidelines.html` if they are missing or empty.

Changed `bin/gen-status.sh` VERSION from "1.3 2024-04-14"
to "1.4 2024-04-21".

Run `make gen_top_html gen_status` to perform the above.
2024-04-21 15:32:04 -07:00
Landon Curt Noll 93d32d32e0 improve location.html
Add request for help for the "ZZ - Unknown location" authors.

Add "Jump to: top" near the bottom.

Changed `bin/gen-location.sh` VERSION from to "1.3 2024-04-16"
to "1.4 2024-04-21".

Improved FAQ 5.5, asking for help for ZZ location authors
and making better references to FAQ 6.10 about pull requests.

Run `make gen_location gen_top_html` to perform the above.
2024-04-21 14:00:12 -07:00