summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-12-10 06:48:11 +0100
committerGitHub <noreply@github.com>2019-12-10 06:48:11 +0100
commitc282cee4db7eb02b44a96989c430aa33e5517eab (patch)
treeea907c7de490659a9347ad7844a2dfee7f3f1c21 /tools
parent5929c3da218fdecf70e11ff970e7b7cda50c9144 (diff)
downloadNim-c282cee4db7eb02b44a96989c430aa33e5517eab.tar.gz
feature dracula themed doc (#12816)
* Implement gorgeous Dracula themed Nim documentation

* Add color for escape sequences

* fixes the test cases

* the big CSS cleanup
Diffstat (limited to 'tools')
-rw-r--r--tools/kochdocs.nim10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/kochdocs.nim b/tools/kochdocs.nim
index b660a3c30..4adfef71e 100644
--- a/tools/kochdocs.nim
+++ b/tools/kochdocs.nim
@@ -364,11 +364,16 @@ proc buildJS() =
   exec(findNim() & " js " & (docHackDir / "dochack.nim"))
 
 proc buildDocs*(args: string) =
+  const
+    docHackJs = "dochack.js"
+    css = "nimdoc.css"
   let
     a = nimArgs & " " & args
-    docHackJs = "dochack.js"
     docHackJsSource = docHackDir / docHackJs
     docHackJsDest = docHtmlOutput / docHackJs
+
+    cssSource = "doc" / css
+    cssDest = docHtmlOutput / css
   buildJS()                     # This call generates docHackJsSource
   let docup = webUploadOutput / NimVersion
   createDir(docup)
@@ -382,3 +387,6 @@ proc buildDocs*(args: string) =
   buildDoc(nimArgs, docHtmlOutput)
   copyFile(docHackJsSource, docHackJsDest)
   copyFile(docHackJsSource, docup / docHackJs)
+
+  copyFile(cssSource, cssDest)
+  copyFile(cssSource, docup / css)