You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We need Github when added to a Confluence page to be embedded. When you clicking the Github icon in the article it opens in a new browser the expanded source file.
What do I need to have it embed in the article in Confluence?
Hello @Trena Norcia,
You may find Include GitHub for Confluence Cloud useful for your use case where you want to embed a GitHub source file into Confluence.
You can simply copy the URL of the GitHub file and paste it into the Confluence page.
In the following example we use this GitHub URL of a .js file:
Then paste the URL in the Confluence file as shown in the video and the macro will automatically be applied to embed the file.
Also, we have just launched Include GitHub for Confluence DC in the marketplace. It can be used to render public and private files from both GitHub Enterprise and GitHub.com.
I hope this is helpful.
Sue from Mibex Software
Hi @Trena Norcia ,
Confluence Cloud's native smart link functionality might help out here. When you drop a link into the editor, you might notice it changes from a raw URL into a nicely formatted page title:
If you select this link in the editor, you can change its display style:
The "Display as card" option will expand out a bit and show some extra information. For pull requests, it will at least include the summary:
Some types of content such as gists will also have a "Display embed" option, which can give you the whole content right on the Confluence page:
And you'll also notice that the "Display embed" option gives you the resize handles, as well as lets you wrap text around the embed if you'd like to.
@Daniel Eads What are the Confluence requirements to get the display options shown above? I am working out of a Confluence cloud instance and do not have that "Display" dropdown available. The link I'm trying to embed is to a source file with a line marker in GitHub.