Adding Documents
Github
Upload all the files inside a repository
The Github integration allows you to upload files inside a repository to your knowledge base.
How do I add files from my Github?
Step 1: Adding Github Datasource on Libraria.
- Go to the Knowledge Base of the Library you want to add a knowledge to.
- Click on the External Data Sources tab.
![Extenal data sources](https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/add-docs-1.png)
- Select Github.
![Select Github drive](https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/github/git-1.png)
- A window will pop up then click on
Import Github Repos
.
![Github integration](https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/github/git-2.png)
- A new window will open for allowing access to your Github account. Click on
Authorize becaoding
to allow access.
![Github account](https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/github/git-3.png)
- Once done, you will see that under the Active Direct Integrations section, Github is now added.
![Actice integrations](https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/github/git-4.png)
Step 2: Move to Github Tab on Libraria
- Go back to Knowledge Base and click
Add Knowledge
![Add knowledge](https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/google-drive/add-google-4.png)
- Select Scrape with links
![Scrape with links](https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/knowledge/scrape-links.png)
- Select
Github
from the tabs that are in the link section. Log-in with Oauth to the account with your repo.
![Github drive tab](https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/github/git-5.png)
Step 3: Paste your File URL or Repository URL
- You can simply get the link to your repository or file by copying it from the URL field of your browser.
![Repo url](https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/github/git-6.png)
- Paste your repository URL in the field. Click Add more if you want to add more URLs.
![Pasted url](https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/github/git-7.png)
- Click the
Submit
button. Once submitted, a window will appear showing how much credits you will use and the files that will be added to your knowledge base.
![Submit](https://mintlify.s3-us-west-1.amazonaws.com/bogpad/images/adding-documents/github/git-8.png)
- Click on the
Submit
button in the window to confirm and add it to your library.