Commit Graph
331 Commits
Author SHA1 Message Date
Landon Curt Noll d0d7edd6ca install 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.

Ran `make www` to perform test the above under macOS.
2024-05-12 17:21:49 -07:00
Landon Curt Noll e86d0b83a2 fix markdown links to .png files that use a %%TOKEN%% 2024-05-04 17:17:30 -07:00
Landon Curt Noll 1d5fcc04a7 fix makrdown links to HTML files that use a %%TOKEN%% 2024-05-04 16:56:51 -07:00
Cody Boone Ferguson cb8d8924a7 Improve links to bugs.html in README.md files
In other words rather than have the link name in the form of:

    1984 decot bugs

it is now:

    1984/decot in bugs.html

so that it matches how the entry itself looks (as in how it's
identified) and to say where (what file) it is (in). The reason it says
'in bugs.html' rather than 'bugs' (saying that the entry has bugs) is
because not all are bugs and it's saying where to see it anyway. But
some are features, others are missing links or files or other things
like that and to keep the same form it now says 'in bugs.html'.

This was done with my sgit(1) tool like:

    sgit -e 's,\([0-9][0-9][0-9][0-9]\) \([-a-z\.0-9]*\) bugs,\1/\2 in bugs.html,g' '*/*md'

The link to bugs.html itself has the path '../../bugs.html'. This is
important as it's meant to be rendered in the browser. At first this was
not remembered and I did something like:

    sgit -e 's,\[\([0-9][0-9][0-9][0-9]\) \([-a-z\.0-9]*\) bugs\](../../bugs.html,\[\1/\2 in bugs.html\](%%REPO_URL%%/bugs.html,g' '*/*md'

but this was changed to the simpler one due to the problem described
above. It's worth putting this note here as a reminder, though, so I
have included it here.
2024-05-04 09:21:09 -07:00
Cody Boone Ferguson d2bbc264e1 Consistency and other fixes in manifest
As the index.html/README.md files say 'Alternate code' the 'alternative
source' has been changed to 'alternate code'. Similarly the text 'script
to try alternative code' was changed to 'script to try alternate code'.

A mistake was made where something referred to as being the alt code was
not the alt code (or the other way round).

Changed 'alternate alternative code' (or something like that) to 'second
alternate code'. This happened in steps and it might not, now that I
think on it, be the best wording, but this can be addressed later.

Rebuilt html files and .entry.json files.
2024-05-03 08:04:18 -07:00
Cody Boone Ferguson 5d668baaa5 Several manifest updates
Changed 'description of entry in JSON' to 'entry summary and manifest in
JSON'.

Changed 'how to run' (for try scripts) to 'script to try entry'.

Changed 'how to run if you have the primes utility' to 'script to try
entry if you have the primes utility'.

Changed 'how to run alternative code' to 'script to try alternative
code'.

A number of other more specific (to particular entries or maybe even a
single entry, 2019/ciura if not any others) descriptions were also
changed.

Rebuilt index.html and .entry.json files.
2024-05-01 09:53:30 -07:00
Cody Boone Ferguson 5ee597d84c update index.html and .entry.json per recent manifest changes 2024-05-01 08:57:06 -07:00
Cody Boone Ferguson 580e766483 Rebuilt 2018/ferguson/FILES.html 2024-05-01 08:56:41 -07:00
Cody Boone Ferguson bef8ec4a6c update .entry.json files per recent manifest changes 2024-05-01 08:54:55 -07:00
Cody Boone Ferguson 246d4fbe4d Add top link & copyright to 2018/ferguson/FILES.md
The html file will be rebuilt in another commit.
2024-05-01 08:54:05 -07:00
Cody Boone Ferguson f5f72ac9a8 Change 2018/ferguson/FILES to markdown
Built html file, removed FILES itself. Manifest update coming up.
2024-05-01 08:44:47 -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 54388ee72d fix HTML errors in 2018/yang/spoiler.html 2024-04-29 20:49:01 -07:00
Landon Curt Noll 99c486ced8 fix HTML errors in 2018/yang/spoiler.html and 2019/yang/spoiler.html 2024-04-29 20:41:51 -07:00
Landon Curt Noll 6be21269e0 fix HTML errors in 2018/yang/spoiler.html 2024-04-29 20:38:27 -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 1001d60a3a fix broken markdown local links in 2018/burton2/README.md
Ran `bin/readme2index.sh -v 1 2018/burton2` to perform the above.
2024-04-29 09:32:13 -07:00
Landon Curt Noll fc9ef72023 fix broken markdown local links in 2018/README.md
Ran `make gen_year_index` to perform the above.
2024-04-28 15:08:11 -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 8bca099534 fix more broken markdown links
Fixed stuff we broke by mistake, previously.

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 16:25:17 -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
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 e9717e6a48 checkpoint on fixing topbar for non-JavaScript browsers 2024-04-24 22:42:06 -07:00
Landon Curt Noll e7d69bc232 fix many internal links
Fixed a number of internal links that need to
go to the GitHub site.

Ran `make www` to perform the above.
2024-04-24 02:37:42 -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 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 37606f2f6b update other entry HTML files
Ran `make gen_other_html` to perform the above.
2024-04-21 21:09:03 -07:00
Landon Curt Noll 0eb5e37c12 add Jump to top links to other entry HTML files
Add short line and Jump to top links to other entry HTML files.

Ran `make gen_other_html` to perform the above.
2024-04-21 21:07:41 -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 83a24fd01f change years.html#entry_id links to entry's index.html page 2024-04-21 17:11:14 -07:00
Landon Curt Noll ab95fdcfb5 improve code block in 2018/README.md 2024-04-21 16:41:03 -07:00
Landon Curt Noll c76ef41ce0 fix invalid markdown code blocks
For `1984/anonymous/README.md` and `2018/burton2/README.md`
a missing backquote for a markdown code block was added.

Run `make www` to perform the above.
2024-04-21 16:27:20 -07:00
Landon Curt Noll 931ff6e635 fix broken internal URLs in 2018/index.html and 2020/index.html 2024-04-21 15:16:45 -07:00
Landon Curt Noll ccdd8133ed remove name name attributes in 2018/ferguson/README.md 2024-04-21 00:52:21 -07:00
Landon Curt Noll a9ca93ec47 fix markdown footnote problem caused by pandoc
Add "<!-- BEFORE: 1st line of markdown file: FILE/PATH -->"
before the markdown content.  This line appears in the
generated HTML.

Add "<!-- AFTER: last line of markdown file: FILE/PATH -->"
after the markdown content.  This line appears in the
generated HTML.

We test a fix relating to problems produced by `pandoc(1)`
when footnotes are added at the end of generated HTML.
This test is made for `2000/bmeyer/index.html`.

Fixed exit 4 in `bin/md2html.sh that should be exit 5.

Changed `bin/md2html.sh` VERSION from to "1.3 2024-04-14"
to "1.4 2024-04-18".

Run `bin/readme2index.sh -v 1 2000/bmeyer` to perform the above.
2024-04-19 01:20:31 -07:00
Landon Curt Noll 50f55b4c6a fix HTML problems associated with leading ---'s
Please do not use "**---**" in markdown lines to separate sections.

This causes `pandoc(1)` to generate "**\<hr />**".

The "**\<hr />**" has no effect in standard HTML 5 and interacts
badly with unquoted attribute values.

If a horizontal line is really needed, use "**\<hr>**".

If a short line is needed, use: "**\<hr
style="width:10%;text-align:left;margin-left:0">**"
2024-04-18 17:50:33 -07:00
Landon Curt Noll fb0ce53930 add checkmark to the narbar of all constructed HTML
We added a checkmark all narbar's that has the make effect of
clicking on the **Nu HTML check this web page** link at the very
bottom.  This makes it much more convenient when one needs
to quickly check the HTML of a number of web pages.

Run `make www` to perform the above.
2024-04-18 17:06:30 -07:00
Landon Curt Noll e695c5cf03 replace old ASCII > style with markdown code blocks 2024-04-17 00:45:05 -07:00
Landon Curt Noll 4c3649a3c1 fix problematic HTML caused by certain trailing backslashes
In cases that are **outside of a markdown code block**,
a markdown line with ending in a tailing "\" can generate
problematic HTML.

We certain trailing backslashes outside of a markdown code block
with "<br>" HTML elements, or in some cases eliminated the
need for a trailing backslash.

In a few cases some unnecessary trailing backslashes inside
of a markdown code block were removed.

The following markdown files were changed in this commit:

```
1990/dds/README.md
1990/jaw/README.md
1991/ant/README.md
1991/rince/README.md
1991/westley/README.md
1992/vern/README.md
1992/westley/README.md
1998/schweikh1/README.md
2004/anonymous/README.md
2005/sykes/README.md
2006/toledo2/README.md
2011/toledo/README.md
2012/endoh2/README.md
2012/tromp/README.md
2013/robison/README.md
2015/hou/README.md
2015/howe/README.md
2015/schweikhardt/README.md
2018/burton1/README.md
2018/burton2/README.md
2018/ferguson/README.md
2018/vokes/README.md
2020/ferguson1/README.md
```

Performed `make www` to test these changes.
2024-04-17 00:25:09 -07:00
Landon Curt Noll 1eed473049 fix Nu HTML check URLs for year level index.html
Fixed the "Nu HTML check this web page" for _YYYY/index.html_ files.

Changed `bin/gen-top-html.sh` VERSION from to "1.4 2024-04-15"
to "1.4.1 2024-04-16".

Changed `bin/gen-year-index.sh` VERSION from to "1.0.7 2024-04-14"
to "1.1 2024-04-16".

Run `make www` to perform the above and test under macOS.
2024-04-16 18:30:34 -07:00
Landon Curt Noll c5848302e8 add new topbar, improve the look & feel of web pages
Thank you, @chris-sab, for your excellent work and for helping us
commit this alpha version of the topbar.

As part of this work, the following HTML sections were removed:

* begin-row
* begin-leftcolumn
* sidenav
* end-leftcolumn
* begin-rightcolumn
* before-content
* end-rightcolumn
* end-row.default

Also added a new HTML section, just above the "header" section:

* topbar

The web site now as a more modern looking topbar, thanks to the
work of the contractor (GitHub user @chris-sab) who is working on
issue #2273.

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

TODO: Fix the Responsive Web Design to deal with
      the new topbar system.

TODO: Improve the topbar.  What is there now is
      just an alpha version.

TODO: Decide what to do with `png/ioccc.png`.
      Remove it make selective use of the image on certain top level
      pages lower down?

TODO: The changes to `ioccc.css` causes some
      formatting problems with pages such as `location.html` (missing
      blank lines).  Fix formatting problems as needed.

TODO: Fix the "Nu HTML check this web page"
      links on things like the year level _YYYY/index.html_ pages.

TODO: Correct all HTML errors, warnings and perhaps
      informative messages from the Nu HTML check.

TODO: Consider adding color (colour) to the
      web pages in such a way that people with color perception
      challenges can still use the web site.

TODO: For those web browsers that have and allow
      JavaScript, make use of technology such as [Code
      Mirror](https://codemirror.net/) to directly render source
      code (C, shell, Makefile, etc.) with syntax coloring (colouring)
      directly in the browser.  For non-JavaScript browsers, fallback
      to the current use of GitHub source code viewing.
2024-04-16 17:28:39 -07:00
Landon Curt Noll a192eff9b2 rename topnav to navbar
This one of the parts of the change to the [look and feel
change](https://github.com/ioccc-src/temp-test-ioccc/issues/2273#issuecomment-2059754857)
wrote about.

Stay tuned ...
2024-04-16 12:22:49 -07:00
Landon Curt Noll 775acc30ab place entry index.html at the bottom of secondary inventory 2024-04-16 11:07:55 -07:00