Skip to content

Commit 745407c

Browse files
jordanmnunezJordan Matyiku Nunez
and
Jordan Matyiku Nunez
authored
fix zendesk artifacts (mixpanel#143)
* fix zendesk images * support comments in redirects pages --------- Co-authored-by: Jordan Matyiku Nunez <[email protected]>
1 parent b8ca9a7 commit 745407c

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

next.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ const withNextra = require("nextra")({
1010
});
1111

1212
function parseRedirectPartsFromFile(filecontent) {
13-
return filecontent.trim().split(`\n`).map((line, idx) => {
13+
const rawRedirects = filecontent
14+
.split(`\n`)
15+
.filter((line) => line.trim() !== ``) // Ignore empty lines
16+
.filter((line) => !line.startsWith(`#`)); // Ignore comments
17+
18+
return rawRedirects.map((line, idx) => {
1419
const parts = line.split(` `);
1520
if (parts.length !== 2) {
1621
throw Error(

redirects/help-mixpanel-com.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
# Top Level Redirects. (No Sorting. Place with intention)
12
https://help.mixpanel.com/ /
3+
https://help.mixpanel.com/hc/en-us /
24
https://help.mixpanel.com/docs/search /docs/getting-started/what-is-mixpanel
5+
https://help.mixpanel.com/:path(docs.*) /:path
36
https://help.mixpanel.com/hc docs/getting-started/what-is-mixpanel
47
https://help.mixpanel.com/hc/admin/general_settings /docs/admin/organizations-projects
5-
https://help.mixpanel.com/hc/en-us /
8+
9+
# send support attachments back to original source
10+
https://help.mixpanel.com/:zendesk_attachment(attachments/token/.*) https://mixpanelsupport.zendesk.com/:zendesk_attachment
11+
12+
# Help Center - Content Redirects (Sort Alphabetically)
613
https://help.mixpanel.com/hc/en-us/articles/10147279357076(.*) /docs/tracking/how-tos/debugging#data-discrepancies
714
https://help.mixpanel.com/hc/en-us/articles/10503460589972(.*) /changelogs
815
https://help.mixpanel.com/hc/en-us/articles/10997736335892(.*) https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneltime_event

0 commit comments

Comments
 (0)