Browse code
chore(docs): update html
Edward Langley authored on 26/03/2022 07:20:19
Showing 3 changed files
Showing 3 changed files
... | ... |
@@ -1,6 +1,6 @@ |
1 | 1 |
#+TITLE: README for js-generic-functions |
2 | 2 |
#+AUTHOR: Ed L |
3 |
-#+HTML_HEAD: <link rel="stylesheet" href="./colors.css"></link> |
|
3 |
+#+HTML_HEAD: <link rel="stylesheet" href="./colors.css"> |
|
4 | 4 |
#+EXPORT_FILE_NAME: docs/index.html |
5 | 5 |
|
6 | 6 |
[[https://www.npmjs.com/package/js-generic-functions][https://img.shields.io/npm/v/js-generic-functions.svg]] [[https://circleci.com/gh/fiddlerwoaroof/js-generic-functions.svg?style=svg]] |
... | ... |
@@ -1,7 +1,8 @@ |
1 |
+<?xml version="1.0" encoding="utf-8"?> |
|
1 | 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
2 | 3 |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> |
3 | 4 |
<head> |
4 |
- <!-- 2022-03-16 Wed 01:22 --> |
|
5 |
+ <!-- 2022-03-26 Sat 00:19 --> |
|
5 | 6 |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
6 | 7 |
<meta name="viewport" content="width=device-width, initial-scale=1" /> |
7 | 8 |
<title>README for js-generic-functions</title> |
... | ... |
@@ -462,22 +463,34 @@ |
462 | 463 |
<h2>Table of Contents</h2> |
463 | 464 |
<div id="text-table-of-contents" role="doc-toc"> |
464 | 465 |
<ul> |
465 |
- <li><a href="#orgfafc37c">1. What is this?</a></li> |
|
466 |
+ <li><a href="#orgcc8452b">1. What is this?</a></li> |
|
466 | 467 |
<li> |
467 |
- <a href="#org9f23f39">2. Docs</a> |
|
468 |
+ <a href="#org3a3b812">2. Docs</a> |
|
468 | 469 |
<ul> |
469 |
- <li><a href="#orgd157493">2.1. Basic Usage</a></li> |
|
470 |
+ <li><a href="#org8276ba5">2.1. Basic Usage</a></li> |
|
470 | 471 |
<li> |
471 |
- <a href="#orgfff236b">2.2. Other sorts of specializers</a> |
|
472 |
+ <a href="#orgb8af4f3">2.2. Other sorts of specializers</a> |
|
472 | 473 |
</li> |
473 | 474 |
</ul> |
474 | 475 |
</li> |
475 | 476 |
</ul> |
476 | 477 |
</div> |
477 | 478 |
</div> |
479 |
+ <p> |
|
480 |
+ <a href="https://www.npmjs.com/package/js-generic-functions" |
|
481 |
+ ><img |
|
482 |
+ src="https://img.shields.io/npm/v/js-generic-functions.svg" |
|
483 |
+ alt="js-generic-functions.svg" |
|
484 |
+ class="org-svg" |
|
485 |
+ /></a> |
|
486 |
+ <img |
|
487 |
+ src="https://circleci.com/gh/fiddlerwoaroof/js-generic-functions.svg?style=svg" |
|
488 |
+ alt="js-generic-functions.svg?style=svg" |
|
489 |
+ /> |
|
490 |
+ </p> |
|
478 | 491 |
|
479 |
- <div id="outline-container-orgfafc37c" class="outline-2"> |
|
480 |
- <h2 id="orgfafc37c"> |
|
492 |
+ <div id="outline-container-orgcc8452b" class="outline-2"> |
|
493 |
+ <h2 id="orgcc8452b"> |
|
481 | 494 |
<span class="section-number-2">1.</span> What is this? |
482 | 495 |
</h2> |
483 | 496 |
<div class="outline-text-2" id="text-1"> |
... | ... |
@@ -495,18 +508,18 @@ |
495 | 508 |
</div> |
496 | 509 |
</div> |
497 | 510 |
|
498 |
- <div id="outline-container-org9f23f39" class="outline-2"> |
|
499 |
- <h2 id="org9f23f39"><span class="section-number-2">2.</span> Docs</h2> |
|
511 |
+ <div id="outline-container-org3a3b812" class="outline-2"> |
|
512 |
+ <h2 id="org3a3b812"><span class="section-number-2">2.</span> Docs</h2> |
|
500 | 513 |
<div class="outline-text-2" id="text-2"></div> |
501 |
- <div id="outline-container-orgd157493" class="outline-3"> |
|
502 |
- <h3 id="orgd157493"> |
|
514 |
+ <div id="outline-container-org8276ba5" class="outline-3"> |
|
515 |
+ <h3 id="org8276ba5"> |
|
503 | 516 |
<span class="section-number-3">2.1.</span> Basic Usage |
504 | 517 |
</h3> |
505 | 518 |
<div class="outline-text-3" id="text-2-1"> |
506 | 519 |
<div class="org-src-container"> |
507 | 520 |
<pre |
508 | 521 |
class="src src-js" |
509 |
- id="org5053093" |
|
522 |
+ id="org7a77c74" |
|
510 | 523 |
><span style="color: #F0DFAF;">import</span> { defgeneric } from <span style="color: #D0BF8F;">"./genfuns.js"</span>; |
511 | 524 |
</pre> |
512 | 525 |
</div> |
... | ... |
@@ -522,7 +535,7 @@ |
522 | 535 |
<div class="org-src-container"> |
523 | 536 |
<pre |
524 | 537 |
class="src src-js" |
525 |
- id="orgbfcefb2" |
|
538 |
+ id="org564a17a" |
|
526 | 539 |
><span style="color: #F0DFAF;">const</span> <span style="color: #DC8CC3;">example1generic</span> = defgeneric(<span style="color: #D0BF8F;">"example1"</span>, <span style="color: #D0BF8F;">"a"</span>, <span style="color: #D0BF8F;">"b"</span>) |
527 | 540 |
.primary([Number, Object], (n, __) => [1, n]) |
528 | 541 |
.primary([Object, Number], (_, n) => [2, n]) |
... | ... |
@@ -538,7 +551,7 @@ |
538 | 551 |
<div class="org-src-container"> |
539 | 552 |
<pre |
540 | 553 |
class="src src-js" |
541 |
- id="orgcb5dfea" |
|
554 |
+ id="org31146cd" |
|
542 | 555 |
><span style="color: #F0DFAF;">const</span> <span style="color: #DC8CC3;">example1</span> = example1generic.fn; |
543 | 556 |
|
544 | 557 |
expect(example1(5, {})).toEqual([1, 5]); |
... | ... |
@@ -555,7 +568,7 @@ expect(example1({}, {})).toEqual([5, <span style="font-weight: bold;">null</span |
555 | 568 |
</p> |
556 | 569 |
|
557 | 570 |
<div class="org-src-container"> |
558 |
- <pre class="src src-js" id="orgda77441">example1generic |
|
571 |
+ <pre class="src src-js" id="org1bdd8f1">example1generic |
|
559 | 572 |
.primary([String, Object], (s, __) => [3, s]) |
560 | 573 |
.primary([Object, String], (_, s) => [4, s]); |
561 | 574 |
|
... | ... |
@@ -566,8 +579,8 @@ expect(example1({}, <span style="color: #D0BF8F;">"world"</span>)).toEqual([4, < |
566 | 579 |
</div> |
567 | 580 |
</div> |
568 | 581 |
|
569 |
- <div id="outline-container-orgfff236b" class="outline-3"> |
|
570 |
- <h3 id="orgfff236b"> |
|
582 |
+ <div id="outline-container-orgb8af4f3" class="outline-3"> |
|
583 |
+ <h3 id="orgb8af4f3"> |
|
571 | 584 |
<span class="section-number-3">2.2.</span> Other sorts of |
572 | 585 |
specializers |
573 | 586 |
</h3> |
... | ... |
@@ -575,7 +588,7 @@ expect(example1({}, <span style="color: #D0BF8F;">"world"</span>)).toEqual([4, < |
575 | 588 |
<div class="org-src-container"> |
576 | 589 |
<pre |
577 | 590 |
class="src src-js" |
578 |
- id="org0346038" |
|
591 |
+ id="org1f7652d" |
|
579 | 592 |
><span style="color: #F0DFAF;">import</span> { Shape, Eql } from <span style="color: #D0BF8F;">"./genfuns.js"</span>; |
580 | 593 |
</pre> |
581 | 594 |
</div> |
... | ... |
@@ -583,7 +596,7 @@ expect(example1({}, <span style="color: #D0BF8F;">"world"</span>)).toEqual([4, < |
583 | 596 |
<div class="org-src-container"> |
584 | 597 |
<pre |
585 | 598 |
class="src src-js" |
586 |
- id="org89b4645" |
|
599 |
+ id="orge2d0781" |
|
587 | 600 |
><span style="color: #F0DFAF;">const</span> <span style="color: #DC8CC3;">example2</span> = defgeneric(<span style="color: #D0BF8F;">"example2"</span>, <span style="color: #D0BF8F;">"inp"</span>) |
588 | 601 |
.primary([Shape(<span style="color: #D0BF8F;">"a"</span>, <span style="color: #D0BF8F;">"b"</span>)], inp => <span style="color: #D0BF8F;">`a: ${inp.a} b: ${inp.b}`</span>) |
589 | 602 |
.primary([Shape(<span style="color: #D0BF8F;">"a"</span>)], inp => <span style="color: #D0BF8F;">`a: ${inp.a} b: <missing>`</span>) |
... | ... |
@@ -604,7 +617,7 @@ expect(example2(1)).toEqual(<span style="color: #D0BF8F;">"one"</span>); |
604 | 617 |
</div> |
605 | 618 |
<div id="postamble" class="status"> |
606 | 619 |
<p class="author">Author: Ed L</p> |
607 |
- <p class="date">Created: 2022-03-16 Wed 01:22</p> |
|
620 |
+ <p class="date">Created: 2022-03-26 Sat 00:19</p> |
|
608 | 621 |
<p class="validation"> |
609 | 622 |
<a href="https://validator.w3.org/check?uri=referer">Validate</a> |
610 | 623 |
</p> |