summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-12-23 00:44:30 +0100
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-12-23 19:25:53 +0100
commitf33f15afe804887be3ac24f48969fb724497730b (patch)
treee5384f8db4df9a1f26312f6d9ceeec404634b066
parent1fe8b013effba1df6166d9596ae246bca2e05105 (diff)
downloadNim-f33f15afe804887be3ac24f48969fb724497730b.tar.gz
Adds docstring to rstgen.defaultConfig.
-rw-r--r--lib/packages/docutils/rstgen.nim13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/packages/docutils/rstgen.nim b/lib/packages/docutils/rstgen.nim
index 09c6ba8b8..bc4f3d351 100644
--- a/lib/packages/docutils/rstgen.nim
+++ b/lib/packages/docutils/rstgen.nim
@@ -688,7 +688,18 @@ proc formatNamedVars*(frmt: string, varnames: openarray[string],
 
 
 proc defaultConfig*(): PStringTable =
-  ## creates a default configuration for HTML generation.
+  ## Returns a default configuration for embedded HTML generation.
+  ##
+  ## The returned ``PStringTable`` contains the paramters used by the HTML
+  ## engine to build the final output. For information on what these parameters
+  ## are and their purpose, please look up the file ``config/nimdoc.cfg``
+  ## bundled with the compiler.
+  ##
+  ## The only difference between the contents of that file and the values
+  ## provided by this proc is the ``doc.file`` variable. The ``doc.file``
+  ## variable of the configuration file contains HTML to build standalone
+  ## pages, while this proc returns just the content for procs like
+  ## ``rstToHtml`` to generate the bare minimum HTML.
   result = newStringTable(modeStyleInsensitive)
   
   template setConfigVar(key, val: expr) =