forked from krisppurg/dimscord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdimscord.nimble
28 lines (23 loc) · 994 Bytes
/
dimscord.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Package
version = "1.6.0"
author = "KrispPurg"
description = "A Discord Bot & REST Library for Nim."
license = "MIT"
# Dependencies
requires "nim >= 1.2.0", "zippy >= 0.2.1", "ws >= 0.5.0", "regex >= 0.15.0", "libsodium <= 0.6.0", "flatty >= 0.1.2", "jsony >= 1.1.3"
requires "opussum >= 0.6.0", "etf#e0b77f7"
task genDoc, "Generates the documentation for dimscord":
rmDir("docs") # Clean old doc folder
exec("nim doc2 --outdir=docs --project --index:on -d:dimscordVoice --git.url:https://github.com/krisppurg/dimscord --git.commit:master dimscord.nim")
exec("nim buildindex -o:docs/theindex.html docs/") # This builds the index to allow search to work
writeFile("docs/index.html", """
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Refresh" content="0; url=dimscord.html"/>
</head>
<body>
<p>Click <a href="dimscord.html">this link</a> if this does not redirect you.</p>
</body>
</html>
""")