From 3955eb82165a51ebbd81b54ed7bf7a2b24ec03d8 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Thu, 2 Nov 2023 22:01:47 -0400 Subject: [PATCH] docs: Use latest `doc-versions.json` format --- pkgdown/assets/doc-versions.json | 35 ++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/pkgdown/assets/doc-versions.json b/pkgdown/assets/doc-versions.json index 5025d4c1..e8eb669c 100644 --- a/pkgdown/assets/doc-versions.json +++ b/pkgdown/assets/doc-versions.json @@ -1,13 +1,36 @@ [ { - "Latest Release": "https://pkg.garrickadenbuie.com/epoxy/", - "Development": "https://pkg.garrickadenbuie.com/epoxy/dev/" + "text": "Latest", + "version": "1.0.0", + "url": "https://pkg.garrickadenbuie.com/epoxy/" + }, + { + "text": "Development", + "version": "1.0.0.9000", + "url": "https://pkg.garrickadenbuie.com/epoxy/dev/", + "banner": { + "html": "This is the development version of epoxy. View the latest release.", + "class": "alert-warning" + } }, "---", - "Previous Releases", + "Releases", + { + "text": "v0.1.1", + "version": "0.1.1", + "url": "https://pkg.garrickadenbuie.com/epoxy/v0.1.1/", + "banner": { + "html": "A newer version of epoxy is available!", + "class": "alert-info" + } + }, { - "v1.0.0": "https://pkg.garrickadenbuie.com/epoxy/v1.0.0/", - "v0.1.1": "https://pkg.garrickadenbuie.com/epoxy/v0.1.1/", - "v0.1.0": "https://pkg.garrickadenbuie.com/epoxy/v0.1.0/" + "text": "v0.1.0", + "version": "0.1.0", + "url": "https://pkg.garrickadenbuie.com/epoxy/v0.1.0/", + "banner": { + "html": "A newer version of epoxy is available!", + "class": "alert-info" + } } ]