disable 'view source' feature

This commit is contained in:
Araq 2014-10-20 01:05:13 +02:00
commit 4aab018bd6
4 changed files with 10 additions and 6 deletions

View file

@ -383,6 +383,8 @@ proc genItem(d: PDoc, n, nameNode: PNode, k: TSymKind) =
var seeSrcRope: PRope = nil var seeSrcRope: PRope = nil
let docItemSeeSrc = getConfigVar("doc.item.seesrc") let docItemSeeSrc = getConfigVar("doc.item.seesrc")
if docItemSeeSrc.len > 0 and options.docSeeSrcUrl.len > 0: if docItemSeeSrc.len > 0 and options.docSeeSrcUrl.len > 0:
# XXX toFilename doesn't really work. We need to ensure that this keeps
# returning a relative path.
let urlRope = ropeFormatNamedVars(options.docSeeSrcUrl, let urlRope = ropeFormatNamedVars(options.docSeeSrcUrl,
["path", "line"], [n.info.toFilename.toRope, toRope($n.info.line)]) ["path", "line"], [n.info.toFilename.toRope, toRope($n.info.line)])
dispA(seeSrcRope, "$1", "", [ropeFormatNamedVars(docItemSeeSrc, dispA(seeSrcRope, "$1", "", [ropeFormatNamedVars(docItemSeeSrc,

View file

@ -41,7 +41,6 @@ doc.item = """
<dt id="$itemSym"><a name="$itemSymOrID"></a><pre>$header</pre></dt> <dt id="$itemSym"><a name="$itemSymOrID"></a><pre>$header</pre></dt>
<dd> <dd>
$desc $desc
$seeSrc
</dd> </dd>
""" """

View file

@ -45,6 +45,7 @@ proc initConfigData(c: var TConfigData) =
c.gitCommit = "master" c.gitCommit = "master"
c.numProcessors = countProcessors() c.numProcessors = countProcessors()
# Attempts to obtain the git current commit. # Attempts to obtain the git current commit.
when false:
let (output, code) = execCmdEx("git log -n 1 --format=%H") let (output, code) = execCmdEx("git log -n 1 --format=%H")
if code == 0 and output.strip.len == 40: if code == 0 and output.strip.len == 40:
c.gitCommit = output.strip c.gitCommit = output.strip

View file

@ -9,8 +9,10 @@ and clang on Mac OS X.
Binaries Binaries
======== ========
Unfortunately for now we only provide 32 bit builds for Unfortunately for now we only provide builds for Windows.
Windows: `nimrod_0.9.6.exe <download/nimrod_0.9.6.exe>`_
* 32 bit: `nimrod_0.9.6.exe <download/nimrod_0.9.6.exe>`_
* 64 bit: `nimrod_0.9.6_x64.exe <download/nimrod_0.9.6_x64.exe>`_
Installation based on generated C code Installation based on generated C code