Sync multiple GitHub folders
ο»Ώ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
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 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 Document image](https://images.archbee.com/bNBm7nPJgXjbjLyfbHNh2/ARwFXBxpMGGn8Y8Ce1OhI_git-sync-light.png?format=webp)
Below is an example of an archbee.yaml config file with the default path(folder).
Example of archbee.yaml config file with subpaths:
ο»Ώ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](https://images.archbee.com/bNBm7nPJgXjbjLyfbHNh2/KLw-OyxXwYqareQUJNNUC_git-select-light.png?format=webp)
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:
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](https://images.archbee.com/bNBm7nPJgXjbjLyfbHNh2/0yk-oP4X5jVKXKxVdWJlZ_settings-light.png?format=webp)
ο»Ώ
ο»Ώ