Skip to content

Commit

Permalink
Add custom_dir to material theme, update Google Analytics property
Browse files Browse the repository at this point in the history
  • Loading branch information
krzemienski committed Jul 19, 2024
1 parent 7edfd86 commit c968175
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
9 changes: 5 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ repo_name: krzemienski/awesome-video
repo_url: https://github.com/krzemienski/awesome-video
theme:
name: material
custom_dir: overrides
palette:
primary: red
accent: pink
extra:
analytics:
provider: google
property: G-383541848
property: G-VQCESB210D
social:
- type: github
- icon: fontawesome/brands/github-alt
link: https://github.com/krzemienski
- type: twitter
- icon: fontawesome/brands/twitter
link: https://twitter.com/nkrzemienski
- type: linkedin
- icon: fontawesome/brands/linkedin
link: https://www.linkedin.com/in/krzemienski
extra_css:
- css/extra.css
Expand Down
9 changes: 9 additions & 0 deletions overrides/partials/integrations/analytics/custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VQCESB210D"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-VQCESB210D');
</script>
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mkdocs==1.2.3
mkdocs-material==4.0.2
mkdocs
mkdocs-material
jinja2==3.0.3

0 comments on commit c968175

Please sign in to comment.