We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a862cde commit cc2e615Copy full SHA for cc2e615
.changeset/rude-tomatoes-hunt.md
@@ -0,0 +1,5 @@
1
+---
2
+"gitbook": minor
3
4
+
5
+Emit a <link rel="alternate"> for the markdown version of a page
packages/gitbook/src/components/SitePage/SitePage.tsx
@@ -135,6 +135,9 @@ export async function generateSitePageMetadata(props: SitePageProps): Promise<Me
135
canonical: linker
136
.toAbsoluteURL(linker.toPathForPage({ pages: revision.pages, page }))
137
.replace(/\/+$/, ''),
138
+ types: {
139
+ 'text/markdown': `${linker.toAbsoluteURL(linker.toPathInSpace(page.path))}.md`,
140
+ },
141
},
142
openGraph: {
143
images: [
0 commit comments