removes channels_builtin when enabling nimPreviewSlimSystem (#20713)

This commit is contained in:
ringabout 2022-10-31 16:56:05 +08:00 • committed by GitHub
commit 0a1f204f0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 18 deletions

View file

@ -137,10 +137,6 @@ niminst.md
mm.md
""".splitWhitespace().mapIt("doc" / it)
doc0 = """
lib/system/channels_builtin.nim
""".splitWhitespace() # ran by `nim doc0` instead of `nim doc`
withoutIndex = """
lib/wrappers/mysql.nim
lib/wrappers/sqlite3.nim
@ -185,7 +181,6 @@ when (NimMajor, NimMinor) < (1, 1) or not declared(isRelativeTo):
proc getDocList(): seq[string] =
var docIgnore: HashSet[string]
for a in doc0: docIgnore.incl a
for a in withoutIndex: docIgnore.incl a
for a in ignoredModules: docIgnore.incl a
@ -260,7 +255,7 @@ proc buildDoc(nimArgs, destPath: string) =
# call nim for the documentation:
let rst2html = getMd2html()
var
commands = newSeq[string](rst2html.len + len(doc0) + len(doc) + withoutIndex.len)
commands = newSeq[string](rst2html.len + len(doc) + withoutIndex.len)
i = 0
let nim = findNim().quoteShell()
for d in items(rst2html):
@ -268,11 +263,6 @@ proc buildDoc(nimArgs, destPath: string) =
[nimArgs, gitUrl,
destPath / changeFileExt(splitFile(d).name, "html"), d]
i.inc
for d in items(doc0):
commands[i] = nim & " doc0 $# --git.url:$# -o:$# --index:on $#" %
[nimArgs, gitUrl,
destPath / changeFileExt(splitFile(d).name, "html"), d]
i.inc
for d in items(doc):
let extra = if isJsOnly(d): "--backend:js" else: ""
var nimArgs2 = nimArgs