diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-01-16 05:19:58 -0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-01-16 14:19:58 +0100 |
commit | 1b54be77799bd89de7b82746324833291a5f9d0c (patch) | |
tree | 3e65f343c26cb4da0874b58225027e2b76883a91 /tools | |
parent | 5ef049467727cd2a0cce0c217e6223366842fb6c (diff) | |
download | Nim-1b54be77799bd89de7b82746324833291a5f9d0c.tar.gz |
fixes #12998 nim doc regression (#13117)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/kochdocs.nim | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/kochdocs.nim b/tools/kochdocs.nim index 4adfef71e..f99567cd0 100644 --- a/tools/kochdocs.nim +++ b/tools/kochdocs.nim @@ -11,12 +11,15 @@ const webUploadOutput = "web/upload" docHackDir = "tools/dochack" +var nimExe*: string + proc exe*(f: string): string = result = addFileExt(f, ExeExt) when defined(windows): result = result.replace('/','\\') proc findNim*(): string = + if nimExe.len > 0: return nimExe var nim = "nim".exe result = "bin" / nim if existsFile(result): return @@ -366,14 +369,11 @@ proc buildJS() = proc buildDocs*(args: string) = const docHackJs = "dochack.js" - css = "nimdoc.css" let a = nimArgs & " " & args docHackJsSource = docHackDir / docHackJs docHackJsDest = docHtmlOutput / docHackJs - cssSource = "doc" / css - cssDest = docHtmlOutput / css buildJS() # This call generates docHackJsSource let docup = webUploadOutput / NimVersion createDir(docup) @@ -387,6 +387,3 @@ proc buildDocs*(args: string) = buildDoc(nimArgs, docHtmlOutput) copyFile(docHackJsSource, docHackJsDest) copyFile(docHackJsSource, docup / docHackJs) - - copyFile(cssSource, cssDest) - copyFile(cssSource, docup / css) |