[x/go.dev] all: simplify menu configuration

Move from data/site.toml to data/menus.yaml, with non-menu left in data/site.yaml.
Now there is only one data format (YAML) for the web site.

Put the menus in the order they should appear on the site,
instead of having to maintain and sort by weights.
Now the menus can be plain data, with no footprint in the
Go source code at all.

Move data accessor into a top-level template function.
Between that and the menus moving into plain data,
Site is no longer exposed as a concept to templates in any form.

Change-Id: Ib21b7163f8bcd7883a930f72e4bfd88cbb875cf3
X-GoDev-Commit: 22c45b892cb03085b303d54200c701d2e502e4ef
13 files changed
tree: c0da8329405b8f178a74e71a2dbab86a0fbe85fa
  1. go.dev/
  2. AUTHORS
  3. CONTRIBUTING.md
  4. CONTRIBUTORS
  5. LICENSE
  6. PATENTS
  7. README.md
README.md

Go Website

This repository holds the Go Website server code and content.

Download/Install

The easiest way to install is to run go get -u golang.org/x/website. You can also manually git clone the repository to $GOPATH/src/golang.org/x/website.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/website:” in the subject line, so it is easy to find.