mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-05 20:47:53 +00:00
'nim doc' is now using version 2 of the documentation generator
This commit is contained in:
@@ -81,4 +81,7 @@ This now needs to be written as:
|
||||
- Removed deprecated romans module from the stdlib and published it as separate
|
||||
Nimble package.
|
||||
- Removed deprecated gentabs module from the stdlib and published it as separate
|
||||
Nimble package.
|
||||
Nimble package.
|
||||
- The ``nim doc`` command is now an alias for ``nim doc2``, the second version of
|
||||
the documentation generator. The old version 1 can still be accessed
|
||||
via the new ``nim doc0`` command.
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
Command:
|
||||
//compile, c compile project with default code generator (C)
|
||||
//doc generate the documentation for inputfile
|
||||
//doc2 generate the documentation for inputfile
|
||||
|
||||
Arguments:
|
||||
arguments are passed to the program being run (if --run option is selected)
|
||||
|
||||
@@ -43,6 +43,7 @@ const bsdPlatform = defined(macosx) or defined(freebsd) or
|
||||
defined(dragonfly)
|
||||
|
||||
when defined(nimdoc):
|
||||
type SocketHandle = int
|
||||
type
|
||||
Selector*[T] = ref object
|
||||
## An object which holds descriptors to be checked for read/write status
|
||||
|
||||
1
todo.txt
1
todo.txt
@@ -1,7 +1,6 @@
|
||||
version 1.0 battle plan
|
||||
=======================
|
||||
|
||||
- make 'doc2' an alias for 'doc' and introduce 'doc0'
|
||||
- make 'break' not leave named blocks
|
||||
- make FlowVar compatible to Futures
|
||||
- fix "high priority" bugs
|
||||
|
||||
@@ -307,7 +307,7 @@ proc buildDoc(c: var TConfigData, destPath: string) =
|
||||
destPath / changeFileExt(splitFile(d).name, "html"), d]
|
||||
i.inc
|
||||
for d in items(c.srcdoc):
|
||||
commands[i] = findNim() & " doc $# --git.url:$# -o:$# --index:on $#" %
|
||||
commands[i] = findNim() & " doc0 $# --git.url:$# -o:$# --index:on $#" %
|
||||
[c.nimArgs, gitRepo,
|
||||
destPath / changeFileExt(splitFile(d).name, "html"), d]
|
||||
i.inc
|
||||
|
||||
Reference in New Issue
Block a user