INTEGRATIONS
GitHub

Set up the repository

10min

Set up the repository

Assuming you've already completed the integration, next step is to set up a repository.

You need to successfully set up and configure your repo so that Archbee can fetch the content in there and set it up nicely on our end.

ο»ΏYou can fork this repository.ο»Ώ

If the system finds a .archbee.yaml file in the root of your repository or other folders (in case you are using multipath) like this .yaml file, then we use that to organize the content.

Pay close attention to the .yaml file here if you want to configure the folder where the markdown content is rendered from (or a summary document tree hierarchy).

Create .yaml file

ο»ΏCreate aΒ .archbee.yamlΒ file with the following variable structure:ο»Ώ

You must place the file in the root folder of your repository(ies). Make sure that the file stays there as this is your default path for other folders - in case you have multiple folders, you must copy the file to those folders. How, you ask? Check how to sync multiple folders.

What do all these keys mean?

  • root: ./docs : this property defines where's the directory containing the docs (can be replaced with docsPath: ./docs)
  • structure:
    • summary: summary.md : reconstructs the document tree in the left navigation panel in Archbee. If there is none, we consider the folders to be the categories and mimic the file structure inside.
    • assets: assets : the assets folder is relative to docsPath. Archbee will upload all files found in that folder (code files and images).
  • shadowDocs : you need to define the code files/folders to be included as Shadow docs
  • ο»ΏpublishSpace : boolean, set to true if you want to publish the space to production portal after each commitο»Ώ

ο»ΏExample of an archbee.yaml config file:ο»Ώ

Paste an image link or upload your image
or
No image chosen
ο»Ώ
archbee.yaml
ο»Ώ

ο»ΏExample of an archbee.json config file:ο»Ώ

Paste an image link or upload your image
or
No image chosen
ο»Ώ
archbee.json
ο»Ώ

Create summary.md file

We also recommend that you create a summary.md file. The summary.md reconstructs the document tree in the left navigation panel in Archbee. And it can help you organize your content nicely.

See an example of a summary.md file below:

Paste an image link or upload your image
or
No image chosen
ο»Ώ
summary.md
ο»Ώ

Use Markdown syntax with GitHub

Some content blocks can be rendered if you are using specific syntax.

Check the Editor Markdown shortcutsο»Ώ to use these shortcuts.

Add multiple repositories

Follow these simple steps to add multiple repositories and sync them with Archbee:

1

Go to your GitHub account connected with Archbee, and then navigate to the Settings page.

On the left sidebar, look for Applications.

GitHub applications page
GitHub applications page
ο»Ώ
2

Click the Configure button and when the new page opens, provide access to:

  1. All repositories (this means that you can select any repo from your Archbee account)
  2. Only select repositories (select any new repository you want to sync with Archbee)
  3. Click Save

ο»Ώ

Select repositories
Select repositories
ο»Ώ
3

Go back to your Archbee account.

From the left navigation panel, create a new Space -> choose Write in GitHub and select the newly added repositories.

Import Open Api files

You can actually import Open Api files via GitHub. This feature works exactly like Importing OpenAPI / Swaggerο»Ώ feature, including its settings. There are 2 important things to set up:

  • paths to Open Api files (.json, .yml, .yaml) to be written in summary.md config file
  • settings to be written in main config file under docTreeOptions:
.archbee.yaml
ο»Ώ

ο»Ώ

πŸ€”
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.

ο»Ώ

Updated 23 Aug 2024
Doc contributor
Doc contributor
Doc contributor
Doc contributor
Doc contributor
Doc contributor
Did this page help you?