nimdoc.cfg 23 KB

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