diff options
author | Miran <narimiran@disroot.org> | 2019-03-08 13:55:27 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-03-08 13:55:26 +0100 |
commit | bba3a20e7ca50456fa1fc96ec4fa7e917113a840 (patch) | |
tree | 112c145c858ee0baa3b3d513edd98a1bff7a6a1b /compiler | |
parent | 3294ce3831b2a30f074ccaec3ae350296a34c1f0 (diff) | |
download | Nim-bba3a20e7ca50456fa1fc96ec4fa7e917113a840.tar.gz |
documentation style tweaks (#10790)
* exports are the least important field in the docs: they are put in the last place (at the bottom) * indent text after proc/type declaration for an easier navigation (noticeable difference between declarations and examples) * quickfix invalid style in `asynchttpserver`
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/docgen.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim index 7e7666de4..5c3e1af34 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -20,7 +20,7 @@ import pathutils const - exportSection = skTemp + exportSection = skField type TSections = array[TSymKind, Rope] @@ -893,9 +893,9 @@ proc generateTags*(d: PDoc, n: PNode, r: var Rope) = else: discard proc genSection(d: PDoc, kind: TSymKind) = - const sectionNames: array[skTemp..skTemplate, string] = [ - "Exports", "Imports", "Types", "Vars", "Lets", "Consts", "Vars", "Procs", "Funcs", - "Methods", "Iterators", "Converters", "Macros", "Templates" + const sectionNames: array[skModule..skField, string] = [ + "Imports", "Types", "Vars", "Lets", "Consts", "Vars", "Procs", "Funcs", + "Methods", "Iterators", "Converters", "Macros", "Templates", "Exports" ] if d.section[kind] == nil: return var title = sectionNames[kind].rope |