Skip to content

Commit 2aa72df

Browse files
authored
[docsy] Spec page: make link to latest a button, tweak external link rules (#104)
1 parent be28b1b commit 2aa72df

File tree

4 files changed

+10
-39
lines changed

4 files changed

+10
-39
lines changed

.htmltest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ IgnoreInternalURLs: # list of paths
1212
IgnoreURLs: # list of regexs of paths or URLs to be ignored
1313
# Ignore Docsy-generated GitHub links for now
1414
- ^https?://github\.com/.*?/.*?/(new|edit)/ # view-page, edit-source etc
15+
- ^https://github\.com/theupdateframework/.*?/commit/ # last mod
1516

1617
# TUF
1718
- ^/specification/

assets/scss/_styles_project.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,7 @@
5151
}
5252

5353
$tuf-blue: #0082ca;
54+
55+
a.spec-btn {
56+
color: white !important;
57+
}

content/en/spec.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Specification
33
linkTitle: Spec
4+
description: The Update Framework Specification
45
menu: { main: { weight: 35 } }
56
# See Netlify.toml for /specification/* redirect rules.
67
---
@@ -11,10 +12,10 @@ menu: { main: { weight: 35 } }
1112

1213
{{% blocks/section color="white" %}}
1314

14-
The following specification versions are available:
15+
{{% param description %}} versions:
16+
17+
<a class="spec-btn btn btn-lg btn-secondary ms-3" href="/specification/latest/">Latest</a>
1518

16-
- [latest](/specification/latest/)
17-
- [draft](/specification/draft/)
1819
- [v1.0.33](/specification/v1.0.33/)
1920
- [v1.0.32](/specification/v1.0.32/)
2021
- [v1.0.31](/specification/v1.0.31/)
@@ -31,6 +32,7 @@ The following specification versions are available:
3132
- [v1.0.19](/specification/v1.0.19/)
3233
- [v1.0.18](/specification/v1.0.18/)
3334
- [v1.0.17](/specification/v1.0.17/)
35+
- [draft](/specification/draft/)
3436

3537
This list is also available from [Spec versions](/specification/list/).
3638

static/refcache.json

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -227,42 +227,6 @@
227227
"StatusCode": 200,
228228
"LastSeen": "2024-10-05T11:08:26.869281-04:00"
229229
},
230-
"https://github.com/theupdateframework/theupdateframework.io/commit/1a60f9e217196e19076edba9787f72019141277e": {
231-
"StatusCode": 200,
232-
"LastSeen": "2024-10-05T11:18:19.547637-04:00"
233-
},
234-
"https://github.com/theupdateframework/theupdateframework.io/commit/54cca6ae06640ad10d184f806a98172781dcb9e8": {
235-
"StatusCode": 200,
236-
"LastSeen": "2024-10-05T11:21:13.701008-04:00"
237-
},
238-
"https://github.com/theupdateframework/theupdateframework.io/commit/594a6ab705de31ac2b1475ad06f9f983d0b6979a": {
239-
"StatusCode": 200,
240-
"LastSeen": "2024-10-05T11:25:32.728605-04:00"
241-
},
242-
"https://github.com/theupdateframework/theupdateframework.io/commit/638b8a1d81632df4c27553044a2e43e3f7abe7c4": {
243-
"StatusCode": 200,
244-
"LastSeen": "2024-10-05T11:20:26.362325-04:00"
245-
},
246-
"https://github.com/theupdateframework/theupdateframework.io/commit/723e3323632abf6f52ecd44f25770e62bb523816": {
247-
"StatusCode": 200,
248-
"LastSeen": "2024-10-05T11:20:04.936087-04:00"
249-
},
250-
"https://github.com/theupdateframework/theupdateframework.io/commit/8b0f6bba08eef217c6c7fadceb75a24a8341b84a": {
251-
"StatusCode": 200,
252-
"LastSeen": "2024-10-05T11:09:30.506069-04:00"
253-
},
254-
"https://github.com/theupdateframework/theupdateframework.io/commit/8b69df3d004adafe2f29174da6635d22504343fc": {
255-
"StatusCode": 200,
256-
"LastSeen": "2024-10-05T11:09:09.404042-04:00"
257-
},
258-
"https://github.com/theupdateframework/theupdateframework.io/commit/b11cefd08a89dab8a70c09711eeff1df7d3cae1c": {
259-
"StatusCode": 200,
260-
"LastSeen": "2024-10-05T11:28:11.25347-04:00"
261-
},
262-
"https://github.com/theupdateframework/theupdateframework.io/commit/e135c87230816424c13d2c50588e0301748577d3": {
263-
"StatusCode": 200,
264-
"LastSeen": "2024-10-05T11:10:23.56726-04:00"
265-
},
266230
"https://github.com/theupdateframework/theupdateframework.io/issues/new": {
267231
"StatusCode": 200,
268232
"LastSeen": "2024-10-05T11:09:03.913978-04:00"

0 commit comments

Comments
 (0)