Skip to content

Commit 7dbaa57

Browse files
committed
Remove redundant links from footer
1 parent 5be51ce commit 7dbaa57

File tree

2 files changed

+10
-78
lines changed

2 files changed

+10
-78
lines changed

docusaurus.config.js

+7-77
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export default {
4343
},
4444
{
4545
to: 'docs/getting-started',
46+
activeBasePath: 'docs',
4647
label: 'Docs',
4748
position: 'right',
4849
},
@@ -75,100 +76,29 @@ export default {
7576
label: 'Troubleshooting',
7677
to: 'docs/troubleshooting',
7778
},
79+
{
80+
label: 'Contributing',
81+
to: 'docs/contributing',
82+
},
7883
],
7984
position: 'right',
8085
},
8186
{
8287
href: 'https://x.com/reactnavigation',
83-
position: 'right',
8488
className: 'navbar-social-link navbar-social-link-x',
8589
'aria-label': 'X',
8690
position: 'right',
8791
},
8892
{
89-
href: 'https://github.com/react-navigation',
90-
position: 'right',
93+
href: 'https://github.com/react-navigation/react-navigation',
9194
className: 'navbar-social-link navbar-social-link-github',
9295
'aria-label': 'GitHub',
9396
position: 'right',
9497
},
9598
],
9699
},
97100
footer: {
98-
links: [
99-
{
100-
title: 'Docs',
101-
items: [
102-
{
103-
label: 'Getting Started',
104-
to: 'docs/getting-started',
105-
},
106-
{
107-
label: 'Building your own Navigator',
108-
to: 'docs/custom-navigators',
109-
},
110-
{
111-
label: 'Contributing',
112-
to: 'docs/contributing',
113-
},
114-
],
115-
},
116-
{
117-
title: 'Support',
118-
items: [
119-
{
120-
label: 'Chat in our Discord channel',
121-
href: 'https://discord.gg/reactiflux',
122-
},
123-
{
124-
label: 'Get help on Stack Overflow',
125-
href: 'https://stackoverflow.com/questions/tagged/react-navigation',
126-
},
127-
{
128-
label: 'Request a feature on Canny',
129-
href: 'https://react-navigation.canny.io/feature-requests',
130-
},
131-
{
132-
label: 'Report a bug on GitHub',
133-
href: 'https://github.com/react-navigation/react-navigation/issues/new/choose',
134-
},
135-
],
136-
},
137-
{
138-
title: 'Social',
139-
items: [
140-
{
141-
label: 'Blog',
142-
to: 'blog',
143-
},
144-
{
145-
label: 'GitHub',
146-
href: 'https://github.com/react-navigation/react-navigation',
147-
},
148-
{
149-
label: 'Twitter',
150-
href: 'https://twitter.com/reactnavigation',
151-
},
152-
],
153-
},
154-
{
155-
title: 'Built with',
156-
items: [
157-
{
158-
label: 'Docusaurus',
159-
to: 'https://docusaurus.io/',
160-
},
161-
{
162-
label: 'GitHub Pages',
163-
href: 'https://pages.github.com/',
164-
},
165-
{
166-
label: 'Netlify',
167-
href: 'https://www.netlify.com/',
168-
},
169-
],
170-
},
171-
],
101+
copyright: `Copyright © ${new Date().getFullYear()} React Navigation. Built with <a href="https://docusaurus.io/">Docusaurus</a>, <a href="https://pages.github.com/">GitHub Pages</a>, and <a href="https://www.netlify.com/">Netlify</a>.`,
172102
},
173103
},
174104
plugins: [

src/css/custom.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
);
6767

6868
--ifm-hero-background-color: var(--ifm-color-primary);
69-
--ifm-footer-background-color: #f7f7ff;
69+
--ifm-footer-background-color: var(--ifm-background-surface-color);
7070
--ifm-home-color-text: #414360;
7171
--ifm-home-color-background: #f7f7ff;
7272
--ifm-home-color-background-secondary: #d5d6f5;
@@ -79,6 +79,8 @@
7979
--ifm-menu-color-background-active: rgba(107, 82, 174, 0.1);
8080
--docusaurus-highlighted-code-line-bg: rgba(107, 82, 174, 0.1);
8181

82+
--ifm-footer-padding-horizontal: var(--ifm-spacing-horizontal);
83+
--ifm-footer-padding-vertical: var(--ifm-spacing-vertical);
8284
--ifm-tabs-padding-vertical: 0.5rem;
8385
--ifm-alert-border-left-width: 0;
8486
}

0 commit comments

Comments
 (0)