ESP32_Project/libraries/esp32cam-main/docs/build.sh

9 lines
481 B
Bash
Raw Permalink Normal View History

2024-02-07 10:25:05 +00:00
#!/bin/bash
set -euo pipefail
cd "$( dirname "${BASH_SOURCE[0]}" )"
doxygen Doxyfile 2>&1 | ./filter-Doxygen-warning.awk 1>&2
find html -name '*.html' | xargs sed -i '/<\/head>/ i\<script async src="https://www.googletagmanager.com/gtag/js?id=G-MLZ5G2C4X2"></script><script>window.dataLayer=[];function gtag(){dataLayer.push(arguments);}if(location.hostname.endsWith(".yoursunny.dev")){gtag("js",new Date());gtag("config","G-MLZ5G2C4X2");}</script></script>'
cp _redirects html/