summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-10-28 06:34:53 +0800
committerGitHub <noreply@github.com>2023-10-27 18:34:53 -0400
commitfbc801d1d15aa2c5f12a3f3bc1e35aad185dafb1 (patch)
tree7849b755a7c0ca7a50c521cab1148bcddeb8464b
parentd66f3febd120a6e888250dd9fa80b1533591d68f (diff)
downloadNim-fbc801d1d15aa2c5f12a3f3bc1e35aad185dafb1.tar.gz
build documentation for `htmlparser` (#22879)
I have added a note for installment
https://github.com/nim-lang/htmlparser/pull/5

> In order to use this module, run `nimble install htmlparser`.
-rw-r--r--tools/kochdocs.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/kochdocs.nim b/tools/kochdocs.nim
index ce6b83980..bd5c4ecbe 100644
--- a/tools/kochdocs.nim
+++ b/tools/kochdocs.nim
@@ -154,6 +154,7 @@ lib/posix/posix_openbsd_amd64.nim
 lib/posix/posix_haiku.nim
 lib/pure/md5.nim
 lib/std/sha1.nim
+lib/pure/htmlparser.nim
 """.splitWhitespace()
 
   officialPackagesList = """
@@ -170,6 +171,7 @@ pkgs/checksums/src/checksums/sha1.nim
 pkgs/checksums/src/checksums/sha2.nim
 pkgs/checksums/src/checksums/sha3.nim
 pkgs/checksums/src/checksums/bcrypt.nim
+pkgs/htmlparser/src/htmlparser.nim
 """.splitWhitespace()
 
   officialPackagesListWithoutIndex = """
@@ -188,6 +190,7 @@ when (NimMajor, NimMinor) < (1, 1) or not declared(isRelativeTo):
     result = path.len > 0 and not ret.startsWith ".."
 
 proc getDocList(): seq[string] =
+  ##
   var docIgnore: HashSet[string]
   for a in withoutIndex: docIgnore.incl a
   for a in ignoredModules: docIgnore.incl a
@@ -344,7 +347,7 @@ proc buildJS(): string =
 proc buildDocsDir*(args: string, dir: string) =
   let args = nimArgs & " " & args
   let docHackJsSource = buildJS()
-  gitClonePackages(@["asyncftpclient", "punycode", "smtp", "db_connector", "checksums", "atlas"])
+  gitClonePackages(@["asyncftpclient", "punycode", "smtp", "db_connector", "checksums", "atlas", "htmlparser"])
   createDir(dir)
   buildDocSamples(args, dir)