Skip to content

Commit

Permalink
chore: remove filters from release notes list page (#1987)
Browse files Browse the repository at this point in the history
* chore: remove filters from release notes list page

* chore: changeset

* chore: add correct backlink to release notes details page
  • Loading branch information
gabriele-ct authored Jun 12, 2024
1 parent 3ddd920 commit 4dabf86
Show file tree
Hide file tree
Showing 11 changed files with 96 additions and 550 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-snakes-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-docs/gatsby-theme-docs': minor
---

Remove the ability of filtering the release notes in the legacy release notes list page
6 changes: 5 additions & 1 deletion packages/gatsby-theme-docs/src/components/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ const PureLink = (extendedProps) => {
return (
<GatsbyRouterLink
data-link-type="gatsby-link"
to={trimTrailingSlash(hrefObject.pathname) + hrefObject.hash}
to={
trimTrailingSlash(hrefObject.pathname) +
hrefObject.hash +
hrefObject.search
}
className={props.className}
css={getStylesFromProps({ nounderline })}
>
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import React from 'react';
import { withPrefix } from 'gatsby';
import { css } from '@emotion/react';
import SpacingsStack from '@commercetools-uikit/spacings-stack';
import SpacingsInline from '@commercetools-uikit/spacings-inline';
import {
designSystem,
createStyledIcon,
Icons,
} from '@commercetools-docs/ui-kit';
import { designSystem } from '@commercetools-docs/ui-kit';
import { MailIcon } from '@commercetools-uikit/icons';
import { ExternalSiteLink } from './link';

const RssIcon = createStyledIcon(Icons.RssSvgIcon);

const linkStyles = css`
text-decoration: none;
color: ${designSystem.colors.light.textSecondary} !important;
Expand All @@ -34,12 +27,6 @@ const linkStyles = css`

const ReleaseNotesSubscribeLinks = () => (
<SpacingsStack scale="xs">
<ExternalSiteLink href={withPrefix('/releases/feed.xml')} css={linkStyles}>
<SpacingsInline scale="xs" alignItems="center">
<RssIcon size="medium" />
<span>RSS</span>
</SpacingsInline>
</ExternalSiteLink>
<ExternalSiteLink
href="https://commercetools.com/newsletter/product"
css={linkStyles}
Expand Down

This file was deleted.

Loading

0 comments on commit 4dabf86

Please sign in to comment.