Skip to content

Commit

Permalink
Merge pull request #957 from Royal-Navy/fix/update-broken-links
Browse files Browse the repository at this point in the history
fix(Documentation): Resolve some broken links
  • Loading branch information
m7kvqbe1 authored May 9, 2024
2 parents 35458d9 + bc2b6c5 commit 8012671
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 419 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Royal Navy Design System documentation site.

## Environment variables

| Name | Required | Default value | Description |
|-------------------------------------|----------|--------------------------------------------------|---------------------------------------------------|
| NEXT_PUBLIC_CONTENTFUL_SPACE_ID | Yes | | Contentful space ID |
| NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN | Yes | | Contentful content delivery API token |
| NEXT_PUBLIC_CONTENTFUL_ENVIRONMENT | No | master | Custom Contentful environment to use |
| NEXT_PUBLIC_STORYBOOK_BASE_URL | No | `https://storybook.design-system.digital.mod.uk` | Base URL for Storybook; used for embedded stories |
| Name | Required | Default value | Description |
| ----------------------------------- | -------- | ----------------------------------------------------- | ------------------------------------------------- |
| NEXT_PUBLIC_CONTENTFUL_SPACE_ID | Yes | | Contentful space ID |
| NEXT_PUBLIC_CONTENTFUL_ACCESS_TOKEN | Yes | | Contentful content delivery API token |
| NEXT_PUBLIC_CONTENTFUL_ENVIRONMENT | No | master | Custom Contentful environment to use |
| NEXT_PUBLIC_STORYBOOK_BASE_URL | No | `https://storybook.design-system.navy.digital.mod.uk` | Base URL for Storybook; used for embedded stories |

## End to end tests

Expand Down
2 changes: 1 addition & 1 deletion components/adapters/Docs/ContentBlockAdapter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { StorybookStory } from '../../../graphql'

export const STORYBOOK_BASE_URL = (
process.env.NEXT_PUBLIC_STORYBOOK_BASE_URL ||
'https://storybook.design-system.digital.mod.uk'
'https://storybook.design-system.navy.digital.mod.uk'
).replace(/\/$/, '')

interface ContentBlockAdapterProps extends ComponentWithClass {
Expand Down
2 changes: 1 addition & 1 deletion components/presenters/Framework/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Sidebar: React.FC<SidebarProps> = ({
<StyledFrame data-testid="sidebar" $isOpen={isOpen}>
<StyledSidebar>
<div>
<StyledHomeLink href="https://design-system.digital.mod.uk/">
<StyledHomeLink href="https://design-system.navy.digital.mod.uk/">
<IconChevronLeft />
Back to docs
</StyledHomeLink>
Expand Down
Loading

0 comments on commit 8012671

Please sign in to comment.