diff --git a/website/index.html b/website/index.html index f5580d314d0900..7cb2480dc45d19 100644 --- a/website/index.html +++ b/website/index.html @@ -20,6 +20,35 @@

Deno

API Reference +

Install Deno into ~/.deno/bin +

+curl -L https://deno.land/x/install/install.py | python
+export PATH=$HOME/.deno/bin:$PATH
+
+ +Try a Deno program. Install by bash alias. +This one serves a local directory in HTTP. +
+alias file_server="deno \
+  https://deno.land/x/net/file_server.ts --allow-net"
+
+ +Run it: +
+% file_server .
+Downloading https://deno.land/x/net/file_server.ts...
+[...]
+HTTP server listening on http://0.0.0.0:4500/
+
+ +And if you ever want to upgrade to the latest published version: +
+file_server --reload
+
+ +Other Deno modules are served here. + +

Execution time

This shows how much time total it takes to run a few simple deno programs: tests/002_hello.ts diff --git a/website/style.css b/website/style.css index c84f0bbf697dab..1e604d0e8be184 100644 --- a/website/style.css +++ b/website/style.css @@ -19,6 +19,12 @@ a { color: #333; } +pre { + background: #ddd; + padding: 15px; + word-wrap: normal +} + a:hover { background: #aee; }