Skip to content

Commit

Permalink
build atlas documentation (nim-lang#22071)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored and jmgomez committed Jun 11, 2023
1 parent 0542b51 commit ec68998
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/kochdocs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ proc nimCompileFold*(desc, input: string, outputDir = "bin", mode = "c", options
let cmd = findNim().quoteShell() & " " & mode & " -o:" & output & " " & options & " " & input
execFold(desc, cmd)

const officialPackagesMarkdown = """
pkgs/atlas/doc/atlas.md
""".splitWhitespace()

proc getMd2html(): seq[string] =
for a in walkDirRecFilter("doc"):
let path = a.path
Expand All @@ -103,6 +107,8 @@ proc getMd2html(): seq[string] =
]:
# `docs` is redundant with `overview`, might as well remove that file?
result.add path
for md in officialPackagesMarkdown:
result.add md
doAssert "doc/manual/var_t_return.md".unixToNativePath in result # sanity check

const
Expand Down Expand Up @@ -335,7 +341,7 @@ proc buildJS(): string =
proc buildDocsDir*(args: string, dir: string) =
let args = nimArgs & " " & args
let docHackJsSource = buildJS()
gitClonePackages(@["asyncftpclient", "punycode", "smtp", "db_connector", "checksums"])
gitClonePackages(@["asyncftpclient", "punycode", "smtp", "db_connector", "checksums", "atlas"])
createDir(dir)
buildDocSamples(args, dir)

Expand Down

0 comments on commit ec68998

Please sign in to comment.