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:
parent
15ea25448f
commit
20b8ba1773
2 changed files with 9 additions and 1 deletions
6
.github/workflows/docs_update.yml
vendored
6
.github/workflows/docs_update.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue