- Recognize and ignore boilerplate in some common synopsis sentence
patterns.
- Remove 'implement' and 'implements' from the list of stop words. Rely
on the previous item to filter out the term in "Package foo
implements ...".
In c494ad61ef, codeFn was refactored to additionally write <pre> and </pre>. Most of the instances of {{code ...}} in templates were updated accordingly, but this one was missed.
As a result, after that commit, the example was written with a double-div.
- Merge httpsEnforcerHandler and hostMux handlers to rootHandler.
- Set host name in redirect.
- Strip port when comparing host names.
- Do not set includeSubdomains parameter in HSTS header as api.godoc.org
is not served via http.
Redirect HTTP links to HTTPS and set HSTS correctly.
This is specific to the godoc.org set up (with nginx passing a X-Scheme
header back) and without fixing up api.godoc.org.
Fixes#304.
Resolves#297.
Use green for comments. It's consistent with golang.org and has higher
contrast (against background).
Use slightly darker black for code. It's consistent with golang.org and
has higher contrast.
Gddo assumes that the project URL for a vanity import is the page
containing the go-import meta tag for the vanity path.
This change sets the project URL to the resolved package project URL in
the case where the page uses an http-equiv meta tag to redirect the user
back to godoc.org.
Here's an example. The vanity import path "rsc.io/benchstat" resolves to
"gitbub.com/rsc/benchstat". The page at "http://rsc.io/benchstat" has an
http-equiv meta tag the refreshes to "https://godoc.org/rsc.io/benchstat".
Prior to this change, the project name in the gray banner at the top of
the package documentation page linked to "http://rsc.io/benchstat". The
page on rsc.io redirects the user back to the package documentation
page. Clicking the link is a noop.
After this change, the project name in the gray banner links to
https://github.com/rsc/benchstat".
This is a partial fix to issue #270. This change does not handle the
case where the vanity server responds with an HTTP redirect when
?go-get=1 query is not specified.