nimdoc.cfg 22 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003
  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. /* Docgen styles */
  265. /* Links */
  266. a {
  267. color: #07b;
  268. text-decoration: none;
  269. }
  270. a span.Identifier {
  271. text-decoration: underline;
  272. text-decoration-color: #aab;
  273. }
  274. a.reference-toplevel {
  275. font-weight: bold;
  276. }
  277. a.toc-backref {
  278. text-decoration: none;
  279. color: #222; }
  280. a.link-seesrc {
  281. color: #607c9f;
  282. font-size: 0.9em;
  283. font-style: italic; }
  284. a:hover,
  285. a:focus {
  286. color: #607c9f;
  287. text-decoration: underline; }
  288. a:hover span.Identifier {
  289. color: #607c9f;
  290. }
  291. sub,
  292. sup {
  293. position: relative;
  294. font-size: 75%;
  295. line-height: 0;
  296. vertical-align: baseline; }
  297. sup {
  298. top: -0.5em; }
  299. sub {
  300. bottom: -0.25em; }
  301. img {
  302. width: auto;
  303. height: auto;
  304. max-width: 100%;
  305. vertical-align: middle;
  306. border: 0;
  307. -ms-interpolation-mode: bicubic; }
  308. @media print {
  309. * {
  310. color: black !important;
  311. text-shadow: none !important;
  312. background: transparent !important;
  313. box-shadow: none !important; }
  314. a,
  315. a:visited {
  316. text-decoration: underline; }
  317. a[href]:after {
  318. content: " (" attr(href) ")"; }
  319. abbr[title]:after {
  320. content: " (" attr(title) ")"; }
  321. .ir a:after,
  322. a[href^="javascript:"]:after,
  323. a[href^="#"]:after {
  324. content: ""; }
  325. pre,
  326. blockquote {
  327. border: 1px solid #999;
  328. page-break-inside: avoid; }
  329. thead {
  330. display: table-header-group; }
  331. tr,
  332. img {
  333. page-break-inside: avoid; }
  334. img {
  335. max-width: 100% !important; }
  336. @page {
  337. margin: 0.5cm; }
  338. h1 {
  339. page-break-before: always; }
  340. h1.title {
  341. page-break-before: avoid; }
  342. p,
  343. h2,
  344. h3 {
  345. orphans: 3;
  346. widows: 3; }
  347. h2,
  348. h3 {
  349. page-break-after: avoid; }
  350. }
  351. p {
  352. margin-top: 0.5em;
  353. margin-bottom: 0.5em;
  354. }
  355. small {
  356. font-size: 85%; }
  357. strong {
  358. font-weight: 600;
  359. font-size: 0.95em;
  360. color: #3c3c3c;
  361. }
  362. em {
  363. font-style: italic; }
  364. h1 {
  365. font-size: 1.8em;
  366. font-weight: 400;
  367. padding-bottom: .25em;
  368. border-bottom: 1px solid #aaa;
  369. margin-top: 2.5em;
  370. margin-bottom: 1em;
  371. line-height: 1.2em; }
  372. h1.title {
  373. padding-bottom: 1em;
  374. border-bottom: 0px;
  375. font-size: 2.5em;
  376. text-align: center;
  377. font-weight: 900;
  378. margin-top: 0.75em;
  379. margin-bottom: 0em;
  380. }
  381. h2 {
  382. font-size: 1.3em;
  383. margin-top: 2em; }
  384. h2.subtitle {
  385. text-align: center; }
  386. h3 {
  387. font-size: 1.125em;
  388. font-style: italic;
  389. margin-top: 1.5em; }
  390. h4 {
  391. font-size: 1.125em;
  392. margin-top: 1em; }
  393. h5 {
  394. font-size: 1.125em;
  395. margin-top: 0.75em; }
  396. h6 {
  397. font-size: 1.1em; }
  398. ul,
  399. ol {
  400. padding: 0;
  401. margin-top: 0.5em;
  402. margin-left: 0.75em; }
  403. ul ul,
  404. ul ol,
  405. ol ol,
  406. ol ul {
  407. margin-bottom: 0;
  408. margin-left: 1.25em; }
  409. li {
  410. list-style-type: circle;
  411. }
  412. ul.simple-boot li {
  413. list-style-type: none;
  414. margin-left: 0em;
  415. margin-bottom: 0.5em;
  416. }
  417. ol.simple > li, ul.simple > li {
  418. margin-bottom: 0.25em;
  419. margin-left: 0.4em }
  420. ul.simple.simple-toc > li {
  421. margin-top: 1em;
  422. }
  423. ul.simple-toc {
  424. list-style: none;
  425. font-size: 0.9em;
  426. margin-left: -0.3em;
  427. margin-top: 1em; }
  428. ul.simple-toc > li {
  429. list-style-type: none;
  430. }
  431. ul.simple-toc-section {
  432. list-style-type: circle;
  433. margin-left: 1em;
  434. color: #6c9aae; }
  435. ol.arabic {
  436. list-style: decimal; }
  437. ol.loweralpha {
  438. list-style: lower-alpha; }
  439. ol.upperalpha {
  440. list-style: upper-alpha; }
  441. ol.lowerroman {
  442. list-style: lower-roman; }
  443. ol.upperroman {
  444. list-style: upper-roman; }
  445. ul.auto-toc {
  446. list-style-type: none; }
  447. dl {
  448. margin-bottom: 1.5em; }
  449. dt {
  450. margin-bottom: -0.5em;
  451. margin-left: 0.0em; }
  452. dd {
  453. margin-left: 2.0em;
  454. margin-bottom: 3.0em;
  455. margin-top: 0.5em; }
  456. hr {
  457. margin: 2em 0;
  458. border: 0;
  459. border-top: 1px solid #aaa; }
  460. blockquote {
  461. font-size: 0.9em;
  462. font-style: italic;
  463. padding-left: 0.5em;
  464. margin-left: 0;
  465. border-left: 5px solid #bbc;
  466. }
  467. .pre {
  468. font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace;
  469. font-weight: 500;
  470. font-size: 0.85em;
  471. background-color: #f0f3ff;
  472. padding-left: 3px;
  473. padding-right: 3px;
  474. border-radius: 4px;
  475. }
  476. pre {
  477. font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace;
  478. color: #222;
  479. font-weight: 500;
  480. display: inline-block;
  481. box-sizing: border-box;
  482. min-width: 100%;
  483. padding: 0.5em;
  484. margin-top: 0.5em;
  485. margin-bottom: 0.5em;
  486. font-size: 0.85em;
  487. white-space: pre !important;
  488. overflow-y: hidden;
  489. overflow-x: visible;
  490. background-color: ghostwhite;
  491. border: 1px solid #dde;
  492. -webkit-border-radius: 6px;
  493. -moz-border-radius: 6px;
  494. border-radius: 6px; }
  495. .pre-scrollable {
  496. max-height: 340px;
  497. overflow-y: scroll; }
  498. /* Nim line-numbered tables */
  499. .line-nums-table {
  500. width: 100%;
  501. table-layout: fixed; }
  502. table.line-nums-table {
  503. border-radius: 4px;
  504. border: 1px solid #cccccc;
  505. background-color: ghostwhite;
  506. border-collapse: separate;
  507. margin-top: 15px;
  508. margin-bottom: 25px; }
  509. .line-nums-table tbody {
  510. border: none; }
  511. .line-nums-table td pre {
  512. border: none;
  513. background-color: transparent; }
  514. .line-nums-table td.blob-line-nums {
  515. width: 28px; }
  516. .line-nums-table td.blob-line-nums pre {
  517. color: #b0b0b0;
  518. -webkit-filter: opacity(75%);
  519. text-align: right;
  520. border-color: transparent;
  521. background-color: transparent;
  522. padding-left: 0px;
  523. margin-left: 0px;
  524. padding-right: 0px;
  525. margin-right: 0px; }
  526. table {
  527. max-width: 100%;
  528. background-color: transparent;
  529. margin-top: 0.5em;
  530. margin-bottom: 1.5em;
  531. border-collapse: collapse;
  532. border-color: #ccc;
  533. border-spacing: 0;
  534. font-size: 0.9em;
  535. }
  536. table th, table td {
  537. padding: 0px 0.5em 0px;
  538. }
  539. table th {
  540. background-color: #e8e8e8;
  541. font-weight: bold; }
  542. table th.docinfo-name {
  543. background-color: transparent;
  544. }
  545. table tr:hover {
  546. background-color: ghostwhite; }
  547. /* rst2html default used to remove borders from tables and images */
  548. .borderless, table.borderless td, table.borderless th {
  549. border: 0; }
  550. table.borderless td, table.borderless th {
  551. /* Override padding for "table.docutils td" with "! important".
  552. The right padding separates the table cells. */
  553. padding: 0 0.5em 0 0 !important; }
  554. .first {
  555. /* Override more specific margin styles with "! important". */
  556. margin-top: 0 !important; }
  557. .last, .with-subtitle {
  558. margin-bottom: 0 !important; }
  559. .hidden {
  560. display: none; }
  561. blockquote.epigraph {
  562. margin: 2em 5em; }
  563. dl.docutils dd {
  564. margin-bottom: 0.5em; }
  565. object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
  566. overflow: hidden; }
  567. div.figure {
  568. margin-left: 2em;
  569. margin-right: 2em; }
  570. div.footer, div.header {
  571. clear: both;
  572. text-align: center;
  573. color: #666;
  574. font-size: smaller; }
  575. div.footer {
  576. padding-top: 5em;
  577. }
  578. div.line-block {
  579. display: block;
  580. margin-top: 1em;
  581. margin-bottom: 1em; }
  582. div.line-block div.line-block {
  583. margin-top: 0;
  584. margin-bottom: 0;
  585. margin-left: 1.5em; }
  586. div.topic {
  587. margin: 2em; }
  588. div.search_results {
  589. background-color: antiquewhite;
  590. margin: 3em;
  591. padding: 1em;
  592. border: 1px solid #4d4d4d;
  593. }
  594. div#global-links ul {
  595. margin-left: 0;
  596. list-style-type: none;
  597. }
  598. div#global-links > simple-boot {
  599. margin-left: 3em;
  600. }
  601. hr.docutils {
  602. width: 75%; }
  603. img.align-left, .figure.align-left, object.align-left {
  604. clear: left;
  605. float: left;
  606. margin-right: 1em; }
  607. img.align-right, .figure.align-right, object.align-right {
  608. clear: right;
  609. float: right;
  610. margin-left: 1em; }
  611. img.align-center, .figure.align-center, object.align-center {
  612. display: block;
  613. margin-left: auto;
  614. margin-right: auto; }
  615. .align-left {
  616. text-align: left; }
  617. .align-center {
  618. clear: both;
  619. text-align: center; }
  620. .align-right {
  621. text-align: right; }
  622. /* reset inner alignment in figures */
  623. div.align-right {
  624. text-align: inherit; }
  625. p.attribution {
  626. text-align: right;
  627. margin-left: 50%; }
  628. p.caption {
  629. font-style: italic; }
  630. p.credits {
  631. font-style: italic;
  632. font-size: smaller; }
  633. p.label {
  634. white-space: nowrap; }
  635. p.rubric {
  636. font-weight: bold;
  637. font-size: larger;
  638. color: maroon;
  639. text-align: center; }
  640. p.topic-title {
  641. font-weight: bold; }
  642. pre.address {
  643. margin-bottom: 0;
  644. margin-top: 0;
  645. font: inherit; }
  646. pre.literal-block, pre.doctest-block, pre.math, pre.code {
  647. margin-left: 2em;
  648. margin-right: 2em; }
  649. pre.code .ln {
  650. color: grey; }
  651. /* line numbers */
  652. pre.code, code {
  653. background-color: #eeeeee; }
  654. pre.code .comment, code .comment {
  655. color: #5c6576; }
  656. pre.code .keyword, code .keyword {
  657. color: #3B0D06;
  658. font-weight: bold; }
  659. pre.code .literal.string, code .literal.string {
  660. color: #0c5404; }
  661. pre.code .name.builtin, code .name.builtin {
  662. color: #352b84; }
  663. pre.code .deleted, code .deleted {
  664. background-color: #DEB0A1; }
  665. pre.code .inserted, code .inserted {
  666. background-color: #A3D289; }
  667. span.classifier {
  668. font-style: oblique; }
  669. span.classifier-delimiter {
  670. font-weight: bold; }
  671. span.option {
  672. white-space: nowrap; }
  673. span.problematic {
  674. color: #b30000; }
  675. span.section-subtitle {
  676. /* font-size relative to parent (h1..h6 element) */
  677. font-size: 80%; }
  678. span.DecNumber {
  679. color: #252dbe; }
  680. span.BinNumber {
  681. color: #252dbe; }
  682. span.HexNumber {
  683. color: #252dbe; }
  684. span.OctNumber {
  685. color: #252dbe; }
  686. span.FloatNumber {
  687. color: #252dbe; }
  688. span.Identifier {
  689. color: #222; }
  690. span.Keyword {
  691. font-weight: 600;
  692. color: #5e8f60; }
  693. span.StringLit {
  694. color: #a4255b; }
  695. span.LongStringLit {
  696. color: #a4255b; }
  697. span.CharLit {
  698. color: #a4255b; }
  699. span.EscapeSequence {
  700. color: black; }
  701. span.Operator {
  702. color: black; }
  703. span.Punctuation {
  704. color: black; }
  705. span.Comment, span.LongComment {
  706. font-style: italic;
  707. font-weight: 400;
  708. color: #484a86; }
  709. span.RegularExpression {
  710. color: darkviolet; }
  711. span.TagStart {
  712. color: darkviolet; }
  713. span.TagEnd {
  714. color: darkviolet; }
  715. span.Key {
  716. color: #252dbe; }
  717. span.Value {
  718. color: #252dbe; }
  719. span.RawData {
  720. color: #a4255b; }
  721. span.Assembler {
  722. color: #252dbe; }
  723. span.Preprocessor {
  724. color: #252dbe; }
  725. span.Directive {
  726. color: #252dbe; }
  727. span.Command, span.Rule, span.Hyperlink, span.Label, span.Reference,
  728. span.Other {
  729. color: black; }
  730. /* Pop type, const, proc, and iterator defs in nim def blocks */
  731. dt pre > span.Identifier, dt pre > span.Operator {
  732. color: #155da4;
  733. font-weight: 700; }
  734. dt pre > span.Keyword ~ span.Identifier, dt pre > span.Identifier ~ span.Identifier,
  735. dt pre > span.Operator ~ span.Identifier, dt pre > span.Other ~ span.Identifier {
  736. color: inherit;
  737. font-weight: inherit; }
  738. /* Nim sprite for the footer (taken from main page favicon) */
  739. .nim-sprite {
  740. display: inline-block;
  741. height: 16px;
  742. width: 16px;
  743. background-position: 0 0;
  744. background-size: 16px 16px;
  745. -webkit-filter: opacity(50%);
  746. background-repeat: no-repeat;
  747. 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==");
  748. margin-bottom: -5px; }
  749. span.pragmadots {
  750. /* Position: relative frees us up to make the dots
  751. look really nice without fucking up the layout and
  752. causing bulging in the parent container */
  753. position: relative;
  754. /* 1px down looks slightly nicer */
  755. top: 1px;
  756. padding: 2px;
  757. background-color: #e8e8e8;
  758. border-radius: 4px;
  759. margin: 0 2px;
  760. cursor: pointer;
  761. font-size: 0.8em;
  762. }
  763. span.pragmadots:hover {
  764. background-color: #DBDBDB;
  765. }
  766. span.pragmawrap {
  767. display: none;
  768. }
  769. span.attachedType {
  770. display: none;
  771. visibility: hidden;
  772. }
  773. </style>
  774. <script type="text/javascript" src="dochack.js"></script>
  775. <script type="text/javascript">
  776. function main() {
  777. var pragmaDots = document.getElementsByClassName("pragmadots");
  778. for (var i = 0; i < pragmaDots.length; i++) {
  779. pragmaDots[i].onclick = function(event) {
  780. // Hide tease
  781. event.target.parentNode.style.display = "none";
  782. // Show actual
  783. event.target.parentNode.nextElementSibling.style.display = "inline";
  784. }
  785. }
  786. }
  787. </script>
  788. </head>
  789. <body onload="main()">
  790. <div class="document" id="documentId">
  791. <div class="container">
  792. <h1 class="title">$title</h1>
  793. $content
  794. <div class="row">
  795. <div class="twelve-columns footer">
  796. <span class="nim-sprite"></span>
  797. <br/>
  798. <small>Made with Nim. Generated: $date $time UTC</small>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. $analytics
  804. </body>
  805. </html>
  806. """