Skip to content

Commit 5cbeca6

Browse files
committed
Add cookies
1 parent 45a7070 commit 5cbeca6

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

mkdocs.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ theme:
3030
font:
3131
text: Roboto
3232
code: Roboto Mono
33-
33+
3434

3535
# Features to Include (ref. theme documentation)
3636
features:
@@ -59,7 +59,7 @@ theme:
5959

6060
# Keeps tabs visible in the header when scrolling
6161
- navigation.tabs.sticky
62-
62+
6363
# Adds pop-up button just below the header (when the user starts to scroll up)
6464
# Allows users to easily jump to the beginning of the page
6565
- navigation.top
@@ -82,7 +82,7 @@ theme:
8282
- media: "(prefers-color-scheme: light)"
8383
primary: grey
8484
accent: red
85-
scheme: default
85+
scheme: default
8686
toggle:
8787
icon: material/brightness-7
8888
name: Switch to system preference
@@ -94,7 +94,7 @@ theme:
9494
scheme: slate
9595
toggle:
9696
icon: material/weather-night
97-
name: Switch to light mode
97+
name: Switch to light mode
9898

9999

100100
# Configures icons
@@ -104,7 +104,7 @@ theme:
104104

105105
# Sets repo icon to GitHub icon
106106
repo: fontawesome/brands/github
107-
107+
108108
# Sets icons for "view source" (commented out) and "edit this page" buttons
109109
edit: material/file-document-edit-outline
110110
# view: material/file-code-outline
@@ -185,7 +185,7 @@ markdown_extensions:
185185
- pymdownx.superfences
186186
- pymdownx.details
187187
- pymdownx.tabbed:
188-
alternate_style: true
188+
alternate_style: true
189189
- pymdownx.betterem:
190190
smart_enable: all
191191
- pymdownx.mark
@@ -228,9 +228,29 @@ extra:
228228
link: https://www.github.com/sparkfun
229229
- icon: fontawesome/brands/facebook
230230
link: https://www.facebook.com/SparkFun
231-
- icon: fontawesome/brands/twitter
231+
- icon: fontawesome/brands/x-twitter
232232
link: https://twitter.com/sparkfun
233-
233+
- icon: fontawesome/solid/cookie-bite
234+
link: ./#__consent
235+
name: Change cookie settings
236+
237+
# Configures Google Analytics
238+
analytics:
239+
provider: google
240+
property: G-7Y7EYCZVC1
241+
242+
consent:
243+
cookies:
244+
analytics:
245+
name: Google Analytics
246+
checked: true
247+
title: Cookie consent
248+
description:
249+
We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. With your consent, you're helping us to make our documentation better.
250+
actions:
251+
- accept
252+
- manage
253+
- reject
234254

235255

236256
# Configures styling for PDF rendering and webpage layout

0 commit comments

Comments
 (0)