Overview
The GitHub Files integration allows you to take a link to a GitHub file or a permalink to lines of code and display them into code blocks in GitBook.
How it works
After installing the GitHub Files integration, you're able to insert it into a GitBook file in the (CMD + /) menu.
Insert the integration, paste your link, and the integration will display the code in a formatted code block.
Configure
In order to view code from private repositories, you'll need to authorize with your GitHub Account in the integration's configuration page.
"We can use our documentation for prospects, not just customers. Finding a certain page in Google is just way easier with GitBook."
Roman Musatkin
,
Head of Product & Design
Swarmia
"We can use our documentation for prospects, not just customers. Finding a certain page in Google is just way easier with GitBook."
Roman Musatkin
,
Head of Product & Design
Swarmia
"We can use our documentation for prospects, not just customers. Finding a certain page in Google is just way easier with GitBook."
Roman Musatkin
,
Head of Product & Design
Swarmia
Build knowledge that never stands still
Join the thousands of teams using GitBook and create documentation that evolves alongside your product
Build knowledge that never stands still
Join the thousands of teams using GitBook and create documentation that evolves alongside your product
Build knowledge that never stands still
Join the thousands of teams using GitBook and create documentation that evolves alongside your product
Documentation
© 2025 Copyright GitBook INC.
440 N Barranca Ave #7171, Covina, CA 91723, USA. EIN: 320502699
Documentation
© 2025 Copyright GitBook INC.
440 N Barranca Ave #7171, Covina, CA 91723, USA. EIN: 320502699