diff --git a/.vuepress/config.js b/.vuepress/config.js index 55fa437..d0cee12 100644 --- a/.vuepress/config.js +++ b/.vuepress/config.js @@ -6,6 +6,11 @@ // It is not compatible with vuepress 1++ // +import path from "node:path"; + +import { viteBundler } from '@vuepress/bundler-vite' +import { defineUserConfig } from '@vuepress/cli' + import { defaultTheme } from "@vuepress/theme-default"; import { docsearchPlugin } from "@vuepress/plugin-docsearch"; import { tocPlugin } from '@vuepress/plugin-toc' @@ -19,7 +24,21 @@ import summaryToSidebar from "./summary-to-sidebar"; // Lets tweak base path to /v3/ let basePath = "/v3/" -export default { +export default defineUserConfig({ + + // vite config + bundler: viteBundler({ + viteOptions: { + resolve: { + alias: { + // this allows us to properly import local font fonts using relative file path + '@styles': path.resolve(__dirname, 'styles') + } + } + }, + vuePluginOptions: {}, + }), + // Lets tweak base path to /v3/ base: basePath, @@ -97,7 +116,7 @@ export default { lazyLoading: true }) } -}; +}); function googleTagManager(container_id){ return ["script", {}, ` diff --git a/.vuepress/styles/_typography.scss b/.vuepress/styles/_typography.scss index c05c828..69a7481 100644 --- a/.vuepress/styles/_typography.scss +++ b/.vuepress/styles/_typography.scss @@ -1,4 +1,36 @@ -@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&family=Noto+Sans:ital,wght@0,400;0,700;1,400&family=Readex+Pro:wght@200;600&display=swap'); +// As fonts.googleapis.com can be very slow!!! We'll host the font files instead. +//@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&family=Noto+Sans:ital,wght@0,400;0,700;1,400&family=Readex+Pro:wght@200;600&display=swap'); + +// header +@font-face { + font-family: 'Readex Pro'; + //src: url("/v3/static/fonts/ReadexPro-VariableFont_HEXP,wght.ttf"); + src: url(@styles/fonts/ReadexPro-VariableFont_HEXP\,wght.ttf); +} + +// normal text +@font-face { + font-family: 'Noto Sans'; + src: url(@styles/fonts/NotoSans-Regular.ttf); +} + +@font-face { + font-family: 'Noto Sans'; + src: url(@styles/fonts/NotoSans-Bold.ttf); + font-weight: bold; +} + +@font-face { + font-family: 'Noto Sans'; + src: url(@styles/fonts/NotoSans-Italic.ttf); + font-style: italic; +} + +// code font face +@font-face { + font-family: 'Fira Code'; + src: url(@styles/fonts/FiraCode-VariableFont_wght.ttf); +} :root { diff --git a/.vuepress/styles/fonts/FiraCode-VariableFont_wght.ttf b/.vuepress/styles/fonts/FiraCode-VariableFont_wght.ttf new file mode 100644 index 0000000..5655ed5 Binary files /dev/null and b/.vuepress/styles/fonts/FiraCode-VariableFont_wght.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-Black.ttf b/.vuepress/styles/fonts/NotoSans-Black.ttf new file mode 100644 index 0000000..05771e5 Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-Black.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-BlackItalic.ttf b/.vuepress/styles/fonts/NotoSans-BlackItalic.ttf new file mode 100644 index 0000000..06bb3d6 Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-BlackItalic.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-Bold.ttf b/.vuepress/styles/fonts/NotoSans-Bold.ttf new file mode 100644 index 0000000..0d19068 Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-Bold.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-BoldItalic.ttf b/.vuepress/styles/fonts/NotoSans-BoldItalic.ttf new file mode 100644 index 0000000..e17b779 Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-BoldItalic.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-ExtraBold.ttf b/.vuepress/styles/fonts/NotoSans-ExtraBold.ttf new file mode 100644 index 0000000..a74c69a Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-ExtraBold.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-ExtraBoldItalic.ttf b/.vuepress/styles/fonts/NotoSans-ExtraBoldItalic.ttf new file mode 100644 index 0000000..c12173d Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-ExtraBoldItalic.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-ExtraLight.ttf b/.vuepress/styles/fonts/NotoSans-ExtraLight.ttf new file mode 100644 index 0000000..13c4bbc Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-ExtraLight.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-ExtraLightItalic.ttf b/.vuepress/styles/fonts/NotoSans-ExtraLightItalic.ttf new file mode 100644 index 0000000..b3f05fe Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-ExtraLightItalic.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-Italic.ttf b/.vuepress/styles/fonts/NotoSans-Italic.ttf new file mode 100644 index 0000000..195582a Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-Italic.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-Light.ttf b/.vuepress/styles/fonts/NotoSans-Light.ttf new file mode 100644 index 0000000..8fde662 Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-Light.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-LightItalic.ttf b/.vuepress/styles/fonts/NotoSans-LightItalic.ttf new file mode 100644 index 0000000..87e97be Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-LightItalic.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-Medium.ttf b/.vuepress/styles/fonts/NotoSans-Medium.ttf new file mode 100644 index 0000000..faf167c Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-Medium.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-MediumItalic.ttf b/.vuepress/styles/fonts/NotoSans-MediumItalic.ttf new file mode 100644 index 0000000..05a617e Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-MediumItalic.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-Regular.ttf b/.vuepress/styles/fonts/NotoSans-Regular.ttf new file mode 100644 index 0000000..7552fbe Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-Regular.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-SemiBold.ttf b/.vuepress/styles/fonts/NotoSans-SemiBold.ttf new file mode 100644 index 0000000..b460754 Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-SemiBold.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-SemiBoldItalic.ttf b/.vuepress/styles/fonts/NotoSans-SemiBoldItalic.ttf new file mode 100644 index 0000000..aa58fcb Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-SemiBoldItalic.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-Thin.ttf b/.vuepress/styles/fonts/NotoSans-Thin.ttf new file mode 100644 index 0000000..b5af044 Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-Thin.ttf differ diff --git a/.vuepress/styles/fonts/NotoSans-ThinItalic.ttf b/.vuepress/styles/fonts/NotoSans-ThinItalic.ttf new file mode 100644 index 0000000..000bcb6 Binary files /dev/null and b/.vuepress/styles/fonts/NotoSans-ThinItalic.ttf differ diff --git a/.vuepress/styles/fonts/ReadexPro-Bold.ttf b/.vuepress/styles/fonts/ReadexPro-Bold.ttf new file mode 100644 index 0000000..7f56cba Binary files /dev/null and b/.vuepress/styles/fonts/ReadexPro-Bold.ttf differ diff --git a/.vuepress/styles/fonts/ReadexPro-ExtraLight.ttf b/.vuepress/styles/fonts/ReadexPro-ExtraLight.ttf new file mode 100644 index 0000000..f008ca6 Binary files /dev/null and b/.vuepress/styles/fonts/ReadexPro-ExtraLight.ttf differ diff --git a/.vuepress/styles/fonts/ReadexPro-Light.ttf b/.vuepress/styles/fonts/ReadexPro-Light.ttf new file mode 100644 index 0000000..bfbe921 Binary files /dev/null and b/.vuepress/styles/fonts/ReadexPro-Light.ttf differ diff --git a/.vuepress/styles/fonts/ReadexPro-Medium.ttf b/.vuepress/styles/fonts/ReadexPro-Medium.ttf new file mode 100644 index 0000000..abd3cf9 Binary files /dev/null and b/.vuepress/styles/fonts/ReadexPro-Medium.ttf differ diff --git a/.vuepress/styles/fonts/ReadexPro-Regular.ttf b/.vuepress/styles/fonts/ReadexPro-Regular.ttf new file mode 100644 index 0000000..93fc892 Binary files /dev/null and b/.vuepress/styles/fonts/ReadexPro-Regular.ttf differ diff --git a/.vuepress/styles/fonts/ReadexPro-SemiBold.ttf b/.vuepress/styles/fonts/ReadexPro-SemiBold.ttf new file mode 100644 index 0000000..5ca7312 Binary files /dev/null and b/.vuepress/styles/fonts/ReadexPro-SemiBold.ttf differ diff --git a/.vuepress/styles/fonts/ReadexPro-VariableFont_HEXP,wght.ttf b/.vuepress/styles/fonts/ReadexPro-VariableFont_HEXP,wght.ttf new file mode 100644 index 0000000..fea9291 Binary files /dev/null and b/.vuepress/styles/fonts/ReadexPro-VariableFont_HEXP,wght.ttf differ diff --git a/core-concepts/geolocation-testing.md b/core-concepts/geolocation-testing.md new file mode 100644 index 0000000..e69de29