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:
Andreas Rumpf
2019-12-10 06:48:11 +01:00
committed by GitHub
parent 5929c3da21
commit c282cee4db
9 changed files with 1054 additions and 4822 deletions

View File

@@ -213,9 +213,9 @@ proc splitPath*(path: string): tuple[head, tail: string] {.
assert splitPath("usr/local/bin/") == ("usr/local/bin", "")
assert splitPath("/bin/") == ("/bin", "")
when (NimMajor, NimMinor) <= (1, 0):
assert splitPath("/bin") == ("", "bin")
assert splitPath("/bin") == ("", "bin")
else:
assert splitPath("/bin") == ("/", "bin")
assert splitPath("/bin") == ("/", "bin")
assert splitPath("bin") == ("", "bin")
assert splitPath("") == ("", "")