pkgsite/internal/source
Jonathan Amsterdam 186838c492 internal/source: use better github raw template
Replace the previous github template for raw data
(raw.githubusercontent...)  with a new one that is more uniform (the
same as the blob template, with "raw" instead of "blob").

The main advantage is that we can drop the "repoPath" parameter to the
template, which was necessary only to support the unusual GitHub
URLs.

Now that GitHub and GitLab templates are identical, we can drop the
GitLab ones. We preserve "gitlab" in the map from kinds to templates
so we can continue to unmarshal DB modules.source_info columns
that use "gitlab".

Change-Id: Id3d45929f0eb2c040109449d4208279cca44f079
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/243217
Reviewed-by: Julie Qiu <julie@golang.org>
2020-07-17 13:38:46 +00:00
..
testdata internal/source: use better github raw template 2020-07-17 13:38:46 +00:00
meta-tags.go all: rename module to golang.org/x/pkgsite 2020-04-23 16:18:43 +00:00
source.go internal/source: use better github raw template 2020-07-17 13:38:46 +00:00
source_test.go internal/source: use better github raw template 2020-07-17 13:38:46 +00:00