diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/assets/images/link_aporia.png | bin | 0 -> 1585 bytes | |||
-rw-r--r-- | web/assets/images/link_forum.png | bin | 0 -> 1107 bytes | |||
-rw-r--r-- | web/assets/images/link_nimbuild.png | bin | 0 -> 955 bytes | |||
-rw-r--r-- | web/assets/images/logo.png | bin | 0 -> 125152 bytes | |||
-rw-r--r-- | web/assets/images/quote.png | bin | 0 -> 1062 bytes | |||
-rw-r--r-- | web/assets/images/sidebar.png | bin | 0 -> 1029 bytes | |||
-rw-r--r-- | web/assets/images/sidebar_h2.png | bin | 0 -> 2104 bytes | |||
-rw-r--r-- | web/assets/images/sidebar_head.png | bin | 0 -> 39194 bytes | |||
-rw-r--r-- | web/assets/images/site_foot.png | bin | 0 -> 4039 bytes | |||
-rw-r--r-- | web/assets/images/site_neck.png | bin | 0 -> 391 bytes | |||
-rw-r--r-- | web/assets/style.css | 180 | ||||
-rw-r--r-- | web/download.txt | 3 | ||||
-rw-r--r-- | web/index.txt | 34 | ||||
-rw-r--r-- | web/nimrod.ini | 22 | ||||
-rw-r--r-- | web/ticker.txt | 32 |
15 files changed, 235 insertions, 36 deletions
diff --git a/web/assets/images/link_aporia.png b/web/assets/images/link_aporia.png new file mode 100644 index 000000000..6256792d7 --- /dev/null +++ b/web/assets/images/link_aporia.png Binary files differdiff --git a/web/assets/images/link_forum.png b/web/assets/images/link_forum.png new file mode 100644 index 000000000..d153231a7 --- /dev/null +++ b/web/assets/images/link_forum.png Binary files differdiff --git a/web/assets/images/link_nimbuild.png b/web/assets/images/link_nimbuild.png new file mode 100644 index 000000000..ad94f9c82 --- /dev/null +++ b/web/assets/images/link_nimbuild.png Binary files differdiff --git a/web/assets/images/logo.png b/web/assets/images/logo.png new file mode 100644 index 000000000..f6b95bf05 --- /dev/null +++ b/web/assets/images/logo.png Binary files differdiff --git a/web/assets/images/quote.png b/web/assets/images/quote.png new file mode 100644 index 000000000..52d529284 --- /dev/null +++ b/web/assets/images/quote.png Binary files differdiff --git a/web/assets/images/sidebar.png b/web/assets/images/sidebar.png new file mode 100644 index 000000000..8488f8acf --- /dev/null +++ b/web/assets/images/sidebar.png Binary files differdiff --git a/web/assets/images/sidebar_h2.png b/web/assets/images/sidebar_h2.png new file mode 100644 index 000000000..5de3da291 --- /dev/null +++ b/web/assets/images/sidebar_h2.png Binary files differdiff --git a/web/assets/images/sidebar_head.png b/web/assets/images/sidebar_head.png new file mode 100644 index 000000000..734d5709b --- /dev/null +++ b/web/assets/images/sidebar_head.png Binary files differdiff --git a/web/assets/images/site_foot.png b/web/assets/images/site_foot.png new file mode 100644 index 000000000..d94632b20 --- /dev/null +++ b/web/assets/images/site_foot.png Binary files differdiff --git a/web/assets/images/site_neck.png b/web/assets/images/site_neck.png new file mode 100644 index 000000000..cab3dc75a --- /dev/null +++ b/web/assets/images/site_neck.png Binary files differdiff --git a/web/assets/style.css b/web/assets/style.css new file mode 100644 index 000000000..f550f7809 --- /dev/null +++ b/web/assets/style.css @@ -0,0 +1,180 @@ +* { cursor:default; } +a, a * { cursor:pointer; text-decoration:none; } + +html, body { + margin:0; + padding:0; + width:100%; + height:100%; + background:#121220; + font:14px arial; + letter-spacing:1px; + line-height:22px; +} + +#site { z-index:0; position:relative; margin:0 auto; width:960px; } +#site > dive { position:relative; } + + /* site_head */ + #site_head { z-index:0; height:200px; } + + #logo { + z-index:-1; + position:absolute; + top:-35px; + left:-330px; + width:868px; + height:334px; + background:url("images/logo.png") no-repeat; + } + + /* site_neck */ + #site_neck { z-index:1; float:left; width:100%; height:40px; background:url("images/site_neck.png") bottom no-repeat; } + + #site_neck > a { + display:block; + float:left; + margin-top:3px; + margin-right:10px; + padding:4px 20px 0 20px; + height:28px; + color:#959a9b; + background:#394649; + font-size:18px; + } + + #site_neck > a:hover { + margin-top:0; + border-top:3px solid #1cb4ec; + } + + #site_neck > a.active { + margin-top:0; + padding-top:7px; + color:#fff; + background:#1cb4ec; + text-shadow:0 0 4px rgba(255,255,255,0.75); + } + + #site_neck > a.active:hover { + border-top:none; + } + + /* site_body */ + #site_body { z-index:2; float:left; clear:both; width:100%; background:#d1dbe3; } + + #page { position:relative; float:left; padding:20px 30px 50px 50px; width:620px; color:#343739; } + + #page h1 { margin-top:40px; } + #page h2 { margin-top:40px; } + + #page p { text-align:justify; } + + #page .quote-image { + z-index:0; + position:absolute; + top:15px; + left:20px; + width:59px; + height:42px; + background:url("images/quote.png") no-repeat; + } + + #page p.quote { + position:relative; + color:#6187a2; + font-style:italic; + letter-spacing:2px; + word-spacing:1px; + } + + #page pre { + padding:20px; + border-left:10px solid #8f9698; + background:#f3f6f8; + font-size:15px; + font-family:courier; + letter-spacing:0; + line-height:17px; + } + + #page pre > .Comment { color:#858686; font-style:italic; } + #page pre > .Keyword { color:#1cb4ec; font-weight:bold; } + #page pre > .Operator { color:#777; } + #page pre > .StringLit, #page pre > .DecNumber { color:#ff7302; } + + #page li { margin-top:10px; } + + + #sidebar_wrap { float:right; width:260px; } + #sidebar { + z-index:0; + position:relative; + left:20px; + padding:0 10px 60px 10px; + width:200px; + background:#394649 url("images/sidebar.png") bottom no-repeat; + } + + #sidebar_head { + z-index:-1; + position:absolute; + top:-220px; + left:-30px; + width:282px; + height:400px; + background:url("images/sidebar_head.png") top no-repeat; + } + + #sidebar > h2 { + position:relative; + left:-40px; + margin:20px 0 0 0; + padding:19px 0 0 48px; + width:204px; + height:47px; + color:#fff; + background:url("images/sidebar_h2.png") no-repeat; + text-shadow:0 0 4px rgba(255,255,255,0.75); + letter-spacing:2px; + } + + #sidebar > .news { display:block; margin-bottom:20px; padding:0 10px; } + #sidebar > .news > h3 { margin:0; color:#cdd1d1; font-size:18px; letter-spacing:2px; } + #sidebar > .news > p { margin:0; color:#99a0a1; } + #sidebar > .news:hover > h3 { color:#fff; text-shadow:0 0 4px rgba(255,255,255,0.75); } + #sidebar > .news:hover > p { color:#eee; text-shadow:0 0 4px rgba(255,255,255,0.5); } + + #sidebar > .link { + display:block; + margin:0; + padding:15px 20px 0 20px; + height:41px; + color:#cdd1d1; + font-size:18px; + font-weight:bold; + } + + #sidebar > .link:hover { + color:#fff; + text-shadow:0 0 4px rgba(255,255,255,0.75); + } + + #link_forum { background:url("images/link_forum.png") top right no-repeat; } + #link_aporia { background:url("images/link_aporia.png") top right no-repeat; } + #link_nimbuild { background:url("images/link_nimbuild.png") top right no-repeat; } + + /* site_foot */ + #site_foot { z-index:3; clear:both; padding-top:40px; height:150px; background:url("images/site_foot.png") top no-repeat; } + + #legal { + float:right; + margin-top:10px; + color:#88888f; + font-size:12px; + letter-spacing:1px; + } + + #legal > a { color:#88888f; } + #legal > a:visited { color:#88888f; } + #legal > a:hover { color:#fff; } diff --git a/web/download.txt b/web/download.txt index 688ea9f02..63b91a832 100644 --- a/web/download.txt +++ b/web/download.txt @@ -1,6 +1,3 @@ - There are two major products that come out of Berkeley: LSD and UNIX. - We don't believe this to be a coincidence. -- Jeremy S. Anderson. - Here you can download the latest version of the Nimrod Compiler. Please choose your platform: * source-based installation: `<download/nimrod_0.9.0.zip>`_ diff --git a/web/index.txt b/web/index.txt index 9b90e94de..6033ef930 100644 --- a/web/index.txt +++ b/web/index.txt @@ -2,12 +2,6 @@ Home ==== - The most important thing in the programming language is the name. A language - will not succeed without a good name. I have recently invented a very good - name and now I am looking for a suitable language. - -- D. E. Knuth - - **Nimrod combines Lisp's power with Python's readability and C's performance.** Welcome to Nimrod @@ -16,7 +10,9 @@ Welcome to Nimrod **Nimrod** is a statically typed, imperative programming language that tries to give the programmer ultimate power without compromises on runtime efficiency. This means it focuses on compile-time mechanisms in all their -various forms. Beneath a nice infix/indentation based syntax with a +various forms. + +Beneath a nice infix/indentation based syntax with a powerful (AST based, hygienic) macro system lies a semantic model that supports a soft realtime GC on thread local heaps. Asynchronous message passing is used between threads, so no "stop the world" mechanism is necessary. An unsafe @@ -24,16 +20,20 @@ shared memory heap is also provided for the increased efficiency that results from that model. -.. container:: snippet - *Nimrod looks like this:* - - .. code-block:: nimrod - import strutils - - # Prints the maximum integer from a list of integers - # delimited by whitespace read from stdin. - let tokens = stdin.readLine.split - echo tokens.map(parseInt).max, " is the maximum." +Nimrod looks like this: +======================= + +.. code-block:: nimrod + # compute average line length + var count = 0 + var sum = 0 + + for line in stdin.lines: + count += 1 + sum += line.len + + echo "Average line length: ", + if count > 0: sum / count else: 0 Nimrod is efficient diff --git a/web/nimrod.ini b/web/nimrod.ini index 565a02117..9c7e977c0 100644 --- a/web/nimrod.ini +++ b/web/nimrod.ini @@ -5,9 +5,11 @@ Logo: "efficient, expressive, elegant" Authors: "Andreas Rumpf and contributors" [Links] -FORUM: "http://forum.nimrod-code.org" -APORIA: "https://github.com/nimrod-code/Aporia" -NIMBUILD: "http://build.nimrod-code.org" +# Underscores are replaced with a space. +# Everything after ; is the ID +User_Forum: "http://forum.nimrod-code.org;link_forum" +Aporia_IDE: "https://github.com/nimrod-code/Aporia;link_aporia" +Nimbuild: "http://build.nimrod-code.org;link_nimbuild" [Tabs] # Menu entry: filename @@ -19,7 +21,19 @@ community: community FAQ: question [Ticker] -file: ticker +file: ticker.txt + +[Quotations] +# Page: quote - Person +# Bad things will happen if you use multiple dashes here. +index: """The most important thing in the programming language is the name. +A language will not succeed without a good name. I have recently invented a +very good name and now I am looking for a suitable language. - D. E. Knuth""" +documentation: """Incorrect documentation is often worse than no documentation. +- Bertrand Meyer""" +download: """There are two major products that come out of Berkeley: LSD and +UNIX. We don't believe this to be a coincidence. - Jeremy S. Anderson.""" + [Documentation] doc: "endb;intern;apis;lib;manual;tut1;tut2;nimrodc;overview;filters;trmacros" diff --git a/web/ticker.txt b/web/ticker.txt index 6b247c735..e0965238f 100644 --- a/web/ticker.txt +++ b/web/ticker.txt @@ -1,16 +1,24 @@ -| `2012-09-23`:newsdate: -| Nimrod version 0.9.0 has been released! - Get it `here <./download.html>`_. +<a class="news" href="news.html#Z2012-09-23-version-0-9-0-released"> + <h3>Sep 23, 2012</h3> + <p>Nimrod version 0.9.0 has been released!</p> +</a> -| `2012-02-09`:newsdate: -| Nimrod version 0.8.14 has been released! +<a class="news" href="news.html#Z2012-02-09-version-0-8-14-released"> + <h3>Feb 9, 2012</h3> + <p>Nimrod version 0.8.14 has been released!</p> +</a> -| `2011-07-10`:newsdate: -| Nimrod version 0.8.12 has been released! +<a class="news" href="news.html#Z2011-07-10-version-0-8-12-released"> + <h3>Jul 10, 2011</h3> + <p>Nimrod version 0.8.12 has been released!</p> +</a> -| `2010-10-20`:newsdate: -| Nimrod version 0.8.10 has been released! - -| `2010-03-14`:newsdate: -| Nimrod version 0.8.8 has been released! +<a class="news" href="news.html#Z2010-10-20-version-0-8-10-released"> + <h3>Oct 20, 2010</h3> + <p>Nimrod version 0.8.10 has been released!</p> +</a> +<a class="news" href="news.html#Z2010-03-14-version-0-8-8-released"> + <h3>Mar 14, 2010</h3> + <p>Nimrod version 0.8.8 has been released!</p> +</a> \ No newline at end of file |