You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -76,3 +76,18 @@ The `doxy_gen_and_deploy.sh` script uses [Doxygen](https://www.doxygen.nl/) to g
76
76
for the library. Any issues, like missing documentation, will cause the CI to fail.
77
77
See the [guide](https://learn.adafruit.com/the-well-automated-arduino-library/doxygen) for details on installing and running Doxygen locally. The guide also has some
78
78
[tips](https://learn.adafruit.com/the-well-automated-arduino-library/doxygen-tips) on basic usage of Doxygen markup within your code.
79
+
80
+
### Preserving Folders in Documentation Branch
81
+
82
+
By default, the documentation deployment script cleans the gh-pages branch before adding new documentation. If you need to preserve certain folders (like custom web interfaces), you can set the `PRESERVE_FOLDERS` environment variable in your workflow:
83
+
84
+
```yaml
85
+
- name: doxygen
86
+
env:
87
+
GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
88
+
PRETTYNAME : "My Arduino Library"
89
+
PRESERVE_FOLDERS: "webserial,assets"
90
+
run: bash ci/doxy_gen_and_deploy.sh
91
+
```
92
+
93
+
This will preserve the listed folders (comma-separated) during the documentation generation process.
0 commit comments