From cb95797e2783ed9b209248576bdcea98c3f6f1ff Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sun, 3 Feb 2019 21:24:33 +0300 Subject: Add hashlinks to website (#1659) --- website/index.html | 28 ++++++++++++++-------------- website/style.css | 10 ++++++++++ 2 files changed, 24 insertions(+), 14 deletions(-) (limited to 'website') diff --git a/website/index.html b/website/index.html index 9ac39a344..d4ab58c67 100644 --- a/website/index.html +++ b/website/index.html @@ -16,7 +16,7 @@ -

Deno

+

#Deno

A new way to JavaScript @@ -99,16 +99,16 @@

-

Install

+

#Install

-

With Shell

+

#With Shell

curl -fL https://deno.land/x/install/install.sh | sh
-

With PowerShell

+

#With PowerShell

iex (iwr https://deno.land/x/install/install.ps1)
-

Mini-tutorial

+

#Mini-tutorial

-

Try a Deno program. This one serves a local directory in HTTP.

+

#Try a Deno program. This one serves a local directory in HTTP.

 alias file_server="deno \
   https://deno.land/x/http/file_server.ts --allow-net"
@@ -124,7 +124,7 @@ 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
-

Dig in...

+

#Dig in...

Documentation @@ -140,14 +140,14 @@ HTTP server listening on http://0.0.0.0:4500/

-

Continuous Benchmarks

+

#Continuous Benchmarks

These plots are updated on every commit to

master branch

-

Execution time

+

#Execution time

This shows how much time total it takes to run a few simple deno programs:

tests/002_hello.ts @@ -168,7 +168,7 @@ HTTP server listening on http://0.0.0.0:4500/

-

Throughput

+

#Throughput

Time it takes to pipe a certain amount of data through Deno.

@@ -183,7 +183,7 @@ HTTP server listening on http://0.0.0.0:4500/
-

Req/Sec

+

#Req/Sec

Tests HTTP server performance. 10 keep-alive connections do as many @@ -224,15 +224,15 @@ HTTP server listening on http://0.0.0.0:4500/

-

Executable size

+

#Executable size

deno ships only a single binary. We track its size here.

-

Thread count

+

#Thread count

How many threads various programs use.

-

Syscall count

+

#Syscall count

How many total syscalls are performed when executing a given script.

diff --git a/website/style.css b/website/style.css index eaaf4b6fa..95e558b28 100644 --- a/website/style.css +++ b/website/style.css @@ -32,6 +32,16 @@ a.badge:hover { box-shadow: 0 0 5px 0 #333; } +a[href^="#"] { /* Hash links */ + text-decoration: none; + color: #3bace5; + margin-right: 0.5rem; +} +a[href^="#"]:hover { + text-decoration: underline; + color: #3d9bcc; +} + pre { background: #ddd; padding: 15px; -- cgit v1.2.3