From 2817fa5a29723cf791ba442e2257131584093f50 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Mon, 26 Feb 2024 21:07:30 +0100 Subject: [PATCH 1/4] feat(web): add footer link to docs (Github pages) --- website/src/routes.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/src/routes.ts b/website/src/routes.ts index 299754caf..8ffa583b9 100644 --- a/website/src/routes.ts +++ b/website/src/routes.ts @@ -161,7 +161,11 @@ export const navigationItems = { path: routes.aboutPage(), }, { - text: 'Api documentation', + text: 'Docs', + path: 'https://loculus-project.github.io/loculus/', + }, + { + text: 'API docs', path: routes.apiDocumentationPage(), }, { From db264d9d094dcb1a37db8057aca2838cc3e7f158 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Mon, 26 Feb 2024 21:31:00 +0100 Subject: [PATCH 2/4] Fix tests --- website/tests/pages/navigation.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/tests/pages/navigation.spec.ts b/website/tests/pages/navigation.spec.ts index 55d51dc8b..b353ce499 100644 --- a/website/tests/pages/navigation.spec.ts +++ b/website/tests/pages/navigation.spec.ts @@ -3,9 +3,8 @@ import { baseUrl, dummyOrganism, test } from '../e2e.fixture'; const organismIndependentNavigationItems = [ { link: 'My account', title: 'My account' }, { link: 'About', title: 'About' }, - { link: 'Api documentation', title: 'Api Docs' }, + { link: 'Api docs', title: 'Api Docs' }, { link: 'Governance', title: 'Governance' }, - { link: 'Status', title: 'Status' }, ]; const organismNavigationItems = [ From 88aa21cc0c0272a356ac72950e681ed17f768547 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Mon, 26 Feb 2024 21:41:48 +0100 Subject: [PATCH 3/4] Add status back --- website/tests/pages/navigation.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/website/tests/pages/navigation.spec.ts b/website/tests/pages/navigation.spec.ts index b353ce499..0da41c598 100644 --- a/website/tests/pages/navigation.spec.ts +++ b/website/tests/pages/navigation.spec.ts @@ -5,6 +5,7 @@ const organismIndependentNavigationItems = [ { link: 'About', title: 'About' }, { link: 'Api docs', title: 'Api Docs' }, { link: 'Governance', title: 'Governance' }, + { link: 'Status', title: 'Status' }, ]; const organismNavigationItems = [ From edc566435647e23eb162208dfe5702a98b839985 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Mon, 26 Feb 2024 22:22:09 +0100 Subject: [PATCH 4/4] f --- website/tests/pages/navigation.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/tests/pages/navigation.spec.ts b/website/tests/pages/navigation.spec.ts index 0da41c598..aabc67001 100644 --- a/website/tests/pages/navigation.spec.ts +++ b/website/tests/pages/navigation.spec.ts @@ -3,7 +3,7 @@ import { baseUrl, dummyOrganism, test } from '../e2e.fixture'; const organismIndependentNavigationItems = [ { link: 'My account', title: 'My account' }, { link: 'About', title: 'About' }, - { link: 'Api docs', title: 'Api Docs' }, + { link: 'API docs', title: 'Api Docs' }, { link: 'Governance', title: 'Governance' }, { link: 'Status', title: 'Status' }, ];