A block for Gutenberg that adds a nicely formatted Github embed to post content in any WordPress theme.
git clone https://github.com/dainemawer/github-gutenberg-block.git
-
cd
into the plugin folder, locate the webpack.config.js file -
In that directory run
npm run dev
to create a compiledblock.build.js
-
Make sure you have Gutenberg installed: https://wordpress.org/plugins/gutenberg/
-
Log in to WordPress and visit Plugins -> All Plugins
-
Activate "Github Embed Block"
-
Navigate to Posts or Pages -> Add New or edit an already saved post / page.
-
Click on the + icon in the Gutenberg editor and visit Widgets -> Github Embed
-
Enjoy nicely styled, Medium inspired Github embeds!
- The block uses the Public Github API, which means you only have 50 requests per hour. If you want to use the Oauth version of the Gihub API, which has to be tied to a Github account (5000 requests per hour) please create an issue on the repository. I am currently developing the Oauth version of the plugin.
GPL 2.0 or later
The plugin is free to use, but I develop in my spare time, if you're happy with the development of the plugin, or want to see new features, please post an issue and support my work by making a donation: https://www.paypal.me/dainemawer