Skip to content

add google analytics to 1.10.0 #871

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 26, 2021
Merged

add google analytics to 1.10.0 #871

merged 1 commit into from
Oct 26, 2021

Conversation

mattip
Copy link
Contributor

@mattip mattip commented Oct 26, 2021

@brianjo

For future reference, the way I did this is to write the snippet to a file, say foo, and then do

$ for f in $(find docs/1.10.0 -name '*.html'); do sed -i -e"/^.*modernizr.min.js.*$/r foo" $f; done

This finds all the html files in docs/1.10.0, and for each one, after a line containing modernizr.min.js, appends the contents of foo.

@netlify
Copy link

netlify bot commented Oct 26, 2021

👷 Deploy Preview for pytorch-dot-org-preview processing.

🔨 Explore the source changes: 73f47b6

🔍 Inspect the deploy log: https://app.netlify.com/sites/pytorch-dot-org-preview/deploys/6178143e74070d0007fa4d10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants