Skip to content

Commit 4e89ea5

Browse files
authored
[docsy] Reworked Spec page, including wildcard redirects (#88)
1 parent d5adaa0 commit 4e89ea5

File tree

6 files changed

+45
-44
lines changed

6 files changed

+45
-44
lines changed

.htmltest.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ DirectoryPath: public
22
CheckDoctype: false # Sadly, this is false only because of `static/google*.html`
33
IgnoreAltMissing: true # FIXME
44
IgnoreDirectoryMissingTrailingSlash: true # FIXME
5-
IgnoreDirs: [_print] # FIXME
5+
IgnoreDirs:
66
IgnoreEmptyHref: true # FIXME
77
IgnoreInternalEmptyHash: true # FIXME
88
IgnoreInternalURLs: # list of paths
99
IgnoreURLs: # list of regexs of paths or URLs to be ignored
10-
- ^https://twitter.com/docsydocs$
11-
- ^/specs
10+
- ^/specification/

content/en/docs/get-started/contributor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to contribute to TUF
55
---
66

77
There are many opportunities to contribute to TUF project. You can contribute to
8-
the [specification](/specifications/) or [documentation](/docs/).
8+
the [specification](/specification/) or [documentation](/docs/).
99

1010
For guidance on how to contribute, see the
1111
[TUF Contributor Guide](https://github.com/theupdateframework/community/blob/main/CONTRIBUTING.md).

content/en/spec.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Specification
3+
linkTitle: Spec
4+
menu: { main: { weight: 35 } }
5+
# See Netlify.toml for /specification/* redirect rules.
6+
---
7+
8+
{{% blocks/cover title="Specification" height="auto" %}}
9+
10+
{{% /blocks/cover %}}
11+
12+
{{% blocks/section color="white" %}}
13+
14+
The following specification versions are available:
15+
16+
- [latest](/specification/latest/)
17+
- [draft](/specification/draft/)
18+
- [v1.0.33](/specification/v1.0.33/)
19+
- [v1.0.32](/specification/v1.0.32/)
20+
- [v1.0.31](/specification/v1.0.31/)
21+
- [v1.0.30](/specification/v1.0.30/)
22+
- [v1.0.29](/specification/v1.0.29/)
23+
- [v1.0.28](/specification/v1.0.28/)
24+
- [v1.0.27](/specification/v1.0.27/)
25+
- [v1.0.26](/specification/v1.0.26/)
26+
- [v1.0.25](/specification/v1.0.25/)
27+
- [v1.0.24](/specification/v1.0.24/)
28+
- [v1.0.23](/specification/v1.0.23/)
29+
- [v1.0.22](/specification/v1.0.22/)
30+
- [v1.0.20](/specification/v1.0.20/)
31+
- [v1.0.19](/specification/v1.0.19/)
32+
- [v1.0.18](/specification/v1.0.18/)
33+
- [v1.0.17](/specification/v1.0.17/)
34+
35+
This list is also available from [Spec versions](/specification/list/).
36+
37+
{{% /blocks/section %}}

content/en/specifications/specs.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

hugo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ languages:
4242
The Update Framework (TUF) maintains the security of software update
4343
systems, providing protection even against attackers that compromise the
4444
repository or signing keys. TUF provides a flexible framework and
45-
[specification](/specs/)
45+
[specification](/specification/latest)
4646
that developers can adopt into any software update system.
4747
projectAndGrants: |
4848
The TUF project is managed by the [Linux Foundation] under the [Cloud

netlify.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@ command = "npm run seq -- build:preview diff:check"
66
command = "npm run seq -- build:production diff:check"
77

88
[[redirects]]
9-
from = "/specification/latest"
10-
to = "https://theupdateframework.github.io/specification/latest/"
11-
12-
[[redirects]]
13-
from = "/specification/list"
14-
to = "https://theupdateframework.github.io/specification/"
9+
from = "/specification"
10+
to = "/specification/latest/"
1511

1612
[[redirects]]
17-
from = "/specification"
18-
to = "https://theupdateframework.github.io/specification/latest/"
13+
from = "/specification/*"
14+
to = "https://theupdateframework.github.io/specification/:splat"
1915

2016
[[headers]]
2117
for = "/*"

0 commit comments

Comments
 (0)