Skip to content

Commit

Permalink
add: Plugin for referencing external Github files (#4394)
Browse files Browse the repository at this point in the history
* add plugin for referencing external github files

* revert changes
  • Loading branch information
jessiemongeon1 authored Jan 30, 2025
1 parent 1ab8811 commit 89519c5
Show file tree
Hide file tree
Showing 4 changed files with 2,778 additions and 235 deletions.
9 changes: 8 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,13 @@ const config = {
disableSwitch: false,
defaultMode: "light",
respectPrefersColorScheme: true,
},
// github codeblock theme configuration
codeblock: {
showGithubLink: true,
githubLinkLabel: 'View on GitHub',
showRunmeLink: false,
runmeLinkLabel: 'Checkout via Runme'
},
metadata: [
{
Expand Down Expand Up @@ -847,7 +854,7 @@ const config = {
playgroundPosition: "bottom",
},
},
themes: ["@docusaurus/theme-live-codeblock", "@docusaurus/theme-mermaid"],
themes: ["@docusaurus/theme-live-codeblock", "@docusaurus/theme-mermaid", "docusaurus-theme-github-codeblock"],
clientModules: [require.resolve("./static/load_moc.ts")],
};

Expand Down
Loading

0 comments on commit 89519c5

Please sign in to comment.