build missing HTML files for entries
Setup a simple topnav for missing HTML files for entries. Added `bin/gen-other-html.sh` to build entry HTML files from markdown other than README.md to index.html HTML files. Fixed duplicate link text in `2020/ferguson1/gameplay.md`. Improved `inc/md2html.cfg` to support building the missing HTML files for entries. Added `make gen_other_html` to top level Makefile. Added `make gen_other_html` to `make quick_www` and `make www`. Fixed inventory links for year level index.html files. Changed `bin/output-year-index.sh` VERSION from "1.0.1 2024-02-23" to "1.1 2024-02-27". Added missing lines in `manifest.numbers`. Update the affected `.entry.json` files. The manifest (in both `manifest.numbers` and the collection of manifests from of all entry `.entry.json` files) now match. Errors from `make verify_entry_files` will now abort both `make quick_www` and `make www` rules in the top level `Makefile`. Changed markdown files in manifest to have an _inventory_order_ of _2000000000_ so that the `index.html` file will usually appear at the start of the _Secondary files_ set for the "#inventory" section of an entry's `index.html` file. Changed compressed tar files (files that end in _.tar.bz2_) in manifest to have an _inventory_order_ of _100000_ so that these files will usually appear at the end of the _Primary files_ set for the "#inventory" section of an entry's `index.html` file. Added 'Jump to top` link above the _Primary files_ section. Changed `bin/output-index-inventory.sh` VERSION from "1.1.1 2024-02-23" to "1.2 2024-02-27". Updated HTML files to perform the above via `make www`.
This commit is contained in:
1 parent
7babf792e4
commit
9d3438fb88
718 files changed
+17515
-4084
No files matched your search
@@ -9,14 +9,6 @@
|
||||
{ "author_handle" : "Alex_Deckmyn" }
|
||||
],
|
||||
"manifest" : [
|
||||
{
|
||||
"file_path" : "index.html",
|
||||
"inventory_order" : 10,
|
||||
"OK_to_edit" : false,
|
||||
"display_as" : "html",
|
||||
"display_via_github" : false,
|
||||
"entry_text" : "entry home page"
|
||||
},
|
||||
{
|
||||
"file_path" : "deckmyn.c",
|
||||
"inventory_order" : 20,
|
||||
@@ -81,6 +73,14 @@
|
||||
"display_via_github" : false,
|
||||
"entry_text" : "download entry source"
|
||||
},
|
||||
{
|
||||
"file_path" : "index.html",
|
||||
"inventory_order" : 2000000000,
|
||||
"OK_to_edit" : false,
|
||||
"display_as" : "html",
|
||||
"display_via_github" : false,
|
||||
"entry_text" : "entry home page"
|
||||
},
|
||||
{
|
||||
"file_path" : ".entry.json",
|
||||
"inventory_order" : 4294967295,
|
||||
@@ -119,7 +119,7 @@
|
||||
"OK_to_edit" : true,
|
||||
"display_as" : "markdown",
|
||||
"display_via_github" : true,
|
||||
"entry_text" : "markdown source for design.html"
|
||||
"entry_text" : "markdown source for deckmyn.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!-- START: two lines up starts content from: inc/top.default.html -->
|
||||
<!-- -->
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
|
||||
<!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
|
||||
<!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<!-- -->
|
||||
<!-- END: this line ends content from: inc/top.default.html -->
|
||||
<!-- -->
|
||||
<!-- The original markdown content was formed by the tool: bin/gen-other-html.sh -->
|
||||
<!-- The HTML was converted from markdown by the tool: bin/md2html.sh -->
|
||||
<!-- -->
|
||||
<!-- START: this line starts content from: inc/head.default.html -->
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" href="../../ioccc.css">
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
<title>The International Obfuscated C Code Contest</title>
|
||||
<meta name="description" content="deckmyn.md for 2012/deckmyn">
|
||||
<meta name="keywords" content="IOCCC, 2012/deckmyn, deckmyn.md">
|
||||
</head>
|
||||
|
||||
<!-- END: this line ends content from: inc/head.default.html -->
|
||||
<!-- START: this line starts content from: inc/body.default.html -->
|
||||
|
||||
<body>
|
||||
|
||||
<!-- END: this line ends content from: inc/body.default.html -->
|
||||
<!-- START: this line starts content from: inc/header.default.html -->
|
||||
|
||||
<div class="header">
|
||||
<img src="../../png/ioccc.png" alt="IOCCC image by Matt Zucker" width=300 height=110>
|
||||
<h1>The International Obfuscated C Code Contest</h1>
|
||||
<h2>deckmyn.md for 2012/deckmyn</h2>
|
||||
</div>
|
||||
|
||||
<!-- END: this line ends content from: inc/header.default.html -->
|
||||
<!-- START: this line starts content from: inc/topnav.up2index.html -->
|
||||
|
||||
<div class="topnav">
|
||||
<a class="Left" href="index.html">↑ jump to index.html ↑</a>
|
||||
</div>
|
||||
|
||||
<!-- END: this line ends content from: inc/topnav.up2index.html -->
|
||||
<!-- START: this line starts content from: inc/begin-row.default.html -->
|
||||
|
||||
<div class="row">
|
||||
|
||||
<!-- END: this line ends content from: inc/begin-row.default.html -->
|
||||
<!-- START: this line starts content from: inc/begin-leftcolumn.default.html -->
|
||||
|
||||
<div class="leftcolumn">
|
||||
|
||||
<!-- END: this line ends content from: inc/begin-leftcolumn.default.html -->
|
||||
<!-- START: this line starts content from: inc/sidenav.default.html -->
|
||||
|
||||
<div class="sidenav">
|
||||
<a href="#content">Jump to contents</a>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="sidenav">
|
||||
<a href="../../index.html">IOCCC Home</a>
|
||||
<a href="../../years.html">Winning Entries</a>
|
||||
<a href="../../authors.html">People who have won</a>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="sidenav">
|
||||
<a href="../../news.html">IOCCC News</a>
|
||||
<a href="../../faq.html#submit">How to enter the IOCCC</a>
|
||||
<a href="../../faq.html">FAQ</a>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="sidenav">
|
||||
<a href="../../bugs.html">Bugs & (mis)features</a>
|
||||
<a href="../../faq.html#fix_an_entry">Fixing IOCCC entries</a>
|
||||
<a href="../../faq.html#fix_web_site">Fixing the web site</a>
|
||||
<a href="../../faq.html#fix_author">Fixing author info</a>
|
||||
<a href="../../thanks-for-help.html">Thanks for the help</a>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="sidenav">
|
||||
<a href="../../judges.html">The IOCCC Judges</a>
|
||||
<a href="../../contact.html">Contacting the IOCCC</a>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="sidenav">
|
||||
<a href="#top">Jump to top</a>
|
||||
</div>
|
||||
|
||||
<!-- END: this line ends content from: inc/sidenav.default.html -->
|
||||
<!-- START: this line starts content from: inc/end-leftcolumn.default.html -->
|
||||
|
||||
</div>
|
||||
|
||||
<!-- END: this line ends content from: inc/end-leftcolumn.default.html -->
|
||||
<!-- START: this line starts content from: inc/begin-rightcolumn.default.html -->
|
||||
|
||||
<div class="rightcolumn">
|
||||
|
||||
<!-- END: this line ends content from: inc/begin-rightcolumn.default.html -->
|
||||
<!-- START: this line starts content from: inc/before-content.default.html -->
|
||||
|
||||
<a name="content"></a>
|
||||
|
||||
<!-- END: this line ends content from: inc/before-content.default.html -->
|
||||
<!-- START: this line starts content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||||
|
||||
<h1 id="user-manual">USER MANUAL</h1>
|
||||
<h2 id="calling-the-program">Calling the program</h2>
|
||||
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./deckmyn</span> <span class="st">"</span><span class="kw">`</span><span class="fu">cat</span> deckmyn.c<span class="kw">`</span><span class="st">"</span> <span class="st">"</span><span class="kw">`</span><span class="fu">cat</span> musicfile<span class="kw">`</span><span class="st">"</span> <span class="op">></span> output.pbm</span></code></pre></div>
|
||||
<p>Then display <code>output.pbm</code>.</p>
|
||||
<p>This minimalistic music notator expects two command line arguments.
|
||||
The first is the font description embedded in the source code. Notice
|
||||
that you don’t pass the file name, but the actual content as one long
|
||||
character string! If you want to define your personal music font, you
|
||||
can of course do so. The file layout must be exactly the same as <a
|
||||
href="deckmyn.c">deckmyn.c</a> though, only the locations of space
|
||||
(<code>" "</code>) may differ.</p>
|
||||
<p>The second argument is the actual music. Again it is one long string,
|
||||
not a file name. But it is possible to save your music in a file, of
|
||||
course.</p>
|
||||
<p>Output should be redirected to a file. Afterwards, this file can be
|
||||
visualised with various viewers.</p>
|
||||
<h2 id="music-input">Music input</h2>
|
||||
<p>Every element in the music is given by a string of <em>exactly</em> 3
|
||||
characters. Any violation of this will result in the rest of the music
|
||||
being interpreted in some randomly wrong way. Notice that in a file, the
|
||||
newline is also a character! Therefore, when preparing music in a file,
|
||||
care should be taken that the last musical element of a line is only 2
|
||||
characters!</p>
|
||||
<ol type="1">
|
||||
<li><p>Basic notes: A single note is input by a letter (in the range
|
||||
<code>[A-Ga-g]</code>) followed by a duration (1, 2, 4 or 8) and
|
||||
possibly a dot (<code>.</code>). The notes cover 2 octaves, from
|
||||
<code>C</code> (lowest) to <code>b</code> (highest). The possible
|
||||
durations are 1 (whole note), 2 (half note), 4 (quaver), 8
|
||||
(semi-quaver). So a dotted quaver <code>A</code> followed by a semi
|
||||
quaver <code>G</code> is input as <code>"A4.G8 "</code>.</p></li>
|
||||
<li><p>Rests: A rest is given by the letter <code>r</code> followed by a
|
||||
duration (1, 2, 4 or 8).</p></li>
|
||||
<li><p>Bar lines: There are three possible bar line types: single
|
||||
(<code>": "</code>), double (<code>":: "</code>) and final
|
||||
(<code>":; "</code>).</p></li>
|
||||
<li><p>Accidentals: Chromatic changes (sharp, flat, natural) are entered
|
||||
separately from the note that follows them! They are a three-character
|
||||
sequence by themselves. The first character is the chromatic change
|
||||
[<code>+-=</code>]. The second is the pitch at which it should be drawn.
|
||||
Thus <code>"+G G4 "</code> will draw a G sharp quaver. Notice that these
|
||||
signs do not necessarily have to be followed by a note.
|
||||
<code>"+f +c +g B2 "</code> is perfectly legal.</p></li>
|
||||
<li><p>Space (formatting): To manually change the spacing of the music,
|
||||
you can add space between different musical elements. This is given by
|
||||
an <code>s</code> followed by the amount of space. <code>"s3 "</code> is
|
||||
the space taken by one note. This length is given in 1 character.
|
||||
However, to get a value larger than 9, you can just continue along the
|
||||
ASCII table. So <code>"sz "</code> gives you quite a lot of space on a
|
||||
staff. <code>"s0 "</code> is not only meaningless, it can cause nasty
|
||||
results.</p></li>
|
||||
<li><p>New staff: A token <code>"x "</code> signifies to start a new
|
||||
staff of music. A music staff may never be empty! Even if you just put
|
||||
some blank space (<code>"s1 "</code>), you should always have an entry
|
||||
for every staff. <code>"x x "</code> may give nasty results.</p>
|
||||
<p>All staves in the output are extended to the length of the longest
|
||||
staff. To have nicely formatted music, though, you will probably have to
|
||||
add spaces manually.</p></li>
|
||||
<li><p>Time signatures: A time signature is given by
|
||||
<code>[m][234][234]</code>. For example, <code>"m24"</code> will give
|
||||
you a two fourth signature. Notice that there are only three available
|
||||
numbers. Especially “6” and “8” are dearly missed.</p></li>
|
||||
<li><p>Clef: The clef (<code>G</code> or <code>F</code>) can only be
|
||||
changed at the beginning of the music input. If the music starts with
|
||||
<code>"KF "</code>, the music will be written in a bass clef.
|
||||
<code>"K"</code> followed by any other letter will just default to a
|
||||
standard G clef.</p></li>
|
||||
</ol>
|
||||
<h2 id="examples">Examples</h2>
|
||||
<p>Blank music paper (with G clef):</p>
|
||||
<div class="sourceCode" id="cb2"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./deckmyn</span> <span class="st">"</span><span class="kw">`</span><span class="fu">cat</span> deckmyn.c<span class="kw">`</span><span class="st">"</span> <span class="st">"sz sa x s1 x s1 x s1 x s1 x s1 "</span><span class="op">></span> blank.pbm</span></code></pre></div>
|
||||
<p>With an F clef:</p>
|
||||
<pre><code>./deckmyn "`cat deckmyn.c`" "KF sz sa x s1 x s1 x s1 x s1 x s1 "> blank.pbm</code></pre>
|
||||
<p>Notice how only the first staff (or any staff) needs to have the full
|
||||
length.</p>
|
||||
<p>Some files with well-known melodies are included as examples.</p>
|
||||
|
||||
<!-- END: this line ends content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||||
<!-- START: this line starts content from: inc/after-content.default.html -->
|
||||
|
||||
<!-- END: this line ends content from: inc/after-content.default.html -->
|
||||
<!-- START: this line starts content from: inc/end-rightcolumn.default.html -->
|
||||
|
||||
</div>
|
||||
|
||||
<!-- END: this line ends content from: inc/end-rightcolumn.default.html -->
|
||||
<!-- START: this line starts content from: inc/end-row.default.html -->
|
||||
|
||||
</div>
|
||||
|
||||
<!-- END: this line ends content from: inc/end-row.default.html -->
|
||||
<!-- START: this line starts content from: inc/footer.default.html -->
|
||||
|
||||
<div class="footer">
|
||||
<hr>
|
||||
<h2>Coda</h2>
|
||||
<p><a href="https://validator.w3.org/nu/?doc=#">Nu HTML check this web page</a></p>
|
||||
<p><a href="#top">Jump to top</a> <a href="#content">Jump to Content</a> <a href="#inventory">Jump to Inventory</a></p>
|
||||
</div>
|
||||
|
||||
<!-- END: this line ends content from: inc/footer.default.html -->
|
||||
<!-- START: this line starts content from: inc/bottom.default.html -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<!-- END: this line ends content from: inc/bottom.default.html -->
|
||||
@@ -268,9 +268,9 @@ https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
|
||||
<h1 id="inventory-for-2012deckmyn"><a name="inventory"></a>Inventory for
|
||||
2012/deckmyn</h1>
|
||||
<p><a href="#top">Jump to top</a></p>
|
||||
<h2 id="primary-files">Primary files</h2>
|
||||
<ul>
|
||||
<li><a href="index.html">index.html</a> - entry home page</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/deckmyn/deckmyn.c">deckmyn.c</a>
|
||||
- entry source</li>
|
||||
@@ -295,6 +295,7 @@ entry source</li>
|
||||
</ul>
|
||||
<h2 id="secondary-files">Secondary files</h2>
|
||||
<ul>
|
||||
<li><a href="index.html">index.html</a> - entry home page</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/deckmyn/.entry.json">.entry.json</a>
|
||||
- description of entry in JSON</li>
|
||||
@@ -307,7 +308,7 @@ href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/deckmyn/READ
|
||||
- markdown source for index.html</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/2012/deckmyn/deckmyn.md">deckmyn.md</a>
|
||||
- markdown source for design.html</li>
|
||||
- markdown source for deckmyn.html</li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
Reference in new issue
Block a user