-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwebgl.nimble
More file actions
29 lines (24 loc) · 967 Bytes
/
Copy pathwebgl.nimble
File metadata and controls
29 lines (24 loc) · 967 Bytes
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
29
# Package
version = "0.2.2"
author = "stisa"
description = "Basic wrapper for WebGL."
license = "MIT"
srcDir = "src"
skipDirs = @["oldwrapper","templates"]
# Deps
requires: "nim >= 0.16.1"
import ospaths
task docs, "Build docs folder - examples and documentation":
#exec("nim js -o:docs/ex1.js examples/ex1.nim")
#exec("nim js -o:docs/ex2.js examples/ex2.nim")
#exec("nim js -o:docs/ex3.js examples/ex3.nim")
mkdir "docs"/"webgl"
mkdir "docs"/"examples"
exec("exampler") # custom utility to generate example pages
exec("nim doc2 -o:" & "docs"/"webgl.html " & "src"/"webgl.nim")
exec("nim doc2 -o:" & "docs"/"webgl"/"enums.html " & "src"/"webgl"/"enums.nim")
exec("nim doc2 -o:" & "docs"/"webgl"/"consts.html " & "src"/"webgl"/"consts.nim")
withdir "examples":
for file in listfiles("."):
if splitfile(file).ext == ".nim":
exec "nim js -o:" & ".."/"docs"/"examples"/file.changefileext("js") & " " & file