diff options
| author | Abhinav Gupta <mail@abhinavg.net> | 2023-10-18 15:18:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-18 15:18:40 -0700 |
| commit | 5fbb57ed966154dc29730e0ce62824e1b577d8cb (patch) | |
| tree | cbbb4cae3d3932f1122d799cd541f217e0323057 /.github/workflows/go.yml | |
| parent | f3a3b27cdf92312dad52406c6233cccab310e110 (diff) | |
| download | sally-5fbb57ed966154dc29730e0ce62824e1b577d8cb.tar.gz | |
Add support for sub-indexes (#120)
<details>
<summary>Background</summary>
Sally renders two kinds of pages:
- packages: These are for packages defined in sally.yaml
and any route under the package path.
- indexes: These list available packages.
The latter--indexes was previously only supported at '/', the root page.
This leads to a slight UX issue:
if you have a package with a / in its name (e.g. net/metrics):
- example.com/net/metrics gives you the package page
- example.com/ lists net/metrics
- However, example.com/net fails with a 404
</details>
This adds support for index pages on all parents of package pages.
Therefore, if example.com/net/metrics exists,
example.com/net will list all packages defined under that path.
Resolves #31
Diffstat (limited to '.github/workflows/go.yml')
| -rw-r--r-- | .github/workflows/go.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index a04b4ab..9c644e1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -20,7 +20,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v4 with: - go-version: 1.20.x + go-version: 1.21.x cache: true - name: Lint |