From fb93cee95de2300f863057efdf163e2413177c3d Mon Sep 17 00:00:00 2001 From: Nick Greenfield Date: Wed, 17 Dec 2014 17:34:15 -0800 Subject: [PATCH 1/2] Improved nimdoc styling. This updates the inlined CSS in nimdoc.cfg, adds several helper classes (and a few divs) to the generated HTML (some in nimdoc.cfg, one in rstgen.nim), and tweaks the anchor linking scheme for headers in rstgen.nim. --- config/nimdoc.cfg | 1326 +++++++++++++++++++++++++----- lib/packages/docutils/rstgen.nim | 4 +- 2 files changed, 1117 insertions(+), 213 deletions(-) diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg index 975c7c06af..7bb63ddaa3 100644 --- a/config/nimdoc.cfg +++ b/config/nimdoc.cfg @@ -1,15 +1,15 @@ # This is the config file for the documentation generator. # (c) 2012 Andreas Rumpf # Feel free to edit the templates as you need. If you modify this file, it -# might be worth updating the hardcoded values in packages/docutils/rstgen.ni +# might be worth updating the hardcoded values in packages/docutils/rstgen.nim -split.item.toc = "20" +split.item.toc = "20" # too long entries in the table of contents wrap around # after this number of characters doc.section = """
-

$sectionTitle

+

$sectionTitle

$content
@@ -17,8 +17,8 @@ $content doc.section.toc = """
  • - $sectionTitle -