markdown export from URL (#5830)

* Add Markdown export of any doc page by appending `.md` to the URL
* New "View as Markdown" dropdown menu from the "copy page" button
This commit is contained in:
Emma Youndtsmith
2025-11-21 15:37:41 -06:00
committed by GitHub
parent d54a06afda
commit 043e4a741e
5 changed files with 217 additions and 7 deletions
+12 -1
View File
@@ -29,7 +29,12 @@ const config: Config = {
projectName: "goose", // Usually your repo name.
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
markdown: {
hooks: {
onBrokenMarkdownLinks: "warn",
},
},
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
@@ -315,6 +320,12 @@ const config: Config = {
},
],
tailwindPlugin,
[
require.resolve("./plugins/markdown-export.cjs"),
{
enabled: true,
},
],
],
themes: ["@inkeep/docusaurus/chatButton", "@inkeep/docusaurus/searchBar"],
themeConfig: {