File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 11import { ReactNode } from 'react' ;
2+ import Link from 'next/link' ;
23
34import {
45 extractPlatforms ,
56 getCurrentGuide ,
67 getCurrentPlatform ,
78 nodeForPath ,
89} from 'sentry-docs/docTree' ;
10+ import Markdown from 'sentry-docs/icons/Markdown' ;
911import { serverContext } from 'sentry-docs/serverContext' ;
1012import { FrontMatter } from 'sentry-docs/types' ;
1113import { 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 >
You can’t perform that action at this time.
0 commit comments