Skip to content

Commit

Permalink
fix(asf): removing google hosted analytics and fonts (apache#27963)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas authored and qleroy committed Apr 28, 2024
1 parent a311919 commit 7ae7c14
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 14 deletions.
8 changes: 0 additions & 8 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,6 @@ const config = {
theme: {
customCss: require.resolve('./src/styles/custom.css'),
},
googleAnalytics: {
trackingID: 'G-133LHD3B3N',
anonymizeIP: true,
},
gtag: {
trackingID: 'G-133LHD3B3N',
anonymizeIP: true,
},
}),
],
],
Expand Down
1 change: 0 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"@docsearch/react": "^3.6.0",
"@docusaurus/core": "^2.4.1",
"@docusaurus/plugin-client-redirects": "^2.4.3",
"@docusaurus/plugin-google-gtag": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.3",
"@emotion/core": "^10.1.1",
"@emotion/styled": "^10.0.27",
Expand Down
Binary file added docs/src/fonts/Roboto-Bold.woff
Binary file not shown.
Binary file added docs/src/fonts/Roboto-Bold.woff2
Binary file not shown.
Binary file added docs/src/fonts/Roboto-Regular.woff
Binary file not shown.
Binary file added docs/src/fonts/Roboto-Regular.woff2
Binary file not shown.
15 changes: 14 additions & 1 deletion docs/src/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,21 @@
*/

/* You can override the default Infima variables here. */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
url('../fonts/Roboto-Regular.woff') format('woff');
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto-Bold.woff2') format('woff2'),
url('../fonts/Roboto-Bold.woff') format('woff');
font-weight: 700;
font-style: bold;
}
:root {
--ifm-color-primary: #20a7c9;
--ifm-color-primary-dark: #1985a0;
Expand Down
2 changes: 1 addition & 1 deletion docs/static/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ RewriteRule ^(.*)$ https://superset.apache.org/$1 [R,L]
RewriteCond %{HTTP_HOST} ^superset.incubator.apache.org$ [NC]
RewriteRule ^(.*)$ https://superset.apache.org/$1 [R=301,L]

Header set Content-Security-Policy "default-src data: blob: 'self' *.apache.org *.bugherd.com *.scarf.sh *.googleapis.com *.googletagmanager.com *.google-analytics.com *.github.aaakk.us.kg *.bugsnag.com *.algolia.net *.algolianet.com 'unsafe-inline' 'unsafe-eval'; frame-src *; frame-ancestors 'self' *.preset.io *.google.com https://sidebar.bugherd.com https://unpkg.com; form-action 'self'; worker-src blob:; img-src 'self' blob: data: https:; font-src 'self' https://fonts.gstatic.com; object-src 'none'"
Header set Content-Security-Policy "default-src data: blob: 'self' *.apache.org *.bugherd.com *.scarf.sh *.googleapis.com *.github.com *.bugsnag.com *.algolia.net *.algolianet.com 'unsafe-inline' 'unsafe-eval'; frame-src *; frame-ancestors 'self' *.preset.io *.google.com https://sidebar.bugherd.com https://unpkg.com; form-action 'self'; worker-src blob:; img-src 'self' blob: data: https:; font-src 'self'; object-src 'none'"
6 changes: 3 additions & 3 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@
"@docusaurus/utils-validation" "2.4.3"
tslib "^2.4.0"

"@docusaurus/[email protected]", "@docusaurus/plugin-google-gtag@^2.4.1":
"@docusaurus/[email protected]":
version "2.4.3"
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-2.4.3.tgz#e1a80b0696771b488562e5b60eff21c9932d9e1c"
integrity sha512-5FMg0rT7sDy4i9AGsvJC71MQrqQZwgLNdDetLEGDHLfSHLvJhQbTCUGbGXknUgWXQJckcV/AILYeJy+HhxeIFA==
Expand Down Expand Up @@ -8933,7 +8933,7 @@ react-syntax-highlighter@^15.4.5:
"@babel/runtime" "^7.3.1"
highlight.js "^10.4.1"
lowlight "^1.17.0"
prismjs "^1.28.0"
prismjs "^1.25.0"
refractor "^3.2.0"

react-textarea-autosize@^8.3.2:
Expand Down Expand Up @@ -9020,7 +9020,7 @@ refractor@^3.2.0:
dependencies:
hastscript "^6.0.0"
parse-entities "^2.0.0"
prismjs "~1.28.0"
prismjs "~1.25.0"

regenerate-unicode-properties@^10.1.0:
version "10.1.0"
Expand Down

0 comments on commit 7ae7c14

Please sign in to comment.