summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorLemonBoy <LemonBoy@users.noreply.github.com>2019-06-03 10:15:20 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-06-03 10:15:20 +0200
commit7d217a71d3679b58f74bb134add20d9b80750341 (patch)
treecb67f208b906d60bd11acb01c746efe6656c8e88 /config
parent64518380a56b1a479f207e4e0c793c0c0539fde9 (diff)
downloadNim-7d217a71d3679b58f74bb134add20d9b80750341.tar.gz
Render deprecated pragmas (#8886)
* Render deprecated pragmas
* fix the expected html
* clean up the documentation regarding deprecations
* fix typo
* fix system.nim
* fix random
Diffstat (limited to 'config')
-rw-r--r--config/nimdoc.cfg10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg
index 701bd55ed..a2860af14 100644
--- a/config/nimdoc.cfg
+++ b/config/nimdoc.cfg
@@ -41,6 +41,7 @@ doc.item = """
 <a id="$itemSymOrID"></a>
 <dt><pre>$header</pre></dt>
 <dd>
+$deprecationMsg
 $desc
 $seeSrc
 </dd>
@@ -68,6 +69,12 @@ class="link-seesrc" target="_blank">Source</a>
 <a href="${url}/edit/${devel}/${path}#L${line}" class="link-seesrc" target="_blank" >Edit</a>
 """
 
+doc.deprecationmsg = """
+  <div class="deprecation-message">
+    <b>$label</b> $message
+  </div>
+"""
+
 doc.toc = """
 <ul class="simple simple-toc" id="toc-list">
 $content
@@ -98,6 +105,7 @@ doc.body_toc = """
   </div>
   <div class="nine columns" id="content">
   <div id="tocRoot"></div>
+  $deprecationMsg
   <p class="module-desc">$moduledesc</p>
   $content
   </div>
@@ -140,6 +148,7 @@ doc.body_toc_group = """
   </div>
   <div class="nine columns" id="content">
   <div id="tocRoot"></div>
+  $deprecationMsg
   <p class="module-desc">$moduledesc</p>
   $content
   </div>
@@ -170,6 +179,7 @@ doc.body_toc_group = """
   </div>
   <div class="nine columns" id="content">
   <div id="tocRoot"></div>
+  $deprecationMsg
   <p class="module-desc">$moduledesc</p>
   $content
   </div>