koch: fix doc generation with Google Analytics enabled

This commit is contained in:
Araq
2018-09-19 12:15:37 +02:00
parent a892d519a6
commit 04f899dad3
2 changed files with 1 additions and 3 deletions

View File

@@ -60,7 +60,6 @@ Commands for core developers:
tests [options] run the testsuite (run a subset of tests by
specifying a category, e.g. `tests cat async`)
temp options creates a temporary compiler for testing
winrelease creates a Windows release
pushcsource push generated C sources to its repo
Web options:
--googleAnalytics:UA-... add the given google analytics code to the docs. To
@@ -530,7 +529,6 @@ when isMainModule:
of "test", "tests": tests(op.cmdLineRest)
of "temp": temp(op.cmdLineRest)
of "xtemp": xtemp(op.cmdLineRest)
#of "winrelease": winRelease()
of "wintools": bundleWinTools()
of "nimble": buildNimble(existsDir(".git"))
of "nimsuggest": bundleNimsuggest(buildExe=true)

View File

@@ -3,7 +3,7 @@
import os, strutils, osproc
const
gaCode* = " --googleAnalytics:UA-48159761-1"
gaCode* = " --doc.googleAnalytics:UA-48159761-1"
nimArgs = "--hint[Conf]:off --hint[Path]:off --hint[Processing]:off -d:boot --putenv:nimversion=$#" % system.NimVersion
gitUrl = "https://github.com/nim-lang/Nim"