Skip to content

Commit

Permalink
feat: docs redirects (#2490)
Browse files Browse the repository at this point in the history
# Description

This is a fix for the previous redirects of zesty docs to readme. Also
added small fix for removing acorns logo

Fixes #2487 #2484 

## Type of change

Please delete options that are not relevant.

- [x] New feature (non-breaking change which adds functionality)

# How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce.

- [x] Manual Test

# Screenshots / Screen recording




https://github.com/user-attachments/assets/05a4fb40-231b-41e1-9a5c-46288f1b06d2

---------

Signed-off-by: Japheth Louie M. Gofredo <[email protected]>
  • Loading branch information
japhethLG authored Nov 19, 2024
1 parent 444fffb commit 4d1865c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
10 changes: 5 additions & 5 deletions src/config/redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ const docsRedirects = [
destination: 'https://docs.zesty.io/docs/parsley',
permanent: true,
},
{
source: '/docs/media/api-reference/:path*',
destination: 'https://docs.zesty.io/reference/media-api-reference',
permanent: true,
},
{
source: '/docs/media/api-reference/manager/:path*',
destination: 'https://docs.zesty.io/reference/media-manager-api-reference',
Expand All @@ -44,6 +39,11 @@ const docsRedirects = [
destination: 'https://docs.zesty.io/reference/media-resolver-api-reference',
permanent: true,
},
{
source: '/docs/media/api-reference/:path*',
destination: 'https://docs.zesty.io/reference/media-api-reference',
permanent: true,
},
];

module.exports = { docsRedirects };
12 changes: 1 addition & 11 deletions src/revamp/ui/GetDemoSection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ import useGetDynamicData from './useGetDynamicData';
import { useRouter } from 'next/router';
import ZestyImage from 'blocks/Image/ZestyImage';

const acorns =
'https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Acorns%20Logo.svg',
bjs = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/BJ's%20Logo.svg`,
const bjs = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/BJ's%20Logo.svg`,
rocketLeague = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Horizontal_Text.svg`,
cornershop = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Logo_de_Cornershop%201.svg`,
phoenixSuns = `https://storage.googleapis.com/assets.zesty.io/website/images/assets/demo/Phoenix%20Suns.svg`,
Expand Down Expand Up @@ -369,14 +367,6 @@ export function Logos({ invert = false, alignLeft }) {
height="32px"
alt={generateAlt('Singlife')}
/>
<img
style={{ filter: invert ? 'invert(0.5)' : 'none' }}
loading="lazy"
src={acorns}
width="94px"
height="32px"
alt={generateAlt('Acorns')}
/>
<img
style={{ filter: invert ? 'invert(0.5)' : 'none' }}
loading="lazy"
Expand Down

0 comments on commit 4d1865c

Please sign in to comment.