walkDirRecFilter, update doc CI filter, compiler/index.nim for docs + various other fixes (#14501)
* update doc CI filter to include the files mostly likely to require doc rebuild * remove code duplication in ./config/nimdoc.cfg; show link to compiler docs, various fixes * walkDirRecFilter, factor nativeToUnixPath workaround * glob for getRst2html * docslocal: 40s to build all docs * revert code dedup in github actions which did not work alas... * fixups
This commit is contained in:
parent
75e579ff8e
commit
3cf88c2b49
10 changed files with 170 additions and 126 deletions
7
koch.nim
7
koch.nim
|
|
@ -651,6 +651,13 @@ when isMainModule:
|
|||
of "latest": latest = true
|
||||
of "stable": latest = false
|
||||
of "nim": nimExe = op.val.absolutePath # absolute so still works with changeDir
|
||||
of "docslocal":
|
||||
# undocumented for now, allows to rebuild local docs in < 40s as follows:
|
||||
# `./koch --nim:$nimb --docslocal:htmldocs2 --doccmd:skip --warnings:off --hints:off`
|
||||
# whereas `./koch docs` takes 190s; useful for development.
|
||||
doAssert op.val.len > 0
|
||||
buildDocsDir(op.cmdLineRest, op.val)
|
||||
break
|
||||
else: showHelp()
|
||||
of cmdArgument:
|
||||
case normalize(op.key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue