summaryrefslogtreecommitdiff
path: root/libraries/ESP32Servo/AddDoxygenToGHPages.sh
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2026-01-20 08:34:54 +0100
committerschererleander <leander@schererleander.de>2026-01-20 08:34:54 +0100
commit85ea4e995a75abe061f6fc375ea0481084dddd43 (patch)
tree7eb5d57653ecd8f041aeac4e68d7d554c1168681 /libraries/ESP32Servo/AddDoxygenToGHPages.sh
initial commitHEADmain
Diffstat (limited to 'libraries/ESP32Servo/AddDoxygenToGHPages.sh')
-rw-r--r--libraries/ESP32Servo/AddDoxygenToGHPages.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/libraries/ESP32Servo/AddDoxygenToGHPages.sh b/libraries/ESP32Servo/AddDoxygenToGHPages.sh
new file mode 100644
index 0000000..a62ae0b
--- /dev/null
+++ b/libraries/ESP32Servo/AddDoxygenToGHPages.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+GITURL=$(git config --get remote.origin.url)
+
+echo $GITURL
+
+rm -rf html
+git clone $GITURL html
+cd html
+if ( git checkout origin/gh-pages -b gh-pages) then
+ echo "Checked out $GITURL gh-pages"
+else
+ echo "Creating out $GITURL gh-pages"
+ git checkout origin/master -b gh-pages
+ rm -r *
+ echo "# A simple README file for the gh-pages branch" > README.md
+ git add README.md
+ git commit -m"Replaced gh-pages html with simple readme"
+ git push -u origin gh-pages
+fi
+cd ..
+
+doxygen doxy.doxyfile
+
+cd html
+git add *
+git add search/*
+git commit -a -m"updating the doxygen"
+git push
+cd ..
+rm -rf html
+git checkout master \ No newline at end of file