docs: link to latest version git tag

This commit is contained in:
Daylin Morgan 2023-04-27 09:16:49 -05:00
parent 3b1a12d744
commit 0024a3ad39
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -25,7 +25,7 @@ task docs, "Deploy doc html + search index to public/ directory":
pkgName = "catppuccin" pkgName = "catppuccin"
srcFile = getCurrentDir() / "src" / (pkgName & ".nim") srcFile = getCurrentDir() / "src" / (pkgName & ".nim")
gitUrl = "https://github.com/daylinmorgan/catppuccin-nim" gitUrl = "https://github.com/daylinmorgan/catppuccin-nim"
selfExec &"doc --index:on --git.url:{gitUrl} --outdir:{deployDir} --project {srcFile}" selfExec &"doc --index:on --git.url:{gitUrl} --git.commit:v{version} --outdir:{deployDir} --project {srcFile}"
withDir deployDir: withDir deployDir:
mvFile(pkgName & ".html", "index.html") mvFile(pkgName & ".html", "index.html")
for file in walkDirRec(".", {pcFile}): for file in walkDirRec(".", {pcFile}):