docusaurus-theme-github-codeblock icon indicating copy to clipboard operation
docusaurus-theme-github-codeblock copied to clipboard

A Docusaurus v2 plugin that supports referencing code examples from public GitHub repositories.

Results 14 docusaurus-theme-github-codeblock issues
Sort by recently updated
recently updated
newest added

Hey thanks for the repo, was looking to implement this but always nice when I don't have to. Just tried using against latest `2.0.0-beta.18` of docusaurus v2. Fails when loading...

Would it be possible to specify a base URL for the code snippets in the config file? I'd like to be able to specify the relevant commit in one place...

There seem to be a render side-effect instead of firing the req in useEffect which is something to avoid in React. Using a small fetching lib (like mine slorber/react-async-hook) can...

Leverage webpack raw-loader if docusaurus site is on same repo as source code, see for example v2.docusaurus.io/examples/markdownPageExample#import-code-block-from-source-code-file

Have a remark plugin fetch the actual code block content at build time instead of browse time (may make the build process longer and less reliable?). This could be a...

We should ensure that our React components are well unit tested.

Ensure that the plugin integrates with the latest Docusarus v2 version by adding some e2e tests that renders the example page with an example code block.

In order to save bandwith and not always fetch the same code all over again we should store everything in local storage.

The example shows `js` but what other languages are supported? Can I use this to show a file which is text-based console output?

Docusaurus yesterday released 3.0 which includes support for react 18. I tried to update but the plugin doesn't work Do you plan to release an update which will support docusuarus...

help wanted