'nim doc' is now using version 2 of the documentation generator

This commit is contained in:
Andreas Rumpf 2017-11-16 12:53:36 +01:00
commit a4d40d137e
6 changed files with 8 additions and 6 deletions

View file

@ -186,12 +186,12 @@ proc mainCommand*(graph: ModuleGraph; cache: IdentCache) =
of "php":
gCmd = cmdCompileToPHP
commandCompileToJS(graph, cache)
of "doc":
of "doc0":
wantMainModule()
gCmd = cmdDoc
loadConfigs(DocConfig, cache)
commandDoc()
of "doc2":
of "doc2", "doc":
gCmd = cmdDoc
loadConfigs(DocConfig, cache)
defineSymbol("nimdoc")