From dba3b44ea9ce69c76232d6540cb921b3140986ed Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Fri, 15 Oct 2021 18:16:03 -0400 Subject: [PATCH] frontpage: add npm documentation links (#22173) Co-authored-by: Laura Coursen --- content/index.md | 5 +++++ tests/rendering/sidebar.js | 1 + 2 files changed, 6 insertions(+) diff --git a/content/index.md b/content/index.md index 1687c36e6b..1193cd3ce7 100644 --- a/content/index.md +++ b/content/index.md @@ -55,4 +55,9 @@ externalProducts: name: CodeQL href: 'https://codeql.github.com/docs' external: true + npm: + id: npm + name: npm + href: 'https://docs.npmjs.com/' + external: true --- diff --git a/tests/rendering/sidebar.js b/tests/rendering/sidebar.js index 949199fff0..5ed6c4bb7d 100644 --- a/tests/rendering/sidebar.js +++ b/tests/rendering/sidebar.js @@ -34,6 +34,7 @@ describe('sidebar', () => { expect( $homePage('[data-testid=sidebar] a[href="https://codeql.github.com/docs"]') ).toHaveLength(1) + expect($homePage('[data-testid=sidebar] a[href="https://docs.npmjs.com/"]')).toHaveLength(1) }) test('adds `data-is-current-page` and `data-is-active-category` properties to the sidebar link for the current page', async () => {