Add extra script to the docs created in GitHub Actions workflow

This was done by the cron job running in docs.wxwidgets.org before, so
keep doing it here.
This commit is contained in:
Vadim Zeitlin
2022-03-27 18:13:48 +02:00
parent 15ea25448f
commit 20b8ba1773
2 changed files with 9 additions and 1 deletions

View File

@@ -20,6 +20,12 @@ jobs:
run: |
sudo apt-get -q -o=Dpkg::Use-Pty=0 -y install doxygen graphviz
- name: Customize for online docs
working-directory: docs/doxygen
run: |
sed -i'' -e "s@<!--EXTRA FOOTER SCRIPT-->@<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-794025-2', 'auto');ga('send', 'pageview');</script>@" \
custom_footer.html
- name: Generate documentation
working-directory: docs/doxygen
run: |

View File

@@ -19,6 +19,8 @@
<script src="wxwidgets.js" type="text/javascript"></script>
<!--EXTRA FOOTER SCRIPT-->
</div><!-- #page_container -->
</body>
</html>
</html>