Skip to content

Commit

Permalink
chore!: remove content pillar (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzempel authored Nov 21, 2024
1 parent 7fde0a2 commit cccc614
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 1,606 deletions.
18 changes: 0 additions & 18 deletions content/nav/content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,3 @@
items:
- id: /content
title: Overview
- title: Foundations
items:
- id: /content/principles
title: Principles
- id: /content/voice-and-tone
title: Voice and tone
- title: Style
items:
- id: /content/grammar
title: Grammar
- id: /content/punctuation
title: Punctuation
- id: /content/word-list
title: Word list
- title: Guides
items:
- id: /content/actionable-language
title: Actionable language
35 changes: 35 additions & 0 deletions gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,41 @@ export const createPages: GatsbyNode['createPages'] = ({ actions }) => {
fromPath: `/components/select-native`,
toPath: `/components/select`
});

createRedirect({
fromPath: '/components/tooltip-modal',
toPath: '/components/tooltip-dialog'
});

createRedirect({
fromPath: '/content/principles',
toPath: '/content'
});

createRedirect({
fromPath: '/content/voice-and-tone',
toPath: '/content'
});

createRedirect({
fromPath: '/content/grammar',
toPath: '/content'
});

createRedirect({
fromPath: '/content/punctuation',
toPath: '/content'
});

createRedirect({
fromPath: '/content/word-list',
toPath: '/content'
});

createRedirect({
fromPath: '/content/actionable-language',
toPath: '/content'
});
};

export const onCreateNode: GatsbyNode['onCreateNode'] = ({ node, actions, getNode }) => {
Expand Down
20 changes: 2 additions & 18 deletions src/layouts/Home/components/Foundation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import MaxWidthLayout from 'layouts/MaxWidth';
import { SectionCallout, StyledSectionHeader } from './SectionCallout';
import { HomeLink } from './HomeLink';
import { ReactComponent as ComponentsIcon } from '../../../icons/components.svg';
import { ReactComponent as ContentIcon } from '../../../icons/content.svg';
import { ReactComponent as DesignIcon } from '../../../icons/design.svg';

const StyledIcon = styled(StyledBaseIcon)`
Expand Down Expand Up @@ -117,22 +116,7 @@ export const Foundation: React.FC = () => (
<Grid.Col
xs={12}
sm={6}
lg={4}
css={css`
margin-bottom: ${p => p.theme.space.lg};
`}
>
<FoundationLink
group="Content"
title="The principles of language for writing products"
url="/content"
Icon={ContentIcon}
/>
</Grid.Col>
<Grid.Col
xs={12}
sm={6}
lg={4}
lg={6}
css={css`
margin-bottom: ${p => p.theme.space.lg};
`}
Expand All @@ -147,7 +131,7 @@ export const Foundation: React.FC = () => (
<Grid.Col
xs={12}
sm={6}
lg={4}
lg={6}
css={css`
margin-bottom: ${p => p.theme.space.lg};
`}
Expand Down
4 changes: 0 additions & 4 deletions src/layouts/Root/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ const MobileNav: React.FC = () => {
padding: ${p => p.theme.space.lg} ${p => p.theme.space.xxl};
`}
>
<StyledMobileNavLink to="/content">Content</StyledMobileNavLink>
<StyledMobileNavLink to="/design">Design</StyledMobileNavLink>
<StyledMobileNavLink to="/components">Components</StyledMobileNavLink>
<StyledMobileNavLink to="/patterns">Patterns</StyledMobileNavLink>
Expand Down Expand Up @@ -246,9 +245,6 @@ const DesktopNav: React.FC = () => {
}
`}
>
<StyledDesktopNavItem>
<StyledDesktopNavLink to="/content">Content</StyledDesktopNavLink>
</StyledDesktopNavItem>
<StyledDesktopNavItem>
<StyledDesktopNavLink to="/design">Design</StyledDesktopNavLink>
</StyledDesktopNavItem>
Expand Down
Loading

0 comments on commit cccc614

Please sign in to comment.