From: Adam Langley Date: Wed, 4 Nov 2009 03:59:45 +0000 (-0800) Subject: Update the styling of the godoc pages. X-Git-Tag: weekly.2009-11-06~104 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b9ec2adfc7cda86a5d072ddefed888b01bad1062;p=gostls13.git Update the styling of the godoc pages. (root.html is just temporary. It'll need some better content.) R=r CC=go-dev http://go/go-review/1017019 --- diff --git a/doc/go-logo-blue.png b/doc/go-logo-blue.png new file mode 100644 index 0000000000..b9eac2727e Binary files /dev/null and b/doc/go-logo-blue.png differ diff --git a/doc/root.html b/doc/root.html index dccd0c350d..ed951a0658 100644 --- a/doc/root.html +++ b/doc/root.html @@ -1,27 +1,90 @@ -

Documentation

- + + +
+

Getting started

+ +
    +
  1. + Install Go. +
  2. + +
  3. + Read the tutorial. +
  4. + +
  5. + Learn the libraries. +
  6. +
+ +

Watch and Learn

+

(No video yet.)

+
+ +
+ + + + + + +
+ + +
an experimental programming language.
Imperative, concurrent, garbage-collected.
+
+ +

Go is …

+ +

… simple

+
+package main
+
+import "fmt"
+
+func main() {
+  fmt.Printf("Hello, 世界\n");
+}
+ +

… fast

+ +

Go generates fast code and, equally importantly, does it fast. It takes too long to build software. The tools are slow and are getting slower. Dependencies are uncontrolled. Machines have stopped getting faster. Yet software still grows and grows. If we stay as we are, before long software construction will be unbearably slow.

+ +

… safe

+ +

Go is type safe and memory safe. Go has pointers, but you can't perform +arithmetic on them. If you want that, you use slices, which known their +limits.

+ +

Clumsy type systems drive people to dynamically typed languages. Go is +object orientated without type hierarchies. Casts are checked at runtime and +types can be reflected upon.

+ +

… concurrent

+ +

Go provides a way to write systems and servers as concurrent, +garbage-collected processes (goroutines) with support from the language and +run-time. Growing stacks and multiplexing of goroutines onto threads is done +automatically.

+ +
+ +Code Search
  • The Google Tech Talk from October 30, 2009: @@ -38,3 +101,4 @@
  • +--> diff --git a/doc/style.css b/doc/style.css index c89e406d00..8109a75032 100644 --- a/doc/style.css +++ b/doc/style.css @@ -43,7 +43,13 @@ body { font: 13px Helvetica, Arial, sans-serif; } -h1, h2, h3, h4, h5, h6 { +h1 { + margin-top: 0; + padding-top: 0.75em; + margin-bottom: 0.75em; +} + +h2, h3, h4, h5, h6 { font-family: Helvetica, Arial, sans-serif; margin-bottom: 0.25em; } @@ -52,6 +58,7 @@ h2 { background-color: #e5ecf9; margin-top: 2em; border-top:1px solid #36C; + padding-left: 0.2em; } pre { @@ -80,12 +87,16 @@ div#content { margin-left: 20%; padding: 0 1em 2em 1em; margin-top: -2px; - border: 2px solid #e5ecf9; + border-left: 2px solid #e5ecf9; } #topnav { +} + +#headerDocSetTitle { margin: 0px; - padding: .1em 0px; + padding-left: 0.2em; + padding-top: 0.2em; width: 100%; white-space: nowrap; background-color: #e5ecf9; @@ -214,3 +225,34 @@ a.use { color: #FFFFFF; background-color: #5858FA; } + +/* ------------------------------------------------------------------------- */ +/* Styles for the frontpage */ + +#gettingStarted { + margin-top: 1.5em; + float: right; + background-color: #e5ecf9; + width: 25%; + padding-left: 1em; + -moz-border-radius: 7px; + -webkit-border-radius: 7px; +} + +#gettingStarted h1 { + padding-top: 0.3em; + font-size: 1.5em; +} + +#gettingStarted ol { +} + +#frontpage { + width: 70%; +} + +#frontpage h3 { + margin-left: 3em; + font-size: 1.5em; + font-weight: normal; +} diff --git a/lib/godoc/godoc.html b/lib/godoc/godoc.html index dd5c6f88ac..d3c66104d2 100644 --- a/lib/godoc/godoc.html +++ b/lib/godoc/godoc.html @@ -13,16 +13,65 @@ + +
    - - - - -
    -Go Home Page -The Go Programming Language
    + + + + + +
    + Go Home Page + + +
    +
    The Go Programming Language
    +
    -

    {Title|html}

    +

    {Title|html}