mirror of https://github.com/golang/go.git
godoc/static: add gopher/pkg.png image
Replace the link to the gopher pkg.png from an online location to a local file. This will prevent any privacy issue on godoc so that there is no ping anymore to golang.org when opening private documentation generated by godoc. Another benefit is that it allows the image to load when godoc is used offline. Last the img is placed to the upper section. For golang/go#32011. Change-Id: I1459bf2613251e3e12404087ea9083b64a4f70c2 GitHub-Last-Rev: c32ef9541e8e927c40f99d161ffe6af4aa5b0258 GitHub-Pull-Request: golang/tools#315 Reviewed-on: https://go-review.googlesource.com/c/tools/+/313097 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Trust: Cherry Mui <cherryyz@google.com>
This commit is contained in:
parent
c0140e85e1
commit
f05e912406
|
|
@ -38,6 +38,7 @@ var files = []string{
|
|||
"favicon.ico",
|
||||
"godoc.html",
|
||||
"godocs.js",
|
||||
"gopher/pkg.png",
|
||||
"images/minus.gif",
|
||||
"images/plus.gif",
|
||||
"images/treeview-black-line.gif",
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
|
|
@ -21,6 +21,7 @@
|
|||
<h2 id="pkg-subdirectories">Subdirectories</h2>
|
||||
{{end}}
|
||||
<div id="manual-nav">
|
||||
<img alt="" class="gopher" src="/lib/godoc/gopher/pkg.png"/>
|
||||
<dl>
|
||||
<dt><a href="#stdlib">Standard library</a></dt>
|
||||
{{if hasThirdParty .List }}
|
||||
|
|
@ -38,7 +39,6 @@
|
|||
</div>
|
||||
<div class="expanded">
|
||||
<h2 class="toggleButton" title="Click to hide Standard library section">Standard library ▾</h2>
|
||||
<img alt="" class="gopher" src="https://golang.org/doc/gopher/pkg.png"/>
|
||||
<div class="pkg-dir">
|
||||
<table>
|
||||
<tr>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -403,12 +403,6 @@ div#about {
|
|||
font-size: 1.25rem;
|
||||
margin: 0 auto 1.875rem;
|
||||
}
|
||||
div#gopher {
|
||||
background: url(https://golang.org/doc/gopher/frontpage.png) no-repeat;
|
||||
background-position: center top;
|
||||
height: 9.688rem;
|
||||
max-height: 200px; /* Setting in px to prevent the gopher from blowing up in very high default font-sizes */
|
||||
}
|
||||
a#start {
|
||||
display: block;
|
||||
padding: 0.625rem;
|
||||
|
|
@ -582,6 +576,7 @@ hr {
|
|||
img.gopher {
|
||||
float: right;
|
||||
margin-left: 0.625rem;
|
||||
margin-top: -2.5rem;
|
||||
margin-bottom: 0.625rem;
|
||||
z-index: -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue