Skip to content

Commit f01b173

Browse files
committed
update footer
1 parent 4f89dff commit f01b173

File tree

1 file changed

+15
-21
lines changed

1 file changed

+15
-21
lines changed

docusaurus.config.js

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ const featureList = [
4040
];
4141

4242
// UTM stuff
43-
4443
const utmAdvocateName = `erik.hatcher`;
4544
const utmWorkshopName = 'search-play-workshop'
46-
4745
const utmParams = `utm_campaign=devrel&utm_source=workshop&utm_medium=cta&utm_content=${utmWorkshopName}&utm_term=${utmAdvocateName}`;
4846

4947
// Footer links (probably no need to change them)
@@ -55,24 +53,20 @@ const footerLinks = [
5553
},
5654
{
5755
label: "Forums",
58-
href: `https://www.mongodb.com/community/forums/${utmParams}`,
56+
href: `https://www.mongodb.com/community/forums/?${utmParams}`,
5957
},
6058
{
6159
label: "Developer Center",
62-
href: `https://www.mongodb.com/developer/${utmParams}`,
60+
href: `https://www.mongodb.com/developer/?${utmParams}`,
6361
},
6462
{
6563
label: "MongoDB University",
66-
href: `https://learn.mongodb.com/${utmParams}`,
64+
href: `https://learn.mongodb.com/?${utmParams}`,
6765
},
6866
{
6967
href: `https://github.com/${organizationName}/${workshopName}`,
7068
label: "This lab in GitHub",
7169
},
72-
{
73-
label: ${new Date().getFullYear()} MongoDB, Inc.`,
74-
href: "#",
75-
},
7670
];
7771

7872
///////////////////////////////////////////////////////////////////////////////
@@ -94,13 +88,12 @@ const config = {
9488
trailingSlash: false,
9589
onBrokenLinks: "throw",
9690
onBrokenMarkdownLinks: "warn",
97-
onDuplicateRoutes: "ignore",
9891
favicon: `${favicon}`,
9992
deploymentBranch: "gh-pages",
10093
staticDirectories: ["static"],
10194
i18n: {
10295
defaultLocale: "en",
103-
locales: ["en"],
96+
locales: ["en", "es"],
10497
},
10598
customFields: {
10699
startButtonTitle: `${startButtonTitle}`,
@@ -114,7 +107,7 @@ const config = {
114107
({
115108
docs: {
116109
sidebarPath: require.resolve("./sidebars.js"),
117-
// editUrl: `https://github.com/${organizationName}/${workshopName}/blob/main`,
110+
editUrl: `https://github.com/${organizationName}/${workshopName}/blob/main`,
118111
},
119112
theme: {
120113
customCss: require.resolve("./src/css/custom.css"),
@@ -136,14 +129,14 @@ const config = {
136129
hideable: true,
137130
},
138131
},
139-
// announcementBar: {
140-
// id: "feedback_form",
141-
// content:
142-
// 'This is a demonstration that we can put a pop-up message here! Even <a target="_blank" rel="noopener noreferrer" href="#">links</a>',
143-
// backgroundColor: "#fafbfc",
144-
// textColor: "#091E42",
145-
// isCloseable: true,
146-
// },
132+
announcementBar: {
133+
id: "feedback_form",
134+
content:
135+
'This is a demonstration that we can put a pop-up message here! Even <a target="_blank" rel="noopener noreferrer" href="#">links</a>',
136+
backgroundColor: "#fafbfc",
137+
textColor: "#091E42",
138+
isCloseable: true,
139+
},
147140
navbar: {
148141
title: `${title}`,
149142
logo: {
@@ -164,6 +157,7 @@ const config = {
164157
footer: {
165158
style: "dark",
166159
links: footerLinks,
160+
copyright: ${new Date().getFullYear()} MongoDB, Inc.`
167161
},
168162
prism: {
169163
theme: lightCodeTheme,
@@ -183,4 +177,4 @@ const config = {
183177
themes: ["@docusaurus/theme-mermaid"],
184178
};
185179

186-
module.exports = config;
180+
module.exports = config;

0 commit comments

Comments
 (0)