From e8636a64a2dd0f7c2821d97d5331d7a34e959ad5 Mon Sep 17 00:00:00 2001
From: Andrew Gerrand
Date: Tue, 13 Mar 2012 11:00:11 +1100
Subject: [PATCH] godoc: change link styles, add 'pop out' button
Remove underlines from all links, show underline on link hover.
Change all non-link headings to h4, a slight visual cue.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5783088
---
doc/docs.html | 13 +++++--------
doc/reference.html | 2 +-
doc/root.html | 17 +++++++++--------
doc/share.png | Bin 0 -> 2993 bytes
doc/style.css | 20 +++++++++-----------
5 files changed, 24 insertions(+), 28 deletions(-)
create mode 100644 doc/share.png
diff --git a/doc/docs.html b/doc/docs.html
index af30dacfe0b..7bdaef94843 100644
--- a/doc/docs.html
+++ b/doc/docs.html
@@ -89,7 +89,7 @@ Go 1 matures.
The official blog of the Go project, featuring news and in-depth articles by
the Go team and guests.
-Codewalks
+Codewalks
Guided tours of Go programs.
@@ -100,8 +100,7 @@ Guided tours of Go programs.
Writing Web Applications - building a simple web application.
-Language
-
+Language
-Packages
-
+Packages
-Tools
-
+Tools
-More
+More
See the GoTalks
page at the Go Wiki for
diff --git a/doc/reference.html b/doc/reference.html
index 6a8f9dbc669..37c3418f547 100644
--- a/doc/reference.html
+++ b/doc/reference.html
@@ -58,7 +58,7 @@ same variable in a different goroutine.
Using GDB to debug Go programs.
-Articles
+Articles
- C? Go? Cgo! - linking against C code with cgo.
diff --git a/doc/root.html b/doc/root.html
index b2ce06ffb38..cf6d0ff86da 100644
--- a/doc/root.html
+++ b/doc/root.html
@@ -5,9 +5,10 @@
+
Try Go
-
-
@@ -112,10 +113,10 @@ function init() {
// Set up playground.
playground({
"simple": true,
- "codeEl": "#code",
- "outputEl": "#output",
- "runEl": "#run",
- "shareEl": "#share",
+ "codeEl": "#learn .code",
+ "outputEl": "#learn .output",
+ "runEl": "#learn .run",
+ "shareEl": "#learn .share",
"shareRedirect": "http://play.golang.org/p/"
});
}
diff --git a/doc/share.png b/doc/share.png
new file mode 100644
index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