nimdoc.cfg 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020
  1. # This is the config file for the documentation generator.
  2. # (c) 2016 Andreas Rumpf
  3. # Feel free to edit the templates as you need. If you modify this file, it
  4. # might be worth updating the hardcoded values in packages/docutils/rstgen.nim
  5. split.item.toc = "20"
  6. # too long entries in the table of contents wrap around
  7. # after this number of characters
  8. doc.section = """
  9. <div class="section" id="$sectionID">
  10. <h1><a class="toc-backref" href="#$sectionID">$sectionTitle</a></h1>
  11. <dl class="item">
  12. $content
  13. </dl></div>
  14. """
  15. doc.section.toc = """
  16. <li>
  17. <a class="reference reference-toplevel" href="#$sectionID" id="$sectionTitleID">$sectionTitle</a>
  18. <ul class="simple simple-toc-section">
  19. $content
  20. </ul>
  21. </li>
  22. """
  23. # Chunk of HTML emitted for each entry in the HTML table of contents.
  24. # Available variables are:
  25. # * $desc: the actual docstring of the item.
  26. # * $header: the full version of name, including types, pragmas, tags, etc.
  27. # * $header_plain: like header but without HTML, for attribute embedding.
  28. # * $itemID: numerical unique entry of the item in the HTML.
  29. # * $itemSym: short symbolic name of the item for easier hyperlinking.
  30. # * $itemSymEnc: quoted version for URLs or attributes.
  31. # * $itemSymOrID: the symbolic name or the ID if that is not unique.
  32. # * $itemSymOrIDEnc: quoted version for URLs or attributes.
  33. # * $name: reduced name of the item.
  34. # * $seeSrc: generated HTML from doc.item.seesrc (if some switches are used).
  35. doc.item = """
  36. <a id="$itemSymOrID"></a>
  37. <dt><pre>$header</pre></dt>
  38. <dd>
  39. $deprecationMsg
  40. $desc
  41. $seeSrc
  42. </dd>
  43. """
  44. # Chunk of HTML emitted for each entry in the HTML table of contents.
  45. # See doc.item for available substitution variables.
  46. doc.item.toc = """
  47. <li><a class="reference" href="#$itemSymOrIDEnc"
  48. title="$header_plain">$name<span class="attachedType">$attype</span></a></li>
  49. """
  50. # HTML rendered for doc.item's seeSrc variable. Note that this will render to
  51. # the empty string if you don't pass anything through --docSeeSrcURL. Available
  52. # substitutaion variables here are:
  53. # * $commit: branch/commit to use in source link.
  54. # * $devel: branch to use in edit link.
  55. # * $path: relative path to the file being processed.
  56. # * $line: line of the item in the original source file.
  57. # * $url: whatever you did pass through the --docSeeSrcUrl switch (which also
  58. # gets variables path/line replaced!)
  59. doc.item.seesrc = """&nbsp;&nbsp;<a
  60. href="${url}/tree/${commit}/${path}#L${line}"
  61. class="link-seesrc" target="_blank">Source</a>
  62. <a href="${url}/edit/${devel}/${path}#L${line}" class="link-seesrc" target="_blank" >Edit</a>
  63. """
  64. doc.deprecationmsg = """
  65. <div class="deprecation-message">
  66. <b>$label</b> $message
  67. </div>
  68. """
  69. doc.toc = """
  70. <ul class="simple simple-toc" id="toc-list">
  71. $content
  72. </ul>
  73. """
  74. doc.body_toc = """
  75. <div class="row">
  76. <div class="three columns">
  77. <div id="global-links">
  78. <ul class="simple-boot">
  79. <li>
  80. <a href="manual.html">Manual</a>
  81. </li>
  82. <li>
  83. <a href="lib.html">Standard library</a>
  84. </li>
  85. <li>
  86. <a href="theindex.html">Index</a>
  87. </li>
  88. </ul>
  89. </div>
  90. <div id="searchInputDiv">
  91. Search: <input type="text" id="searchInput"
  92. onkeyup="search()" />
  93. </div>
  94. $tableofcontents
  95. </div>
  96. <div class="nine columns" id="content">
  97. <div id="tocRoot"></div>
  98. $deprecationMsg
  99. <p class="module-desc">$moduledesc</p>
  100. $content
  101. </div>
  102. </div>
  103. """
  104. @if boot:
  105. # This is enabled with the "boot" directive to generate
  106. # the compiler documentation.
  107. # As a user, tweak the block below instead.
  108. # You can add your own global-links entries
  109. doc.body_toc_group = """
  110. <div class="row">
  111. <div class="three columns">
  112. <div id="global-links">
  113. <ul class="simple-boot">
  114. <li>
  115. <a href="manual.html">Manual</a>
  116. </li>
  117. <li>
  118. <a href="lib.html">Standard library</a>
  119. </li>
  120. <li>
  121. <a href="theindex.html">Index</a>
  122. </li>
  123. </ul>
  124. </div>
  125. <div id="searchInputDiv">
  126. Search: <input type="text" id="searchInput"
  127. onkeyup="search()" />
  128. </div>
  129. <div class="search-groupby">
  130. Group by:
  131. <select onchange="groupBy(this.value)">
  132. <option value="section">Section</option>
  133. <option value="type">Type</option>
  134. </select>
  135. </div>
  136. $tableofcontents
  137. </div>
  138. <div class="nine columns" id="content">
  139. <div id="tocRoot"></div>
  140. $deprecationMsg
  141. <p class="module-desc">$moduledesc</p>
  142. $content
  143. </div>
  144. </div>
  145. """
  146. @else
  147. doc.body_toc_group = """
  148. <div class="row">
  149. <div class="three columns">
  150. <div id="global-links">
  151. <ul class="simple">
  152. </ul>
  153. </div>
  154. <div id="searchInputDiv">
  155. Search: <input type="text" id="searchInput"
  156. onkeyup="search()" />
  157. </div>
  158. <div>
  159. Group by:
  160. <select onchange="groupBy(this.value)">
  161. <option value="section">Section</option>
  162. <option value="type">Type</option>
  163. </select>
  164. </div>
  165. $tableofcontents
  166. </div>
  167. <div class="nine columns" id="content">
  168. <div id="tocRoot"></div>
  169. $deprecationMsg
  170. <p class="module-desc">$moduledesc</p>
  171. $content
  172. </div>
  173. </div>
  174. """
  175. @end
  176. doc.body_no_toc = """
  177. $moduledesc
  178. $content
  179. """
  180. doc.listing_start = "<pre class=\"listing\">"
  181. doc.listing_end = "</pre>"
  182. # * $analytics: Google analytics location, includes <script> tags
  183. doc.file = """<?xml version="1.0" encoding="utf-8" ?>
  184. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  185. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  186. <!-- This file is generated by Nim. -->
  187. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  188. <head>
  189. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  190. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  191. <!-- Favicon -->
  192. <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=="/>
  193. <!-- Google fonts -->
  194. <link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
  195. <link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
  196. <!-- CSS -->
  197. <title>$title</title>
  198. <style type="text/css" >
  199. /*
  200. Stylesheet for use with Docutils/rst2html.
  201. See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
  202. customize this style sheet.
  203. Modified from Chad Skeeters' rst2html-style
  204. https://bitbucket.org/cskeeters/rst2html-style/
  205. Modified by Boyd Greenfield and narimiran
  206. */
  207. html {
  208. font-size: 100%;
  209. -webkit-text-size-adjust: 100%;
  210. -ms-text-size-adjust: 100%; }
  211. body {
  212. font-family: "Lato", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
  213. font-weight: 400;
  214. font-size: 1.125em;
  215. line-height: 1.5;
  216. color: #222;
  217. background-color: #FCFCFC; }
  218. /* Skeleton grid */
  219. .container {
  220. position: relative;
  221. width: 100%;
  222. max-width: 1050px;
  223. margin: 0 auto;
  224. padding: 0;
  225. box-sizing: border-box; }
  226. .column,
  227. .columns {
  228. width: 100%;
  229. float: left;
  230. box-sizing: border-box;
  231. margin-left: 1%;
  232. }
  233. .column:first-child,
  234. .columns:first-child {
  235. margin-left: 0; }
  236. .three.columns {
  237. width: 19%; }
  238. .nine.columns {
  239. width: 80.0%; }
  240. .twelve.columns {
  241. width: 100%;
  242. margin-left: 0; }
  243. @media screen and (max-width: 860px) {
  244. .three.columns {
  245. display: none;
  246. }
  247. .nine.columns {
  248. width: 98.0%;
  249. }
  250. body {
  251. font-size: 1em;
  252. line-height: 1.35;
  253. }
  254. }
  255. cite {
  256. font-style: italic !important; }
  257. /* Nim search input */
  258. div#searchInputDiv {
  259. margin-bottom: 1em;
  260. }
  261. input#searchInput {
  262. width: 80%;
  263. }
  264. /*
  265. * Some custom formatting for input forms.
  266. * This also fixes input form colors on Firefox with a dark system theme on Linux.
  267. */
  268. input {
  269. -moz-appearance: none;
  270. color: #333;
  271. background-color: #f8f8f8;
  272. border: 1px solid #aaa;
  273. font-family: "Lato", "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
  274. font-size: 0.9em;
  275. padding: 6px;
  276. }
  277. input:focus {
  278. border: 1px solid #1fa0eb;
  279. box-shadow: 0 0 2px #1fa0eb;
  280. }
  281. /* Docgen styles */
  282. /* Links */
  283. a {
  284. color: #07b;
  285. text-decoration: none;
  286. }
  287. a span.Identifier {
  288. text-decoration: underline;
  289. text-decoration-color: #aab;
  290. }
  291. a.reference-toplevel {
  292. font-weight: bold;
  293. }
  294. a.toc-backref {
  295. text-decoration: none;
  296. color: #222; }
  297. a.link-seesrc {
  298. color: #607c9f;
  299. font-size: 0.9em;
  300. font-style: italic; }
  301. a:hover,
  302. a:focus {
  303. color: #607c9f;
  304. text-decoration: underline; }
  305. a:hover span.Identifier {
  306. color: #607c9f;
  307. }
  308. sub,
  309. sup {
  310. position: relative;
  311. font-size: 75%;
  312. line-height: 0;
  313. vertical-align: baseline; }
  314. sup {
  315. top: -0.5em; }
  316. sub {
  317. bottom: -0.25em; }
  318. img {
  319. width: auto;
  320. height: auto;
  321. max-width: 100%;
  322. vertical-align: middle;
  323. border: 0;
  324. -ms-interpolation-mode: bicubic; }
  325. @media print {
  326. * {
  327. color: black !important;
  328. text-shadow: none !important;
  329. background: transparent !important;
  330. box-shadow: none !important; }
  331. a,
  332. a:visited {
  333. text-decoration: underline; }
  334. a[href]:after {
  335. content: " (" attr(href) ")"; }
  336. abbr[title]:after {
  337. content: " (" attr(title) ")"; }
  338. .ir a:after,
  339. a[href^="javascript:"]:after,
  340. a[href^="#"]:after {
  341. content: ""; }
  342. pre,
  343. blockquote {
  344. border: 1px solid #999;
  345. page-break-inside: avoid; }
  346. thead {
  347. display: table-header-group; }
  348. tr,
  349. img {
  350. page-break-inside: avoid; }
  351. img {
  352. max-width: 100% !important; }
  353. @page {
  354. margin: 0.5cm; }
  355. h1 {
  356. page-break-before: always; }
  357. h1.title {
  358. page-break-before: avoid; }
  359. p,
  360. h2,
  361. h3 {
  362. orphans: 3;
  363. widows: 3; }
  364. h2,
  365. h3 {
  366. page-break-after: avoid; }
  367. }
  368. p {
  369. margin-top: 0.5em;
  370. margin-bottom: 0.5em;
  371. }
  372. small {
  373. font-size: 85%; }
  374. strong {
  375. font-weight: 600;
  376. font-size: 0.95em;
  377. color: #3c3c3c;
  378. }
  379. em {
  380. font-style: italic; }
  381. h1 {
  382. font-size: 1.8em;
  383. font-weight: 400;
  384. padding-bottom: .25em;
  385. border-bottom: 1px solid #aaa;
  386. margin-top: 2.5em;
  387. margin-bottom: 1em;
  388. line-height: 1.2em; }
  389. h1.title {
  390. padding-bottom: 1em;
  391. border-bottom: 0px;
  392. font-size: 2.5em;
  393. text-align: center;
  394. font-weight: 900;
  395. margin-top: 0.75em;
  396. margin-bottom: 0em;
  397. }
  398. h2 {
  399. font-size: 1.3em;
  400. margin-top: 2em; }
  401. h2.subtitle {
  402. text-align: center; }
  403. h3 {
  404. font-size: 1.125em;
  405. font-style: italic;
  406. margin-top: 1.5em; }
  407. h4 {
  408. font-size: 1.125em;
  409. margin-top: 1em; }
  410. h5 {
  411. font-size: 1.125em;
  412. margin-top: 0.75em; }
  413. h6 {
  414. font-size: 1.1em; }
  415. ul,
  416. ol {
  417. padding: 0;
  418. margin-top: 0.5em;
  419. margin-left: 0.75em; }
  420. ul ul,
  421. ul ol,
  422. ol ol,
  423. ol ul {
  424. margin-bottom: 0;
  425. margin-left: 1.25em; }
  426. li {
  427. list-style-type: circle;
  428. }
  429. ul.simple-boot li {
  430. list-style-type: none;
  431. margin-left: 0em;
  432. margin-bottom: 0.5em;
  433. }
  434. ol.simple > li, ul.simple > li {
  435. margin-bottom: 0.25em;
  436. margin-left: 0.4em }
  437. ul.simple.simple-toc > li {
  438. margin-top: 1em;
  439. }
  440. ul.simple-toc {
  441. list-style: none;
  442. font-size: 0.9em;
  443. margin-left: -0.3em;
  444. margin-top: 1em; }
  445. ul.simple-toc > li {
  446. list-style-type: none;
  447. }
  448. ul.simple-toc-section {
  449. list-style-type: circle;
  450. margin-left: 1em;
  451. color: #6c9aae; }
  452. ol.arabic {
  453. list-style: decimal; }
  454. ol.loweralpha {
  455. list-style: lower-alpha; }
  456. ol.upperalpha {
  457. list-style: upper-alpha; }
  458. ol.lowerroman {
  459. list-style: lower-roman; }
  460. ol.upperroman {
  461. list-style: upper-roman; }
  462. ul.auto-toc {
  463. list-style-type: none; }
  464. dl {
  465. margin-bottom: 1.5em; }
  466. dt {
  467. margin-bottom: -0.5em;
  468. margin-left: 0.0em; }
  469. dd {
  470. margin-left: 2.0em;
  471. margin-bottom: 3.0em;
  472. margin-top: 0.5em; }
  473. hr {
  474. margin: 2em 0;
  475. border: 0;
  476. border-top: 1px solid #aaa; }
  477. blockquote {
  478. font-size: 0.9em;
  479. font-style: italic;
  480. padding-left: 0.5em;
  481. margin-left: 0;
  482. border-left: 5px solid #bbc;
  483. }
  484. .pre {
  485. font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace;
  486. font-weight: 500;
  487. font-size: 0.85em;
  488. background-color: #f0f3ff;
  489. padding-left: 3px;
  490. padding-right: 3px;
  491. border-radius: 4px;
  492. }
  493. pre {
  494. font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace;
  495. color: #222;
  496. font-weight: 500;
  497. display: inline-block;
  498. box-sizing: border-box;
  499. min-width: 100%;
  500. padding: 0.5em;
  501. margin-top: 0.5em;
  502. margin-bottom: 0.5em;
  503. font-size: 0.85em;
  504. white-space: pre !important;
  505. overflow-y: hidden;
  506. overflow-x: visible;
  507. background-color: ghostwhite;
  508. border: 1px solid #dde;
  509. -webkit-border-radius: 6px;
  510. -moz-border-radius: 6px;
  511. border-radius: 6px; }
  512. .pre-scrollable {
  513. max-height: 340px;
  514. overflow-y: scroll; }
  515. /* Nim line-numbered tables */
  516. .line-nums-table {
  517. width: 100%;
  518. table-layout: fixed; }
  519. table.line-nums-table {
  520. border-radius: 4px;
  521. border: 1px solid #cccccc;
  522. background-color: ghostwhite;
  523. border-collapse: separate;
  524. margin-top: 15px;
  525. margin-bottom: 25px; }
  526. .line-nums-table tbody {
  527. border: none; }
  528. .line-nums-table td pre {
  529. border: none;
  530. background-color: transparent; }
  531. .line-nums-table td.blob-line-nums {
  532. width: 28px; }
  533. .line-nums-table td.blob-line-nums pre {
  534. color: #b0b0b0;
  535. -webkit-filter: opacity(75%);
  536. text-align: right;
  537. border-color: transparent;
  538. background-color: transparent;
  539. padding-left: 0px;
  540. margin-left: 0px;
  541. padding-right: 0px;
  542. margin-right: 0px; }
  543. table {
  544. max-width: 100%;
  545. background-color: transparent;
  546. margin-top: 0.5em;
  547. margin-bottom: 1.5em;
  548. border-collapse: collapse;
  549. border-color: #ccc;
  550. border-spacing: 0;
  551. font-size: 0.9em;
  552. }
  553. table th, table td {
  554. padding: 0px 0.5em 0px;
  555. }
  556. table th {
  557. background-color: #e8e8e8;
  558. font-weight: bold; }
  559. table th.docinfo-name {
  560. background-color: transparent;
  561. }
  562. table tr:hover {
  563. background-color: ghostwhite; }
  564. /* rst2html default used to remove borders from tables and images */
  565. .borderless, table.borderless td, table.borderless th {
  566. border: 0; }
  567. table.borderless td, table.borderless th {
  568. /* Override padding for "table.docutils td" with "! important".
  569. The right padding separates the table cells. */
  570. padding: 0 0.5em 0 0 !important; }
  571. .first {
  572. /* Override more specific margin styles with "! important". */
  573. margin-top: 0 !important; }
  574. .last, .with-subtitle {
  575. margin-bottom: 0 !important; }
  576. .hidden {
  577. display: none; }
  578. blockquote.epigraph {
  579. margin: 2em 5em; }
  580. dl.docutils dd {
  581. margin-bottom: 0.5em; }
  582. object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
  583. overflow: hidden; }
  584. div.figure {
  585. margin-left: 2em;
  586. margin-right: 2em; }
  587. div.footer, div.header {
  588. clear: both;
  589. text-align: center;
  590. color: #666;
  591. font-size: smaller; }
  592. div.footer {
  593. padding-top: 5em;
  594. }
  595. div.line-block {
  596. display: block;
  597. margin-top: 1em;
  598. margin-bottom: 1em; }
  599. div.line-block div.line-block {
  600. margin-top: 0;
  601. margin-bottom: 0;
  602. margin-left: 1.5em; }
  603. div.topic {
  604. margin: 2em; }
  605. div.search_results {
  606. background-color: antiquewhite;
  607. margin: 3em;
  608. padding: 1em;
  609. border: 1px solid #4d4d4d;
  610. }
  611. div#global-links ul {
  612. margin-left: 0;
  613. list-style-type: none;
  614. }
  615. div#global-links > simple-boot {
  616. margin-left: 3em;
  617. }
  618. hr.docutils {
  619. width: 75%; }
  620. img.align-left, .figure.align-left, object.align-left {
  621. clear: left;
  622. float: left;
  623. margin-right: 1em; }
  624. img.align-right, .figure.align-right, object.align-right {
  625. clear: right;
  626. float: right;
  627. margin-left: 1em; }
  628. img.align-center, .figure.align-center, object.align-center {
  629. display: block;
  630. margin-left: auto;
  631. margin-right: auto; }
  632. .align-left {
  633. text-align: left; }
  634. .align-center {
  635. clear: both;
  636. text-align: center; }
  637. .align-right {
  638. text-align: right; }
  639. /* reset inner alignment in figures */
  640. div.align-right {
  641. text-align: inherit; }
  642. p.attribution {
  643. text-align: right;
  644. margin-left: 50%; }
  645. p.caption {
  646. font-style: italic; }
  647. p.credits {
  648. font-style: italic;
  649. font-size: smaller; }
  650. p.label {
  651. white-space: nowrap; }
  652. p.rubric {
  653. font-weight: bold;
  654. font-size: larger;
  655. color: maroon;
  656. text-align: center; }
  657. p.topic-title {
  658. font-weight: bold; }
  659. pre.address {
  660. margin-bottom: 0;
  661. margin-top: 0;
  662. font: inherit; }
  663. pre.literal-block, pre.doctest-block, pre.math, pre.code {
  664. margin-left: 2em;
  665. margin-right: 2em; }
  666. pre.code .ln {
  667. color: grey; }
  668. /* line numbers */
  669. pre.code, code {
  670. background-color: #eeeeee; }
  671. pre.code .comment, code .comment {
  672. color: #5c6576; }
  673. pre.code .keyword, code .keyword {
  674. color: #3B0D06;
  675. font-weight: bold; }
  676. pre.code .literal.string, code .literal.string {
  677. color: #0c5404; }
  678. pre.code .name.builtin, code .name.builtin {
  679. color: #352b84; }
  680. pre.code .deleted, code .deleted {
  681. background-color: #DEB0A1; }
  682. pre.code .inserted, code .inserted {
  683. background-color: #A3D289; }
  684. span.classifier {
  685. font-style: oblique; }
  686. span.classifier-delimiter {
  687. font-weight: bold; }
  688. span.option {
  689. white-space: nowrap; }
  690. span.problematic {
  691. color: #b30000; }
  692. span.section-subtitle {
  693. /* font-size relative to parent (h1..h6 element) */
  694. font-size: 80%; }
  695. span.DecNumber {
  696. color: #252dbe; }
  697. span.BinNumber {
  698. color: #252dbe; }
  699. span.HexNumber {
  700. color: #252dbe; }
  701. span.OctNumber {
  702. color: #252dbe; }
  703. span.FloatNumber {
  704. color: #252dbe; }
  705. span.Identifier {
  706. color: #222; }
  707. span.Keyword {
  708. font-weight: 600;
  709. color: #5e8f60; }
  710. span.StringLit {
  711. color: #a4255b; }
  712. span.LongStringLit {
  713. color: #a4255b; }
  714. span.CharLit {
  715. color: #a4255b; }
  716. span.EscapeSequence {
  717. color: black; }
  718. span.Operator {
  719. color: black; }
  720. span.Punctuation {
  721. color: black; }
  722. span.Comment, span.LongComment {
  723. font-style: italic;
  724. font-weight: 400;
  725. color: #484a86; }
  726. span.RegularExpression {
  727. color: darkviolet; }
  728. span.TagStart {
  729. color: darkviolet; }
  730. span.TagEnd {
  731. color: darkviolet; }
  732. span.Key {
  733. color: #252dbe; }
  734. span.Value {
  735. color: #252dbe; }
  736. span.RawData {
  737. color: #a4255b; }
  738. span.Assembler {
  739. color: #252dbe; }
  740. span.Preprocessor {
  741. color: #252dbe; }
  742. span.Directive {
  743. color: #252dbe; }
  744. span.Command, span.Rule, span.Hyperlink, span.Label, span.Reference,
  745. span.Other {
  746. color: black; }
  747. /* Pop type, const, proc, and iterator defs in nim def blocks */
  748. dt pre > span.Identifier, dt pre > span.Operator {
  749. color: #155da4;
  750. font-weight: 700; }
  751. dt pre > span.Keyword ~ span.Identifier, dt pre > span.Identifier ~ span.Identifier,
  752. dt pre > span.Operator ~ span.Identifier, dt pre > span.Other ~ span.Identifier {
  753. color: inherit;
  754. font-weight: inherit; }
  755. /* Nim sprite for the footer (taken from main page favicon) */
  756. .nim-sprite {
  757. display: inline-block;
  758. height: 16px;
  759. width: 16px;
  760. background-position: 0 0;
  761. background-size: 16px 16px;
  762. -webkit-filter: opacity(50%);
  763. background-repeat: no-repeat;
  764. 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==");
  765. margin-bottom: -5px; }
  766. span.pragmadots {
  767. /* Position: relative frees us up to make the dots
  768. look really nice without fucking up the layout and
  769. causing bulging in the parent container */
  770. position: relative;
  771. /* 1px down looks slightly nicer */
  772. top: 1px;
  773. padding: 2px;
  774. background-color: #e8e8e8;
  775. border-radius: 4px;
  776. margin: 0 2px;
  777. cursor: pointer;
  778. font-size: 0.8em;
  779. }
  780. span.pragmadots:hover {
  781. background-color: #DBDBDB;
  782. }
  783. span.pragmawrap {
  784. display: none;
  785. }
  786. span.attachedType {
  787. display: none;
  788. visibility: hidden;
  789. }
  790. </style>
  791. <script type="text/javascript" src="dochack.js"></script>
  792. <script type="text/javascript">
  793. function main() {
  794. var pragmaDots = document.getElementsByClassName("pragmadots");
  795. for (var i = 0; i < pragmaDots.length; i++) {
  796. pragmaDots[i].onclick = function(event) {
  797. // Hide tease
  798. event.target.parentNode.style.display = "none";
  799. // Show actual
  800. event.target.parentNode.nextElementSibling.style.display = "inline";
  801. }
  802. }
  803. }
  804. </script>
  805. </head>
  806. <body onload="main()">
  807. <div class="document" id="documentId">
  808. <div class="container">
  809. <h1 class="title">$title</h1>
  810. $content
  811. <div class="row">
  812. <div class="twelve-columns footer">
  813. <span class="nim-sprite"></span>
  814. <br/>
  815. <small>Made with Nim. Generated: $date $time UTC</small>
  816. </div>
  817. </div>
  818. </div>
  819. </div>
  820. $analytics
  821. </body>
  822. </html>
  823. """