mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
further website improvements
This commit is contained in:
@@ -954,7 +954,9 @@ proc genAddr(p: PProc, n: PNode, r: var TCompRes) =
|
||||
r.address = s.loc.r
|
||||
r.res = toRope("0")
|
||||
else:
|
||||
internalError(n.info, "genAddr: 4")
|
||||
# 'var openArray' for instance produces an 'addr' but this is harmless:
|
||||
gen(p, n.sons[0], r)
|
||||
#internalError(n.info, "genAddr: 4 " & renderTree(n))
|
||||
else: internalError(n.info, "genAddr: 2")
|
||||
of nkCheckedFieldExpr:
|
||||
genCheckedFieldAddr(p, n, r)
|
||||
|
||||
@@ -400,6 +400,7 @@ proc main(c: var TConfigData) =
|
||||
for i in 0..c.tabs.len-1:
|
||||
var file = c.tabs[i].val
|
||||
let rss = if file in ["news", "index"]: extractFilename(rssUrl) else: ""
|
||||
if '.' in file: continue
|
||||
exec(cmd % [c.nimArgs, file])
|
||||
var temp = "web" / changeFileExt(file, "temp")
|
||||
var content: string
|
||||
|
||||
@@ -24,10 +24,16 @@
|
||||
# var t = c.tabs[i].val
|
||||
#if currentTab == t:
|
||||
<a class="active"
|
||||
#elif t == "community" or t == "news":
|
||||
# continue
|
||||
#else:
|
||||
<a
|
||||
#end if
|
||||
href="${t}.html" title = "$c.projectName - $name">$name</a>
|
||||
#if t.contains('.'):
|
||||
href="${t}" title = "$c.projectName - $name">$name</a>
|
||||
#else:
|
||||
href="${t}.html" title = "$c.projectName - $name">$name</a>
|
||||
#end if
|
||||
#end for
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@ Authors: "Andreas Rumpf and contributors"
|
||||
[Links]
|
||||
# Underscores are replaced with a space.
|
||||
# Everything after ; is the ID
|
||||
User_Forum: "http://forum.nim-lang.org;link_forum"
|
||||
Community: "community.html;link_forum"
|
||||
Aporia_IDE: "https://github.com/nimrod-code/Aporia;link_aporia"
|
||||
Github_Repo: "http://github.com/Araq/Nimrod;link_github"
|
||||
|
||||
@@ -15,12 +15,14 @@ Github_Repo: "http://github.com/Araq/Nimrod;link_github"
|
||||
[Tabs]
|
||||
# Menu entry: filename
|
||||
home: index
|
||||
news: news
|
||||
docs: documentation
|
||||
learn: learn
|
||||
download: download
|
||||
community: community
|
||||
forum: "http://forum.nim-lang.org"
|
||||
FAQ: question
|
||||
# these two are not in the list of "tabs", but do exist:
|
||||
community: community
|
||||
news: news
|
||||
|
||||
[Ticker]
|
||||
file: ticker.txt
|
||||
|
||||
Reference in New Issue
Block a user