126 Commits
Author SHA1 Message Date
Landon Curt Noll e916f1e207 remove redundant set of TOPDIR in inc/pandoc_wrapper.sh 2023-12-31 17:25:20 -08:00
Landon Curt Noll 56ea5604db improve help message
Set select variables ahead of USAGE so that the
help message contains certain default values.

Added -u repo_url to `tmp/readme2index.sh` and `inc/pandoc_wrapper.sh` for
 the URL of the final target repo from where HTML files will be viewed.

Add missing Copyright to `inc/pandoc_wrapper.sh`.

Require a `.winner.json` under _yyyy/dir_.

Change `tmp/readme2index.sh` VERSION from "0.3 2023-12-31"
to "0.4 2023-12-31".

Change `inc/pandoc_wrapper.sh` VERSION from "1.0 2023-12-29"
to "1.2 2023-12-31".

Improve the parameter debugging under -v 3.

Fixed various typos.
2023-12-31 17:16:02 -08:00
Landon Curt Noll 8f1921565b further improve readme2index.sh help message
The '-p tool' and '-P optstr' will be passed as leading options on the
-b tool and -a tool command lines, not to the '-o tool' command lines.

Improve help text for readme2index.sh.

The `inc/md2html.cfg` file was updated so that the comment
about options matches the `readme2index.sh` tool usage message.
2023-12-31 14:08:45 -08:00
Landon Curt Noll e31c12c0eb improve readme2index.sh option checking, explain restrictions
The `readme2index.sh` tool does a more consistent job of checking
options in the help message and reporting when something violates
a restriction.

In many cases the parameters (_$OPTARG_) of an option is not allowed
to contain a single-quote, nor a double-quote.  We prevent use of
single-quotes and double-quotes in cases where passing such to other
tools may create a problem.

There are a few exceptions to the above mention "single-quote /
double-quote" restrictions.  For example, the "-s token=value" does
NOT have such a restriction.  In the case of  "-s token=value", we
can allow for the single-quotes and double-quotes because the ;
(semicolon) is used as a regex separator instead.

We also better explain the cumulative nature of "-s token=value".

Some help message wording cleanup was performed.

The `inc/md2html.cfg` file was updated so that the comment
about options matches the `readme2index.sh` tool usage message.
2023-12-31 13:30:13 -08:00
Landon Curt Noll e9662ea6be add -p tool and -P optstr as leading options to other tools
Add -p tool and -P optstr' at leading options when calling
the -b pool, -a tool and/or -o tools.
2023-12-31 11:34:51 -08:00
Cody Boone Ferguson 553436afa3 Typo fix in inc/pandoc_wrapper.sh 2023-12-30 06:51:33 -08:00
Landon Curt Noll 4959411e10 release pandoc wrapper VERSION 1.0 2023-12-29 2023-12-29 23:14:51 -08:00
Landon Curt Noll 87ce00fd0a update help text for -N
With -N, just parse arguments and ignore the file.

Change readme2index.sh version from "0.1 2023-12-10"
to "0.2 2023-12-29".  The previous change in
commit d5c4171d73
forgot to update the version number.
2023-12-29 22:55:31 -08:00
Landon Curt Noll d5c4171d73 checkpoint on tmp/readme2index.sh
The `tmp/sample_getopt.sh` is now `tmp/readme2index.sh`, a tool
that goes thru the motions of multi-phase getopt processing, scanning
the `inc/md2html.cfg` for the first match, and calls various stub tools.

The `inc/md2html.cfg` has been improved to document a cleaner getopt
phase model.
2023-12-29 20:55:35 -08:00
Landon Curt Noll d61a039ea7 update md2html.cfg to use paths that do NOT start with / 2023-12-28 21:44:15 -08:00
Landon Curt Noll a4bd2fff67 add sample 3 phase parse command line parse
Adjusted `inc/md2html.cfg` to improve the 3 phase parse process.

Added `tmp/sample_getopt.sh` as a demo of the 3 phase parse of command
line options and arguments for that a markdown to HTML tool that
uses the `inc/md2html.cfg` configuration file.

Try:

```sh
cd tmp
./sample_getopt.sh -v 3 foo
```

The `tmp/sample_getopt.sh` tool performs a somewhat complicated 3
phase getopt parse of simulated command line options and arguments
that a tool converting markdown to HTML and using the `inc/md2html.cfg`
configuration file would perform.  The tool does not actually use
the  `inc/md2html.cfg`, it just simulates the complex 3 phase getopt
parsing procedure.

Updated `tmp/README.md` accordingly.
2023-12-18 00:30:11 -08:00
Landon Curt Noll 71e84553cc use single-quotes in md2html.cfg comments
Using single-quotes in md2html.cfg comments will make it easier to
include some of that information in the any usage string, or
related documentation.
2023-12-10 20:56:11 -08:00
Landon Curt Noll f16ff5bcfe improve even more, the md2html.cfg design and option doc 2023-12-10 20:52:58 -08:00
Landon Curt Noll aeeb078d01 improve md2html.cfg design and option documentation 2023-12-10 19:49:24 -08:00
Landon Curt Noll b86dcc7ba2 improve md2html.cfg design, option documentation, file_glob list 2023-12-10 17:47:25 -08:00
Landon Curt Noll c7efbfa884 Update README.md
Fix HTML typos.
2023-12-10 13:21:01 -08:00
Landon Curt Noll ff6b30442d Update inc/README.md
Fix typo.
2023-12-10 13:18:55 -08:00
Cody Boone Ferguson bfdb56584f Fix references to thanks-for-fixes -> help
As the thanks-for-fixes.md file was renamed (at my suggestion)
thanks-for-help.md I have made sure that the file referred to in the
repo is thanks-for-help and that the text regarding it also refers to
help and not fixes ('Thanks for the fixes' -> 'Thanks for the help').
2023-12-08 04:02:28 -08:00
Landon Curt Noll 0c6628d667 moved and improved thanks
Moved thanks-for-fixes.md -> thanks-for-help.md

References to thanks-for-help.md are referred to
as just the _thanks file_.

Updated links to reflect the above file change.

Links to winner files in bugs.md now start with /.

Updated the `/inc/sidenav.default.html` file
to use an improved sidenav menu that includes
a link to "How to enter the IOCCC".

Fixed reference to FAQ entry regarding 'gets()' in `bugs.md`.

Removed some trailing whitespace in `bugs.md`.
Removed some trailing whitespace in `faq.md`.

Fixed links into specific thanks file entries.

Added more info to FAQ 0.0 "How may I submit to the IOCCC?".

The temporary top level HTML files (contact.html, index.html,
judges.html, news.html, winners.html, years.html) have
a consistent set of links (w/o any bold links) that
match the revised `/inc/sidenav.default.html` sidenav menu.
These temporary top level HTML files are not yet being built
and so they do not yet use the `inc/*.html` system.

TODO: Turn contact.html, index.html, judges.html, news.html, winners.html,
and years.html into markdown files that markdown to HTML tools will generate.
2023-12-07 17:43:37 -08:00
Cody Boone Ferguson 67c326b819 Minor typos/fixes in inc/README.md 2023-12-05 08:23:15 -08:00
Landon Curt Noll cc53c16523 improve consistency of command line options in inc/md2html.cfg
Specifying a tool path of "." (dot) disables the tool for a given file.
Specifying a HTML phase name of "." (dot) disables the given HTML phase.

Improve configuration for winner level README.md files.

Made a few minor formatting improvements to inc/md2html.cfg and inc/README.md.
2023-12-05 02:04:14 -08:00
Landon Curt Noll 8293980298 checkpoint add initial inc/md2html.cfg file
Adjust HTML phase names and filenames under inc.

Improve phase documentation in inc/README.md.

Added inc/md2html.cfg as an initial markdown to HTML configuration
file.  The inc/md2html.cfg file is undergoing design evaluation and
thus may change.  Nevertheless the comments in inc/md2html.cfg give
some hints as to how HTML files will be formed from markdown files.
2023-12-05 01:29:05 -08:00
Landon Curt Noll 654d3084f0 update README.md
Added more information about the use of the [md2html config file](/inc/md2html.cfg) file.
2023-12-04 11:35:57 -07:00
Landon Curt Noll fdfe84dbd5 Update README.md
Add use of topnav.default.html
2023-12-04 11:06:35 -07:00
Landon Curt Noll d92f217e7e Update README.md
Use *.none.html to disable a build phase.  Change the name of the html configuration file. Other minor clarifications.
2023-12-04 11:00:30 -07:00
Landon Curt Noll 49bd63d363 checkpoint initial inc content
Details of how this content will be used is found in part,
in the `/inc/README.md` file and in part in the tools that
will use this content.

The content of this directory will likely change soon.
This content is a placeholder.
2023-12-03 15:48:13 -08:00