From d17ffb9753185ea76e4f89a4bad0474f7422e724 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 18 Feb 2010 17:40:50 -0800 Subject: [PATCH] godoc: path cleanups, fixed a race condition, initial support for a menu on pages R=rsc CC=adg, golang-dev https://golang.org/cl/215050 --- doc/style.css | 13 +++++++++++++ lib/godoc/godoc.html | 7 +++++++ src/cmd/godoc/doc.go | 6 ------ src/cmd/godoc/godoc.go | 41 ++++++++++++++--------------------------- src/cmd/godoc/main.go | 9 ++++++--- 5 files changed, 40 insertions(+), 36 deletions(-) diff --git a/doc/style.css b/doc/style.css index fb901850709..25ea6c3450a 100644 --- a/doc/style.css +++ b/doc/style.css @@ -198,6 +198,19 @@ span.highlight { background-color: #ffffa0; } +/* same style as for gettingStarted */ +#menu { + margin-top: 1.5em; + margin-left: 1.75em; + margin-right: 0em; + float: right; + background-color: #fffff0; + padding-left: 1em; + padding-right: 1em; + padding-bottom: 0.75em; + border: 2px solid #ba9836; +} + /* ------------------------------------------------------------------------- */ /* Styles for the frontpage */ diff --git a/lib/godoc/godoc.html b/lib/godoc/godoc.html index 944643a34f5..b404857ebcc 100644 --- a/lib/godoc/godoc.html +++ b/lib/godoc/godoc.html @@ -120,6 +120,13 @@
+ + {.section Menu} + + {.end} +

{Title|html}