aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html (follow)
Commit message (Collapse)AuthorAgeFiles
* refactor(indexHandler): Don't retain configuration (#86)Abhinav Gupta2023-04-291
| | | | | | | | | Similar to the previous patch, this patch removes knowledge of the configuration from the index handler. Instead, the index handler is now passed a list of packageInfo structs each containing just the information needed to render the index page. This also obviates the need to duplicate the logic to compute the package import path in the index.html template.
* Add support for package descriptions (#68)Abhinav Gupta2023-01-231
| | | | | | | | | | | | | | | | | | | * template: Use a more fluid layout Instead of using a table, take advantage of the grid layout. We still print a table of sorts, but it's more fluid in appearance based on width of the screen. On narrower screens, we'll show a listing where each item has a description label next to it rather than at the top. * Add support for package descrpitions Packages may now optionally specify a description. If specified, this is printed below the package information, indented one column to make it stand out. Co-authored-by: Sung Yoon Whang <sungyoonwhang@gmail.com>
* template: Use a more fluid layout (#67)Abhinav Gupta2023-01-231
| | | | | | | | | Instead of using a table, take advantage of the grid layout. We still print a table of sorts, but it's more fluid in appearance based on width of the screen. On narrower screens, we'll show a listing where each item has a description label next to it rather than at the top.
* badge: Use pkg.go.dev badge (#55)Abhinav Gupta2022-05-171
| | | | | | | | When we originally switched to pkg.go.dev (#40), it did not offer documentation badges so we relied on a third-party service. That's no longer true (https://pkg.go.dev/badge) so we can use pkg.go.dev's more "on-brand" badges for this.
* Support package-level overrides for URLs (#52)Tyler Sullivan2022-01-031
| | | | | | | | | | | | | | | | | | Sally accepts the base vanity URL (e.g. `go.uber.org`) in a top-level `url` key. This applies to all packages listed in the configuration. Add support for overriding the `url` on a per-package basis. This will provide for an easier transition period when migrating Go packages of an organization between hosts, for example from BitBucket to GitHub. With this, source code can be modified across the various repositories over time to use the new vanity URL. For example, some packages will use a URL of bitbucketurl.org and some will use mycoolgoimportvanity.org in their source code imports. Other than the use-case outlined above, this feature adds flexibility to the vanity server to support more than one vanity URL when used behind an ingress controller.
* Fix godoc badge image (#43)Abhinav Gupta2020-03-021
| | | | | | | pkg.go.dev does not serve a badge like godoc.org. This change switches the image over to one provided by shields.io. Note that this uses the style "for-the-badge" from shields.io.
* Support changing godoc instance (#38)Diego Bernardes2019-03-051
| | | | | This adds the ability to change the godoc.org instance used by Sally to link to documentation by providing a new `godoc` section in the configuration.
* Add minimal stylingAbhinav Gupta2019-01-031