summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-10-20 01:05:13 +0200
committerAraq <rumpf_a@web.de>2014-10-20 01:05:13 +0200
commit4aab018bd6d45dce0ec35530e348edd68ce4542d (patch)
tree3e5b534464955b29b0b03075c1362ad378d6b59c
parent1ddc42f570c0ab70b7f97222cdbd77bb49b38716 (diff)
downloadNim-4aab018bd6d45dce0ec35530e348edd68ce4542d.tar.gz
disable 'view source' feature
-rw-r--r--compiler/docgen.nim2
-rw-r--r--config/nimdoc.cfg1
-rw-r--r--tools/nimweb.nim7
-rw-r--r--web/download.txt6
4 files changed, 10 insertions, 6 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim
index 4c9803401..434e2a65b 100644
--- a/compiler/docgen.nim
+++ b/compiler/docgen.nim
@@ -383,6 +383,8 @@ proc genItem(d: PDoc, n, nameNode: PNode, k: TSymKind) =
   var seeSrcRope: PRope = nil
   let docItemSeeSrc = getConfigVar("doc.item.seesrc")
   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,
       ["path", "line"], [n.info.toFilename.toRope, toRope($n.info.line)])
     dispA(seeSrcRope, "$1", "", [ropeFormatNamedVars(docItemSeeSrc,
diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg
index 9db52a84d..975c7c06a 100644
--- a/config/nimdoc.cfg
+++ b/config/nimdoc.cfg
@@ -41,7 +41,6 @@ doc.item = """
 <dt id="$itemSym"><a name="$itemSymOrID"></a><pre>$header</pre></dt>
 <dd>
 $desc
-$seeSrc
 </dd>
 """
 
diff --git a/tools/nimweb.nim b/tools/nimweb.nim
index 00faecc01..5233bac45 100644
--- a/tools/nimweb.nim
+++ b/tools/nimweb.nim
@@ -45,9 +45,10 @@ proc initConfigData(c: var TConfigData) =
   c.gitCommit = "master"
   c.numProcessors = countProcessors()
   # Attempts to obtain the git current commit.
-  let (output, code) = execCmdEx("git log -n 1 --format=%H")
-  if code == 0 and output.strip.len == 40:
-    c.gitCommit = output.strip
+  when false:
+    let (output, code) = execCmdEx("git log -n 1 --format=%H")
+    if code == 0 and output.strip.len == 40:
+      c.gitCommit = output.strip
   c.quotations = initTable[string, tuple[quote, author: string]]()
 
 include "website.tmpl"
diff --git a/web/download.txt b/web/download.txt
index 31777fad0..dc53cbeb4 100644
--- a/web/download.txt
+++ b/web/download.txt
@@ -9,8 +9,10 @@ and clang on Mac OS X.
 Binaries
 ========
 
-Unfortunately for now we only provide 32 bit builds for
-Windows: `nimrod_0.9.6.exe <download/nimrod_0.9.6.exe>`_
+Unfortunately for now we only provide builds for Windows.
+
+* 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