Skip to content

Commit 016a12a

Browse files
authored
add contribute to global nav (#5241)
* add contribute to global nav * absolute path for contribute link in nav * relative links in nav replace docs and contribute with relative links in nav
1 parent 3172d49 commit 016a12a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/constants/links.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export const DISCORD = 'https://discord.gg/amplify';
22
export const LEARN = 'https://amplify.aws/learn';
3-
// export const CONTRIBUTE = 'https://docs.amplify.aws/contribute/';
4-
// export const CONTRIBUTE = 'https://contributetoamplify.com/';
3+
export const CONTRIBUTE = 'https://docs.amplify.aws/contribute/';
54
export const TWITTER = 'https://twitter.com/AWSAmplify';
65
export const GITHUB = 'https://github.com/aws-amplify';
76
export const TERMS = 'https://aws.amazon.com/terms/';

src/utils/globalnav.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const LEFT_NAV_LINKS = [
1717
{
1818
type: 'DEFAULT',
1919
label: 'Docs',
20-
url: 'https://docs.amplify.aws/',
20+
url: '/',
2121
order: 1
2222
},
2323
{
@@ -32,12 +32,12 @@ export const LEFT_NAV_LINKS = [
3232
url: 'https://ui.docs.amplify.aws/',
3333
order: 3
3434
},
35-
// {
36-
// type: 'DEFAULT',
37-
// label: 'Contribute',
38-
// url: '/contribute/',
39-
// order: 4
40-
// }
35+
{
36+
type: 'DEFAULT',
37+
label: 'Contribute',
38+
url: '/contribute/',
39+
order: 4
40+
}
4141
];
4242

4343
export const SOCIAL_LINKS = [

0 commit comments

Comments
 (0)