all repos — h3 @ d9bed655aa4256d701e68a80976bcae4afb47aee

A tiny, extremely minimalist JavaScript microframework.

Removed download link when generating guide; updated release name and number,
h3rald h3rald@h3rald.com
Sun, 26 Apr 2020 15:07:17 +0200
commit

d9bed655aa4256d701e68a80976bcae4afb47aee

parent

6ae1da260a48c3d4b21835869f0711816791cf38

M README.mdREADME.md

@@ -19,7 +19,7 @@ ### I'm sold! Where can I get it?

Here, look, it's just one file: -<a href="https://raw.githubusercontent.com/h3rald/h3/v0.2.0/h3.js" target="_blank" class="button primary">Download v0.2.0 (Brave Bajoran)</a> +<a href="https://raw.githubusercontent.com/h3rald/h3/v0.3.0/h3.js" target="_blank" class="button primary">Download v0.3.0 (Cunning Cardassian)</a> Yes there is also a [NPM package](https://www.npmjs.com/package/@h3rald/h3) if you want to use it with WebPack and similar, but let me repeat: _it's just one file_.

@@ -46,6 +46,3 @@ ### What if something is broken?

Go fix it! Or at least open an issue on the [Github repo](https://github.com/h3rald/h3), pleasy. -### Can I download a single, printable HTML file containing all the contents of this site? - -What a weird thing to ask... [Sure you can](H3_DeveloperGuide.htm)!
M docs/H3_DeveloperGuide.htmdocs/H3_DeveloperGuide.htm

@@ -7245,7 +7245,6 @@ <li><a href="#Hello,-World?">Hello, World?</a></li>

<li><a href="#Something-more-complex?">Something more complex?</a></li> <li><a href="#Can-I-use-it-then,-no-strings-attached?">Can I use it then, no strings attached?</a></li> <li><a href="#What-if-something-is-broken?">What if something is broken?</a></li> - <li><a href="#Can-I-download-a-single,-printable-HTML-file-containing-all-the-contents-of-this-site?">Can I download a single, printable HTML file containing all the contents of this site?</a></li> </ul> </li> <li><a href="#Quick-Start">Quick Start</a>

@@ -7332,7 +7331,7 @@ <h3>I&rsquo;m sold! Where can I get it?<a href="#document-top" title="Go to top"></a></h3>

<p>Here, look, it&rsquo;s just one file:</p> -<p><a href="https://raw.githubusercontent.com/h3rald/h3/v0.2.0/h3.js" target="_blank" class="button primary">Download v0.2.0 (Brave Bajoran)</a></p> +<p><a href="https://raw.githubusercontent.com/h3rald/h3/v0.3.0/h3.js" target="_blank" class="button primary">Download v0.3.0 (Cunning Cardassian)</a></p> <p>Yes there is also a <a href="https://www.npmjs.com/package/@h3rald/h3">NPM package</a> if you want to use it with WebPack and similar, but let me repeat: <em>it&rsquo;s just one file</em>.</p>

@@ -7362,11 +7361,6 @@ <h3>What if something is broken?<a href="#document-top" title="Go to top"></a></h3>

<p>Go fix it! Or at least open an issue on the <a href="https://github.com/h3rald/h3">Github repo</a>, pleasy.</p> -<a name="Can-I-download-a-single,-printable-HTML-file-containing-all-the-contents-of-this-site?"></a> -<h3>Can I download a single, printable HTML file containing all the contents of this site?<a href="#document-top" title="Go to top"></a></h3> - -<p>What a weird thing to ask&hellip; <a href="H3_DeveloperGuide.htm">Sure you can</a>!</p> - <a name="Quick-Start"></a> <h2>Quick Start<a href="#document-top" title="Go to top"></a></h2>

@@ -7668,8 +7662,8 @@ h3("a.logo.col-sm-1", { href: "#/" }, [

h3("img", { alt: "H3", src: "images/h3.svg" }), ]), h3("div.version.col-sm.col-md", [ - h3("div.version-number", "v0.2.0"), - h3("div.version-label", "“Brave Bajoran“"), + h3("div.version-number", "v0.3.0"), + h3("div.version-label", "“Cunning Cardassian“"), ]), h3("label.drawer-toggle.button.col-sm-last", { for: "drawer-control" }), ]);

@@ -8005,7 +7999,7 @@ </ul>

</div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco &ndash; April 23, 2020</p> + <p><span class="copy"></span> Fabio Cevasco &ndash; April 26, 2020</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </div>
M docs/js/app.jsdocs/js/app.js

@@ -44,8 +44,8 @@ h3("a.logo.col-sm-1", { href: "#/" }, [

h3("img", { alt: "H3", src: "images/h3.svg" }), ]), h3("div.version.col-sm.col-md", [ - h3("div.version-number", "v0.2.0"), - h3("div.version-label", "“Brave Bajoran“"), + h3("div.version-number", "v0.3.0"), + h3("div.version-label", "“Cunning Cardassian“"), ]), h3("label.drawer-toggle.button.col-sm-last", { for: "drawer-control" }), ]);
M docs/md/overview.mddocs/md/overview.md

@@ -12,7 +12,7 @@ ### I'm sold! Where can I get it?

Here, look, it's just one file: -<a href="https://raw.githubusercontent.com/h3rald/h3/v0.2.0/h3.js" target="_blank" class="button primary">Download v0.2.0 (Brave Bajoran)</a> +<a href="https://raw.githubusercontent.com/h3rald/h3/v0.3.0/h3.js" target="_blank" class="button primary">Download v0.3.0 (Cunning Cardassian)</a> Yes there is also a [NPM package](https://www.npmjs.com/package/@h3rald/h3) if you want to use it with WebPack and similar, but let me repeat: _it's just one file_.

@@ -39,6 +39,3 @@ ### What if something is broken?

Go fix it! Or at least open an issue on the [Github repo](https://github.com/h3rald/h3), pleasy. -### Can I download a single, printable HTML file containing all the contents of this site? - -What a weird thing to ask... [Sure you can](H3_DeveloperGuide.htm)!
M docs/md/tutorial.mddocs/md/tutorial.md

@@ -118,8 +118,8 @@ h3("a.logo.col-sm-1", { href: "#/" }, [

h3("img", { alt: "H3", src: "images/h3.svg" }), ]), h3("div.version.col-sm.col-md", [ - h3("div.version-number", "v0.2.0"), - h3("div.version-label", "“Brave Bajoran“"), + h3("div.version-number", "v0.3.0"), + h3("div.version-label", "“Cunning Cardassian“"), ]), h3("label.drawer-toggle.button.col-sm-last", { for: "drawer-control" }), ]);
M package.jsonpackage.json

@@ -1,6 +1,7 @@

{ "name": "@h3rald/h3", - "version": "0.2.0", + "version": "0.3.0", + "versionName": "Cunning Cardassian", "description": "A tiny, extremely minimalist JavaScript microframework.", "main": "h3.js", "scripts": {
M scripts/release.jsscripts/release.js

@@ -1,21 +1,22 @@

const fs = require("fs"); const path = require("path"); -const [vNumber, vLabel] = fs.readFileSync("VERSION", "utf8").trim().split(":"); - const readme = "./README.md"; const overview = "./docs/md/overview.md"; const app = "./docs/js/app.js"; const tutorial = "./docs/md/tutorial.md"; const package = "./package.json"; + +const pkg = JSON.parse(fs.readFileSync(package, "utf8")); // Update README.md let readmeData = fs.readFileSync(readme, "utf8"); -readmeData = readmeData.replace(/v\d+\.\d+\.\d+/, `v${vNumber}`); +readmeData = readmeData.replace(/v\d+\.\d+\.\d+/, `v${pkg.version}`); readmeData = readmeData.replace( /Download v\d+\.\d+\.\d+ \([^)]+\)/, - `Download v${vNumber} (${vLabel})` + `Download v${pkg.version} (${pkg.versionName})` ); +readmeData = readmeData.replace(/### Can I download(\n|.)+/gm, ''); fs.writeFileSync(readme, readmeData); // Remove badges and copy to overview.md

@@ -25,8 +26,8 @@

// Update app.js and tutorial.md const updateCode = (file) => { let data = fs.readFileSync(file, "utf8"); - data = data.replace(/v\d+\.\d+\.\d+/, `v${vNumber}`); - data = data.replace(/“.+“/, `“${vLabel}“`); + data = data.replace(/v\d+\.\d+\.\d+/, `v${pkg.version}`); + data = data.replace(/“.+“/, `“${pkg.versionName}“`); fs.writeFileSync(file, data); }; updateCode(app);

@@ -34,5 +35,5 @@ updateCode(tutorial);

// Update package.json const packageData = JSON.parse(fs.readFileSync(package, "utf8")); -packageData.version = vNumber; +packageData.version = pkg.version; fs.writeFileSync(package, JSON.stringify(packageData, null, 2));