From: Andrew Gerrand Date: Wed, 14 Mar 2012 21:09:54 +0000 (+1100) Subject: godoc: style example headings like links X-Git-Tag: weekly.2012-03-22~91 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9d08068d216163d900843a53b12caac31890e9a1;p=gostls13.git godoc: style example headings like links R=golang-dev, gri CC=golang-dev https://golang.org/cl/5819048 --- diff --git a/doc/style.css b/doc/style.css index 882ce7435d..fc6c34c8df 100644 --- a/doc/style.css +++ b/doc/style.css @@ -30,11 +30,13 @@ pre .ln { body { color: #222; } -a { +a, +.exampleHeading .text { color: #375EAB; text-decoration: none; } -a:hover { +a:hover, +.exampleHeading .text:hover { text-decoration: underline; } p, diff --git a/lib/godoc/example.html b/lib/godoc/example.html index d7b219371a..43ee4bddc1 100644 --- a/lib/godoc/example.html +++ b/lib/godoc/example.html @@ -1,9 +1,9 @@
-

▾ Example{{example_suffix .Name}}

+

▾ Example{{example_suffix .Name}}

{{with .Doc}}

{{html .}}

{{end}}

Code:

{{.Code}}