INTEGRATIONS
GitHub

Sync multiple GitHub folders

6min

ο»ΏIf you have multiple folders in your repo that you use for your docs, now you can sync them all with Archbee.ο»Ώ

Reminder on how to integrate Archbee and GitHub:

In case you need to jog your memory on how to integrate the two, here's a full guide on that.

Up until now, you could only use the .archbee.yaml file in a single folder and for a single docs project. Now, you can do so with multiple folders.

If Archbee finds a .archbee.yaml file in the repository's root or any other folder, we use that to organize the content. It's the same file in all folders where you have docs stored. Here's an example of how to set up and configure your Git repo so that Archbee can fetch the content in there and set it up nicely into our software > Archbee git repo

Set up the repo

Refer to our abovementioned Archbee repo.

If the system finds a .archbee.yaml file in the root of the repo like this one, then we use that to organize the content. If not, we'll just set some defaults.

ο»ΏCreate .yaml file for multiple folders

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 all other folders.

  • root: ./docs 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 from that folder.
  • # This will include all code files from your repo
  • shadowDocs define the code files/folders to be included as Shadow Docs
  • publishSpace boolean, set true to publish the space to production portal after each commit
Document image
ο»Ώ

Below is an example of an archbee.yaml config file with the default path(folder).

.archbee.yaml
ο»Ώ

Example of archbee.yaml config file with subpaths:

JS
ο»Ώ

ο»ΏOnce you're done, go back to Archbee and check if you're able to select multiple folders in the drop-down menu:ο»Ώ

Select GitHub repo
Select GitHub repo
ο»Ώ

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

See an example of a summary.md file below:

summary.md
ο»Ώ

Sync in Archbee

When you create a new space, select your repo, changes are automatically synced in Archbee.

If that doesn't work automatically, you can force sync by navigating to Space settings > GitHub integration > click the Sync with repo button.

Sync with repo
Sync with repo
ο»Ώ

ο»Ώ

πŸ€”
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.

ο»Ώ