123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989 |
- # This is the config file for the documentation generator.
- # (c) 2016 Andreas Rumpf
- # Feel free to edit the templates as you need. If you modify this file, it
- # might be worth updating the hardcoded values in packages/docutils/rstgen.nim
- split.item.toc = "20"
- # too long entries in the table of contents wrap around
- # after this number of characters
- doc.section = """
- <div class="section" id="$sectionID">
- <h1><a class="toc-backref" href="#$sectionID">$sectionTitle</a></h1>
- <dl class="item">
- $content
- </dl></div>
- """
- doc.section.toc = """
- <li>
- <a class="reference reference-toplevel" href="#$sectionID" id="$sectionTitleID">$sectionTitle</a>
- <ul class="simple simple-toc-section">
- $content
- </ul>
- </li>
- """
- # Chunk of HTML emitted for each entry in the HTML table of contents.
- # Available variables are:
- # * $desc: the actual docstring of the item.
- # * $header: the full version of name, including types, pragmas, tags, etc.
- # * $header_plain: like header but without HTML, for attribute embedding.
- # * $itemID: numerical unique entry of the item in the HTML.
- # * $itemSym: short symbolic name of the item for easier hyperlinking.
- # * $itemSymEnc: quoted version for URLs or attributes.
- # * $itemSymOrID: the symbolic name or the ID if that is not unique.
- # * $itemSymOrIDEnc: quoted version for URLs or attributes.
- # * $name: reduced name of the item.
- # * $seeSrc: generated HTML from doc.item.seesrc (if some switches are used).
- doc.item = """
- <a id="$itemSymOrID"></a>
- <dt><pre>$header</pre></dt>
- <dd>
- $desc
- $seeSrc
- </dd>
- """
- # Chunk of HTML emitted for each entry in the HTML table of contents.
- # See doc.item for available substitution variables.
- doc.item.toc = """
- <li><a class="reference" href="#$itemSymOrIDEnc"
- title="$header_plain">$name<span class="attachedType" style="visibility:hidden">$attype</span></a></li>
- """
- # HTML rendered for doc.item's seeSrc variable. Note that this will render to
- # the empty string if you don't pass anything through --docSeeSrcURL. Available
- # substitutaion variables here are:
- # * $commit: branch/commit to use in source link.
- # * $devel: branch to use in edit link.
- # * $path: relative path to the file being processed.
- # * $line: line of the item in the original source file.
- # * $url: whatever you did pass through the --docSeeSrcUrl switch (which also
- # gets variables path/line replaced!)
- doc.item.seesrc = """ <a
- href="${url}/tree/${commit}/${path}#L${line}"
- class="link-seesrc" target="_blank">Source</a>
- <a href="${url}/edit/${devel}/${path}#L${line}" class="link-seesrc" target="_blank" >Edit</a>
- """
- doc.toc = """
- <ul class="simple simple-toc" id="toc-list">
- $content
- </ul>
- """
- doc.body_toc = """
- <div class="row">
- <div class="three columns">
- <div id="global-links">
- <ul class="simple-boot">
- <li>
- <a href="manual.html">Manual</a>
- </li>
- <li>
- <a href="lib.html">Standard library</a>
- </li>
- <li>
- <a href="theindex.html">Index</a>
- </li>
- </ul>
- </div>
- <div id="searchInputDiv">
- Search: <input type="text" id="searchInput"
- onkeyup="search()" />
- </div>
- $tableofcontents
- </div>
- <div class="nine columns" id="content">
- <div id="tocRoot"></div>
- <p class="module-desc">$moduledesc</p>
- $content
- </div>
- </div>
- """
- @if boot:
- # This is enabled with the "boot" directive to generate
- # the compiler documentation.
- # As a user, tweak the block below instead.
- # You can add your own global-links entries
- doc.body_toc_group = """
- <div class="row">
- <div class="three columns">
- <div id="global-links">
- <ul class="simple-boot">
- <li>
- <a href="manual.html">Manual</a>
- </li>
- <li>
- <a href="lib.html">Standard library</a>
- </li>
- <li>
- <a href="theindex.html">Index</a>
- </li>
- </ul>
- </div>
- <div id="searchInputDiv">
- Search: <input type="text" id="searchInput"
- onkeyup="search()" />
- </div>
- <div class="search-groupby">
- Group by:
- <select onchange="groupBy(this.value)">
- <option value="section">Section</option>
- <option value="type">Type</option>
- </select>
- </div>
- $tableofcontents
- </div>
- <div class="nine columns" id="content">
- <div id="tocRoot"></div>
- <p class="module-desc">$moduledesc</p>
- $content
- </div>
- </div>
- """
- @else
- doc.body_toc_group = """
- <div class="row">
- <div class="three columns">
- <div id="global-links">
- <ul class="simple">
- </ul>
- </div>
- <div id="searchInputDiv">
- Search: <input type="text" id="searchInput"
- onkeyup="search()" />
- </div>
- <div>
- Group by:
- <select onchange="groupBy(this.value)">
- <option value="section">Section</option>
- <option value="type">Type</option>
- </select>
- </div>
- $tableofcontents
- </div>
- <div class="nine columns" id="content">
- <div id="tocRoot"></div>
- <p class="module-desc">$moduledesc</p>
- $content
- </div>
- </div>
- """
- @end
- doc.body_no_toc = """
- $moduledesc
- $content
- """
- doc.listing_start = "<pre class=\"listing\">"
- doc.listing_end = "</pre>"
- # * $analytics: Google analytics location, includes <script> tags
- doc.file = """<?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <!-- This file is generated by Nim. -->
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <!-- Favicon -->
- <link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
- <!-- Google fonts -->
- <link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
- <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
- <!-- CSS -->
- <title>$title</title>
- <style type="text/css" >
- /*
- Stylesheet for use with Docutils/rst2html.
- See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
- customize this style sheet.
- Modified from Chad Skeeters' rst2html-style
- https://bitbucket.org/cskeeters/rst2html-style/
- Modified by Boyd Greenfield and narimiran
- */
- html {
- font-size: 100%;
- -webkit-text-size-adjust: 100%;
- -ms-text-size-adjust: 100%; }
- body {
- font-family: "Lato", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
- font-weight: 400;
- font-size: 1.125em;
- line-height: 1.5;
- color: #222;
- background-color: #FCFCFC; }
- /* Skeleton grid */
- .container {
- position: relative;
- width: 100%;
- max-width: 1050px;
- margin: 0 auto;
- padding: 0;
- box-sizing: border-box; }
- .column,
- .columns {
- width: 100%;
- float: left;
- box-sizing: border-box;
- margin-left: 1%;
- }
- .column:first-child,
- .columns:first-child {
- margin-left: 0; }
- .three.columns {
- width: 19%; }
- .nine.columns {
- width: 80.0%; }
- .twelve.columns {
- width: 100%;
- margin-left: 0; }
- @media screen and (max-width: 860px) {
- .three.columns {
- display: none;
- }
- .nine.columns {
- width: 98.0%;
- }
- body {
- font-size: 1em;
- line-height: 1.35;
- }
- }
- cite {
- font-style: italic !important; }
- /* Nim search input */
- div#searchInputDiv {
- margin-bottom: 1em;
- }
- input#searchInput {
- width: 80%;
- }
- /* Docgen styles */
- /* Links */
- a {
- color: #07b;
- text-decoration: none;
- }
- a span.Identifier {
- text-decoration: underline;
- text-decoration-color: #aab;
- }
- a.reference-toplevel {
- font-weight: bold;
- }
- a.toc-backref {
- text-decoration: none;
- color: #222; }
- a.link-seesrc {
- color: #607c9f;
- font-size: 0.9em;
- font-style: italic; }
- a:hover,
- a:focus {
- color: #607c9f;
- text-decoration: underline; }
- a:hover span.Identifier {
- color: #607c9f;
- }
- sub,
- sup {
- position: relative;
- font-size: 75%;
- line-height: 0;
- vertical-align: baseline; }
- sup {
- top: -0.5em; }
- sub {
- bottom: -0.25em; }
- img {
- width: auto;
- height: auto;
- max-width: 100%;
- vertical-align: middle;
- border: 0;
- -ms-interpolation-mode: bicubic; }
- @media print {
- * {
- color: black !important;
- text-shadow: none !important;
- background: transparent !important;
- box-shadow: none !important; }
- a,
- a:visited {
- text-decoration: underline; }
- a[href]:after {
- content: " (" attr(href) ")"; }
- abbr[title]:after {
- content: " (" attr(title) ")"; }
- .ir a:after,
- a[href^="javascript:"]:after,
- a[href^="#"]:after {
- content: ""; }
- pre,
- blockquote {
- border: 1px solid #999;
- page-break-inside: avoid; }
- thead {
- display: table-header-group; }
- tr,
- img {
- page-break-inside: avoid; }
- img {
- max-width: 100% !important; }
- @page {
- margin: 0.5cm; }
- h1 {
- page-break-before: always; }
- h1.title {
- page-break-before: avoid; }
- p,
- h2,
- h3 {
- orphans: 3;
- widows: 3; }
- h2,
- h3 {
- page-break-after: avoid; }
- }
- p {
- margin-top: 0.5em;
- margin-bottom: 0.5em;
- }
- small {
- font-size: 85%; }
- strong {
- font-weight: 600;
- font-size: 0.95em;
- color: #3c3c3c;
- }
- em {
- font-style: italic; }
- h1 {
- font-size: 1.8em;
- font-weight: 400;
- padding-bottom: .25em;
- border-bottom: 1px solid #aaa;
- margin-top: 2.5em;
- margin-bottom: 1em;
- line-height: 1.2em; }
- h1.title {
- padding-bottom: 1em;
- border-bottom: 0px;
- font-size: 2.5em;
- text-align: center;
- font-weight: 900;
- margin-top: 0.75em;
- margin-bottom: 0em;
- }
- h2 {
- font-size: 1.3em;
- margin-top: 2em; }
- h2.subtitle {
- text-align: center; }
- h3 {
- font-size: 1.125em;
- font-style: italic;
- margin-top: 1.5em; }
- h4 {
- font-size: 1.125em;
- margin-top: 1em; }
- h5 {
- font-size: 1.125em;
- margin-top: 0.75em; }
- h6 {
- font-size: 1.1em; }
- ul,
- ol {
- padding: 0;
- margin-top: 0.5em;
- margin-left: 0.75em; }
- ul ul,
- ul ol,
- ol ol,
- ol ul {
- margin-bottom: 0;
- margin-left: 1.25em; }
- li {
- list-style-type: circle;
- }
- ul.simple-boot li {
- list-style-type: none;
- margin-left: 0em;
- margin-bottom: 0.5em;
- }
- ol.simple > li, ul.simple > li {
- margin-bottom: 0.25em;
- margin-left: 0.4em }
- ul.simple.simple-toc > li {
- margin-top: 1em;
- }
- ul.simple-toc {
- list-style: none;
- font-size: 0.9em;
- margin-left: -0.3em;
- margin-top: 1em; }
- ul.simple-toc > li {
- list-style-type: none;
- }
- ul.simple-toc-section {
- list-style-type: circle;
- margin-left: 1em;
- color: #6c9aae; }
- ol.arabic {
- list-style: decimal; }
- ol.loweralpha {
- list-style: lower-alpha; }
- ol.upperalpha {
- list-style: upper-alpha; }
- ol.lowerroman {
- list-style: lower-roman; }
- ol.upperroman {
- list-style: upper-roman; }
- ul.auto-toc {
- list-style-type: none; }
- dl {
- margin-bottom: 1.5em; }
- dt {
- margin-bottom: -0.5em;
- margin-left: 0.5em; }
- dd {
- margin-left: 0.5em;
- margin-bottom: 2.5em;
- margin-top: 0.5em; }
- hr {
- margin: 2em 0;
- border: 0;
- border-top: 1px solid #aaa; }
- blockquote {
- font-size: 0.9em;
- font-style: italic;
- padding-left: 0.5em;
- margin-left: 0;
- border-left: 5px solid #bbc;
- }
- .pre {
- font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace;
- font-weight: 500;
- font-size: 0.85em;
- background-color: #f0f3ff;
- padding-left: 3px;
- padding-right: 3px;
- border-radius: 4px;
- }
- pre {
- font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace;
- color: #222;
- font-weight: 500;
- display: inline-block;
- box-sizing: border-box;
- min-width: 100%;
- padding: 0.5em;
- margin-top: 0.5em;
- margin-bottom: 0.5em;
- font-size: 0.85em;
- white-space: pre !important;
- overflow-y: hidden;
- overflow-x: visible;
- background-color: ghostwhite;
- border: 1px solid #dde;
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px; }
- .pre-scrollable {
- max-height: 340px;
- overflow-y: scroll; }
- /* Nim line-numbered tables */
- .line-nums-table {
- width: 100%;
- table-layout: fixed; }
- table.line-nums-table {
- border-radius: 4px;
- border: 1px solid #cccccc;
- background-color: ghostwhite;
- border-collapse: separate;
- margin-top: 15px;
- margin-bottom: 25px; }
- .line-nums-table tbody {
- border: none; }
- .line-nums-table td pre {
- border: none;
- background-color: transparent; }
- .line-nums-table td.blob-line-nums {
- width: 28px; }
- .line-nums-table td.blob-line-nums pre {
- color: #b0b0b0;
- -webkit-filter: opacity(75%);
- text-align: right;
- border-color: transparent;
- background-color: transparent;
- padding-left: 0px;
- margin-left: 0px;
- padding-right: 0px;
- margin-right: 0px; }
- table {
- max-width: 100%;
- background-color: transparent;
- margin-top: 0.5em;
- margin-bottom: 1.5em;
- border-collapse: collapse;
- border-color: #ccc;
- border-spacing: 0;
- font-size: 0.9em;
- }
- table th, table td {
- padding: 0px 0.5em 0px;
- }
- table th {
- background-color: #e8e8e8;
- font-weight: bold; }
- table th.docinfo-name {
- background-color: transparent;
- }
- table tr:hover {
- background-color: ghostwhite; }
- /* rst2html default used to remove borders from tables and images */
- .borderless, table.borderless td, table.borderless th {
- border: 0; }
- table.borderless td, table.borderless th {
- /* Override padding for "table.docutils td" with "! important".
- The right padding separates the table cells. */
- padding: 0 0.5em 0 0 !important; }
- .first {
- /* Override more specific margin styles with "! important". */
- margin-top: 0 !important; }
- .last, .with-subtitle {
- margin-bottom: 0 !important; }
- .hidden {
- display: none; }
- blockquote.epigraph {
- margin: 2em 5em; }
- dl.docutils dd {
- margin-bottom: 0.5em; }
- object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
- overflow: hidden; }
- div.figure {
- margin-left: 2em;
- margin-right: 2em; }
- div.footer, div.header {
- clear: both;
- text-align: center;
- color: #666;
- font-size: smaller; }
- div.footer {
- padding-top: 5em;
- }
- div.line-block {
- display: block;
- margin-top: 1em;
- margin-bottom: 1em; }
- div.line-block div.line-block {
- margin-top: 0;
- margin-bottom: 0;
- margin-left: 1.5em; }
- div.topic {
- margin: 2em; }
- div.search_results {
- background-color: antiquewhite;
- margin: 3em;
- padding: 1em;
- border: 1px solid #4d4d4d;
- }
- div#global-links ul {
- margin-left: 0;
- list-style-type: none;
- }
- div#global-links > simple-boot {
- margin-left: 3em;
- }
- hr.docutils {
- width: 75%; }
- img.align-left, .figure.align-left, object.align-left {
- clear: left;
- float: left;
- margin-right: 1em; }
- img.align-right, .figure.align-right, object.align-right {
- clear: right;
- float: right;
- margin-left: 1em; }
- img.align-center, .figure.align-center, object.align-center {
- display: block;
- margin-left: auto;
- margin-right: auto; }
- .align-left {
- text-align: left; }
- .align-center {
- clear: both;
- text-align: center; }
- .align-right {
- text-align: right; }
- /* reset inner alignment in figures */
- div.align-right {
- text-align: inherit; }
- p.attribution {
- text-align: right;
- margin-left: 50%; }
- p.caption {
- font-style: italic; }
- p.credits {
- font-style: italic;
- font-size: smaller; }
- p.label {
- white-space: nowrap; }
- p.rubric {
- font-weight: bold;
- font-size: larger;
- color: maroon;
- text-align: center; }
- p.topic-title {
- font-weight: bold; }
- pre.address {
- margin-bottom: 0;
- margin-top: 0;
- font: inherit; }
- pre.literal-block, pre.doctest-block, pre.math, pre.code {
- margin-left: 2em;
- margin-right: 2em; }
- pre.code .ln {
- color: grey; }
- /* line numbers */
- pre.code, code {
- background-color: #eeeeee; }
- pre.code .comment, code .comment {
- color: #5c6576; }
- pre.code .keyword, code .keyword {
- color: #3B0D06;
- font-weight: bold; }
- pre.code .literal.string, code .literal.string {
- color: #0c5404; }
- pre.code .name.builtin, code .name.builtin {
- color: #352b84; }
- pre.code .deleted, code .deleted {
- background-color: #DEB0A1; }
- pre.code .inserted, code .inserted {
- background-color: #A3D289; }
- span.classifier {
- font-style: oblique; }
- span.classifier-delimiter {
- font-weight: bold; }
- span.option {
- white-space: nowrap; }
- span.problematic {
- color: #b30000; }
- span.section-subtitle {
- /* font-size relative to parent (h1..h6 element) */
- font-size: 80%; }
- span.DecNumber {
- color: #252dbe; }
- span.BinNumber {
- color: #252dbe; }
- span.HexNumber {
- color: #252dbe; }
- span.OctNumber {
- color: #252dbe; }
- span.FloatNumber {
- color: #252dbe; }
- span.Identifier {
- color: #222; }
- span.Keyword {
- font-weight: 600;
- color: #5e8f60; }
- span.StringLit {
- color: #a4255b; }
- span.LongStringLit {
- color: #a4255b; }
- span.CharLit {
- color: #a4255b; }
- span.EscapeSequence {
- color: black; }
- span.Operator {
- color: black; }
- span.Punctuation {
- color: black; }
- span.Comment, span.LongComment {
- font-style: italic;
- font-weight: 400;
- color: #484a86; }
- span.RegularExpression {
- color: darkviolet; }
- span.TagStart {
- color: darkviolet; }
- span.TagEnd {
- color: darkviolet; }
- span.Key {
- color: #252dbe; }
- span.Value {
- color: #252dbe; }
- span.RawData {
- color: #a4255b; }
- span.Assembler {
- color: #252dbe; }
- span.Preprocessor {
- color: #252dbe; }
- span.Directive {
- color: #252dbe; }
- span.Command, span.Rule, span.Hyperlink, span.Label, span.Reference,
- span.Other {
- color: black; }
- /* Pop type, const, proc, and iterator defs in nim def blocks */
- dt pre > span.Identifier, dt pre > span.Operator {
- color: #155da4;
- font-weight: 700; }
- dt pre > span.Keyword ~ span.Identifier, dt pre > span.Identifier ~ span.Identifier,
- dt pre > span.Operator ~ span.Identifier, dt pre > span.Other ~ span.Identifier {
- color: inherit;
- font-weight: inherit; }
- /* Nim sprite for the footer (taken from main page favicon) */
- .nim-sprite {
- display: inline-block;
- height: 16px;
- width: 16px;
- background-position: 0 0;
- background-size: 16px 16px;
- -webkit-filter: opacity(50%);
- background-repeat: no-repeat;
- background-image: url("data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA==");
- margin-bottom: -5px; }
- span.pragmadots {
- /* Position: relative frees us up to make the dots
- look really nice without fucking up the layout and
- causing bulging in the parent container */
- position: relative;
- /* 1px down looks slightly nicer */
- top: 1px;
- padding: 2px;
- background-color: #e8e8e8;
- border-radius: 4px;
- margin: 0 2px;
- cursor: pointer;
- font-size: 0.8em;
- }
- span.pragmadots:hover {
- background-color: #DBDBDB;
- }
- span.pragmawrap {
- display: none;
- }
- </style>
- <script type="text/javascript" src="dochack.js"></script>
- <script type="text/javascript">
- function main() {
- var pragmaDots = document.getElementsByClassName("pragmadots");
- for (var i = 0; i < pragmaDots.length; i++) {
- pragmaDots[i].onclick = function(event) {
- // Hide tease
- event.target.parentNode.style.display = "none";
- // Show actual
- event.target.parentNode.nextElementSibling.style.display = "inline";
- }
- }
- }
- </script>
- </head>
- <body onload="main()">
- <div class="document" id="documentId">
- <div class="container">
- <h1 class="title">$title</h1>
- $content
- <div class="row">
- <div class="twelve-columns footer">
- <span class="nim-sprite"></span>
- <br/>
- <small>Made with Nim. Generated: $date $time UTC</small>
- </div>
- </div>
- </div>
- </div>
- $analytics
- </body>
- </html>
- """
|