From 008b746ed8bce25bd5e2be7d1b868c54c1f3b984 Mon Sep 17 00:00:00 2001 From: Emily Brick Date: Mon, 24 Feb 2025 23:13:08 -0500 Subject: [PATCH 1/3] added note to component pages and homepages --- .../gatsby-theme-doctocat/components/hero.js | 12 +++++++++++- src/components/base-layout.tsx | 14 +++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/@primer/gatsby-theme-doctocat/components/hero.js b/src/@primer/gatsby-theme-doctocat/components/hero.js index 99dde9d80..094a8795d 100644 --- a/src/@primer/gatsby-theme-doctocat/components/hero.js +++ b/src/@primer/gatsby-theme-doctocat/components/hero.js @@ -1,12 +1,22 @@ -import {Text, Box, Heading, ThemeProvider} from '@primer/react' +import {Text, Box, Heading, ThemeProvider, Link} from '@primer/react' import React from 'react' import {Container} from '@primer/gatsby-theme-doctocat' +import {Note} from '@primer/gatsby-theme-doctocat' export default function Hero() { return ( + + + New look, same Primer!{' '} + + Preview the new docs experience here + {' '} + and let us know what you think 👀 🎉 + + ) : null} + + + + New look, same Primer!{' '} + + Preview the new docs experience here + {' '} + and let us know what you think 👀 🎉 + + + {children} From d4bd575735a263dd4892aa39accca735c7450cca Mon Sep 17 00:00:00 2001 From: Emily Brick Date: Mon, 24 Feb 2025 23:34:15 -0500 Subject: [PATCH 2/3] add back in component layout --- .../gatsby-theme-doctocat/components/hero.js | 4 ++-- src/components/base-layout.tsx | 5 ++-- src/layouts/component-layout.tsx | 24 ++++++++++++------- 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/@primer/gatsby-theme-doctocat/components/hero.js b/src/@primer/gatsby-theme-doctocat/components/hero.js index 094a8795d..c83a21b2a 100644 --- a/src/@primer/gatsby-theme-doctocat/components/hero.js +++ b/src/@primer/gatsby-theme-doctocat/components/hero.js @@ -10,11 +10,11 @@ export default function Hero() { - New look, same Primer!{' '} + 🎉 👀 New look, same Primer!{' '} Preview the new docs experience here {' '} - and let us know what you think 👀 🎉 + and let us know what you think. - New look, same Primer!{' '} + 🎉 👀 New look, same Primer!{' '} Preview the new docs experience here {' '} - and let us know what you think 👀 🎉 + and let us know what you think. diff --git a/src/layouts/component-layout.tsx b/src/layouts/component-layout.tsx index 6177616db..09c607e7a 100644 --- a/src/layouts/component-layout.tsx +++ b/src/layouts/component-layout.tsx @@ -9,8 +9,8 @@ import {ComponentPageNav} from '../components/component-page-nav' import navItems from '@primer/gatsby-theme-doctocat/src/nav.yml' type NavItemData = { - title: string, - url?: string, + title: string + url?: string children?: NavItemData[] } @@ -45,17 +45,23 @@ export default function ComponentLayout({pageContext, children, path}) { return ( - + {breadcrumbData.length > 1 ? ( - {breadcrumbData.map(item => item.url ? ( - - {item.title} - - ): null).filter(item => item)} + {breadcrumbData + .map(item => + item.url ? ( + + {item.title} + + ) : null, + ) + .filter(item => item)} ) : null} - {title} + + {title} + {description ? ( {description} From c29aea4f11c6a519485520f7c4cc506ff1a9d8a1 Mon Sep 17 00:00:00 2001 From: Emily Brick Date: Tue, 25 Feb 2025 10:55:58 -0500 Subject: [PATCH 3/3] update note on hp --- .../gatsby-theme-doctocat/components/hero.js | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/src/@primer/gatsby-theme-doctocat/components/hero.js b/src/@primer/gatsby-theme-doctocat/components/hero.js index c83a21b2a..1da4a4393 100644 --- a/src/@primer/gatsby-theme-doctocat/components/hero.js +++ b/src/@primer/gatsby-theme-doctocat/components/hero.js @@ -1,22 +1,42 @@ import {Text, Box, Heading, ThemeProvider, Link} from '@primer/react' import React from 'react' import {Container} from '@primer/gatsby-theme-doctocat' -import {Note} from '@primer/gatsby-theme-doctocat' export default function Hero() { return ( - + {/* Temporary banner before site is decomissioned, it is intended to mirror the Note component that shows up on component pages */} + 🎉 👀 New look, same Primer!{' '} - + Preview the new docs experience here {' '} and let us know what you think. - +