feature dracula themed doc (#12816)
* Implement gorgeous Dracula themed Nim documentation * Add color for escape sequences * fixes the test cases * the big CSS cleanup
This commit is contained in:
parent
5929c3da21
commit
c282cee4db
9 changed files with 1054 additions and 4822 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue