Skip to content

Commit

Permalink
Ga release notes infobox (#2007)
Browse files Browse the repository at this point in the history
* chore: added infobox for legacy relase notes pages

* chore: changeset
  • Loading branch information
gabriele-ct authored Jun 17, 2024
1 parent cf28c03 commit c2080b5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-camels-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-docs/gatsby-theme-docs': patch
---

Added infobox to legacy release notes pages
18 changes: 18 additions & 0 deletions packages/gatsby-theme-docs/src/layouts/release-notes-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ import LayoutPageHeader from './internals/layout-page-header';
import LayoutReleaseNotePageHeaderSide from './layout-release-note-page-header-side';
import LayoutPageContent from './internals/layout-page-content';
import PageContentInset from './internals/page-content-inset';
import { ContentNotification } from '@commercetools-uikit/notifications';
import useReleaseNotesConfig from '../hooks/use-release-notes-config';
import Text from '@commercetools-uikit/text';
import { Link } from 'gatsby';

const LayoutReleaseNotesList = (props) => {
const { ref } = useInView();
const layoutState = useLayoutState();
const siteData = useSiteData();
const { getReleaseNotesUrl } = useReleaseNotesConfig();
const excludeFromSearchIndex =
props.pageData.excludeFromSearchIndex ||
siteData.siteMetadata.excludeFromSearchIndex;
Expand Down Expand Up @@ -59,6 +64,19 @@ const LayoutReleaseNotesList = (props) => {
</LayoutReleaseNotePageHeaderSide>
<LayoutPageContent>
<PageContentInset id="body-content" showRightBorder>
<ContentNotification type="info">
<Text.Body>
Discover our{' '}
<Link to={`/..${getReleaseNotesUrl()}`}>
combined Release Notes page
</Link>{' '}
and stay updated with the latest features and improvements!
Get comprehensive details on all updates, quickly find
specific updates and enhancements with our new search and
filter options, and easily browse through different versions
and sections.
</Text.Body>
</ContentNotification>
{props.children}
</PageContentInset>
</LayoutPageContent>
Expand Down

0 comments on commit c2080b5

Please sign in to comment.