Integration

The GitHub logo

GitHub Files

View GitHub files or permalinks into code blocks

View GitHub files or permalinks and display them in codeblocks in GitBook
View GitHub files or permalinks and display them in codeblocks in GitBook

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