From 821a6ef4c26bfaca02f778b3a8634a27ace6dc2f Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Mon, 27 Nov 2017 10:41:55 +0000 Subject: Add links to documentation (#6780) Related to #4219 --- config/nimdoc.cfg | 72 ++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 63 insertions(+), 9 deletions(-) (limited to 'config') diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg index 3e656cb8f..0c3f204a5 100644 --- a/config/nimdoc.cfg +++ b/config/nimdoc.cfg @@ -88,9 +88,27 @@ doc.body_toc = """ """ +@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 = """
+
Search: @@ -112,6 +130,37 @@ doc.body_toc_group = """
""" +else: + +doc.body_toc_group = """ +
+
+ +
+ Search: +
+
+ Group by: + +
+ $tableofcontents +
+
+
+

$moduledesc

+ $content +
+
+""" +@end + doc.body_no_toc = """ $moduledesc $content @@ -1268,15 +1317,15 @@ dt pre > span.Operator ~ span.Identifier, dt pre > span.Operator ~ span.Operator 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; } - div.pragma { - display: none; - } - span.pragmabegin { - cursor: pointer; - } - span.pragmaend { - cursor: pointer; - } +div.pragma { + display: none; +} +span.pragmabegin { + cursor: pointer; +} +span.pragmaend { + cursor: pointer; +} div.search_results { background-color: antiquewhite; @@ -1284,6 +1333,11 @@ div.search_results { padding: 1em; border: 1px solid #4d4d4d; } + +div#global-links ul { + margin-left: 0; + list-style-type: none; +} -- cgit 1.4.1-2-gfad0 itle='Blame the previous revision' href='/ahoang/Nim/blame/tools/nimgrep.nim?h=devel&id=ee445dc02297802136b5005408f6807820864c7f'>^
1
2
3
4
5
6
7
8
9
10