Skip to content

Commit 6a24ebc

Browse files
committed
update docs
1 parent 0d07257 commit 6a24ebc

26 files changed

+4203
-2428
lines changed

docs/dochack.js

Lines changed: 1483 additions & 1402 deletions
Large diffs are not rendered by default.

docs/nimdoc.out.css

Lines changed: 82 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Modified by Boyd Greenfield and narimiran
3535
--escapeSequence: #c4891b;
3636
--number: #252dbe;
3737
--literal: #a4255b;
38+
--program: #6060c0;
39+
--option: #508000;
3840
--raw-data: #a4255b;
3941
}
4042

@@ -63,6 +65,8 @@ Modified by Boyd Greenfield and narimiran
6365
--escapeSequence: #bd93f9;
6466
--number: #bd93f9;
6567
--literal: #f1fa8c;
68+
--program: #9090c0;
69+
--option: #90b010;
6670
--raw-data: #8be9fd;
6771
}
6872

@@ -230,6 +234,12 @@ select:focus {
230234
}
231235

232236
/* Docgen styles */
237+
238+
:target {
239+
border: 2px solid #B5651D;
240+
border-style: dotted;
241+
}
242+
233243
/* Links */
234244
a {
235245
color: var(--anchor);
@@ -384,6 +394,7 @@ h2 {
384394
margin-top: 2em; }
385395

386396
h2.subtitle {
397+
margin-top: 0em;
387398
text-align: center; }
388399

389400
h3 {
@@ -497,6 +508,45 @@ hr {
497508
border: 0;
498509
border-top: 1px solid #aaa; }
499510

511+
hr.footnote {
512+
width: 25%;
513+
border-top: 0.15em solid #999;
514+
margin-bottom: 0.15em;
515+
margin-top: 0.15em;
516+
}
517+
div.footnote-group {
518+
margin-left: 1em; }
519+
div.footnote-label {
520+
display: inline-block;
521+
min-width: 1.7em;
522+
}
523+
524+
div.option-list {
525+
border: 0.1em solid var(--border);
526+
}
527+
div.option-list-item {
528+
padding-left: 12em;
529+
padding-right: 0;
530+
padding-bottom: 0.3em;
531+
padding-top: 0.3em;
532+
}
533+
div.odd {
534+
background-color: var(--secondary-background);
535+
}
536+
div.option-list-label {
537+
margin-left: -11.5em;
538+
margin-right: 0em;
539+
min-width: 11.5em;
540+
display: inline-block;
541+
vertical-align: top;
542+
}
543+
div.option-list-description {
544+
width: calc(100% - 1em);
545+
padding-left: 1em;
546+
padding-right: 0;
547+
display: inline-block;
548+
}
549+
500550
blockquote {
501551
font-size: 0.9em;
502552
font-style: italic;
@@ -505,7 +555,7 @@ blockquote {
505555
border-left: 5px solid #bbc;
506556
}
507557

508-
.pre {
558+
.pre, span.tok {
509559
font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace;
510560
font-weight: 500;
511561
font-size: 0.85em;
@@ -516,6 +566,12 @@ blockquote {
516566
border-radius: 4px;
517567
}
518568

569+
span.tok {
570+
border: 1px solid #808080;
571+
padding-bottom: 0.1em;
572+
margin-right: 0.2em;
573+
}
574+
519575
pre {
520576
font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace;
521577
color: var(--text);
@@ -567,6 +623,7 @@ table.line-nums-table {
567623
.line-nums-table td.blob-line-nums pre {
568624
color: #b0b0b0;
569625
-webkit-filter: opacity(75%);
626+
filter: opacity(75%);
570627
text-align: right;
571628
border-color: transparent;
572629
background-color: transparent;
@@ -802,9 +859,6 @@ span.classifier {
802859
span.classifier-delimiter {
803860
font-weight: bold; }
804861

805-
span.option {
806-
white-space: nowrap; }
807-
808862
span.problematic {
809863
color: #b30000; }
810864

@@ -884,6 +938,29 @@ span.Preprocessor {
884938
span.Directive {
885939
color: #252dbe; }
886940

941+
span.option {
942+
font-weight: bold;
943+
font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace;
944+
color: var(--option);
945+
}
946+
947+
span.Prompt {
948+
font-weight: bold;
949+
color: red; }
950+
951+
span.ProgramOutput {
952+
font-weight: bold;
953+
color: #808080; }
954+
955+
span.program {
956+
font-weight: bold;
957+
color: var(--program);
958+
text-decoration: underline;
959+
text-decoration-color: var(--hint);
960+
text-decoration-thickness: 0.05em;
961+
text-underline-offset: 0.15em;
962+
}
963+
887964
span.Command, span.Rule, span.Hyperlink, span.Label, span.Reference,
888965
span.Other {
889966
color: var(--other); }
@@ -906,6 +983,7 @@ dt pre > span.Operator ~ span.Identifier, dt pre > span.Other ~ span.Identifier
906983
background-position: 0 0;
907984
background-size: 51px 14px;
908985
-webkit-filter: opacity(50%);
986+
filter: opacity(50%);
909987
background-repeat: no-repeat;
910988
background-image: var(--nim-sprite-base64);
911989
margin-bottom: 5px; }

0 commit comments

Comments
 (0)