Skip to content

Commit 3ec3fb5

Browse files
author
Shannon Anahata
committed
fixing conflicts
1 parent 2c4e7b2 commit 3ec3fb5

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/components/docPage/index.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import {ReactNode} from 'react';
2+
import Link from 'next/link';
23

34
import {
45
extractPlatforms,
56
getCurrentGuide,
67
getCurrentPlatform,
78
nodeForPath,
89
} from 'sentry-docs/docTree';
10+
import Markdown from 'sentry-docs/icons/Markdown';
911
import {serverContext} from 'sentry-docs/serverContext';
1012
import {FrontMatter} from 'sentry-docs/types';
1113
import {PaginationNavNode} from 'sentry-docs/types/paginationNavNode';
@@ -93,7 +95,19 @@ export function DocPage({
9395
fullWidth ? 'max-w-none w-full' : 'w-[75ch] xl:max-w-[calc(100%-250px)]',
9496
].join(' ')}
9597
>
96-
{leafNode && <Breadcrumbs leafNode={leafNode} />}
98+
{leafNode && (
99+
<div className="overflow-hidden">
100+
<Breadcrumbs leafNode={leafNode} />{' '}
101+
<Link
102+
rel="nofollow"
103+
className="float-right"
104+
href={`/${pathname}.md`}
105+
title="Markdown version of this page"
106+
>
107+
<Markdown className="flex p-0 flex-wrap" width={24} height={24} />
108+
</Link>
109+
</div>
110+
)}
97111
<div className="mb-4">
98112
<Banner />
99113
</div>

0 commit comments

Comments
 (0)