Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

You can include content from private GitHub projects / repos too. Once private links are added, the OAuth process will follow.

Include GitHub for Confluence Cloud provides a File Macro

To add the GitHub Cloud macros for Confluence Cloud to a page:

  1. In the Confluence editor, choose Insert > Other Macros.

  2. Find and select the required macro ("External Content" category).

Speeding up macro input with auto-complete: Type /GitHub  or /Include to see a list of suggested macros.

To edit an existing macro: Click the macro placeholder and choose Edit. A macro dialog window will open, where you can edit the parameters of the GitLab Cloud macro.

1. Macro "GitHub File": Include GitHub Cloud file by url

This macro allows the user to include a file from a GitHub repository in order to have an up-to-date version of it in a Confluence page.

Type /GitHub File and ENTER to specify the details of this macro like the url of the file, syntax highlighting, title and line numbers.

git-lab.webm

Note: Copy the file URL from your browser and paste it into the URL field.

 

Alternatively, you can also paste a GitHub file URL directly into the Confluence page editor.

git-lab-paste.webm

On this page:

On this page:
  • No labels