GitHub gists for Confluence

After installing the GitHub gists for Confluence app, it will become available as a Confluence Macro. If you want to embed GitHub gists into a Confluence page, open https://gist.github.com and select the gist you want to embed.

Embed using the gist URL

GitHub gists for Confluence will automatically detect the gist URL. Once you have selected the gist in GitHub, copy the URL from the browser address bar and paste it directly into your Confluence page. The GitHub gists for Confluence macro will open automatically.

You can edit the macro to adjust the dimensions:

  1. After selecting the macro, click on the Edit button to open the macro editor right side panel

  2. Select the desired dimensions & click insert
    Keep in mind that one of both dimensions (width & height) needs to be a css unit. Also note that height can only be an absolute unit (px, cm, etc) and not relative (%, em, etc)

  3. Publish your Confluence page & your GitHub gist will become visible!
    Keep in mind that boards are read-only

Embed using the macro editor

  1. When editing a page, click on the plus button at the top right of your screen and click on Other macro’s or View more

  2. Search for GitHub gists for Confluence. Click on GitHub gists for Confluence

  3. The macro editor right side panel will open, which will allow you to enter the URL of your GitHub gist

  4. Select the desired dimensions & click insert
    Keep in mind that one of both dimensions (width & height) needs to be a css unit. Also note that height can only be an absolute unit (px, cm, etc) and not relative (%, em, etc)

  5. Publish your Confluence page & your GitHub gist will become visible!
    Keep in mind that scene’s are read-only