Custom code & code snippets with GitHub
Integration with GitHub allows you to sync the Custom Code: customCSS, customJS, footerTemplate, headerTemplate, directly from the GitHub repository. These variables can be raw text or link to a file from the root folder.
You just need to define the archbee.json file in your repo and add your custom code or custom CSS, like in this example:
If you push the code to GitHub, Archbee will read the configuration from the archbee.json file and automatically update the Space Settings -> Custom Code section with your new code.
You can add code snippets in your GitHub repo, you just need to configure them in the config.md file.
The config.md file must be placed in the same folder as the summary.md file.
Below is an example of a config.md file:
Assuming that you have the below package.json file (from the above example):
And also the config.md file:
You will see the following in the Archbee doc after the import: