Skip to content

Commit

Permalink
feat: change font for thai
Browse files Browse the repository at this point in the history
  • Loading branch information
mildronize committed May 18, 2024
1 parent aa564ab commit fffd9ce
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/.vitepress/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ export const shared = defineConfig({
provider: "local",
},
},

head: [
["link", { rel: "preconnect", href: "https://fonts.googleapis.com" }],
["link", { rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "" }],
[
"link",
{ href: "https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:[email protected]&display=swap", rel: "stylesheet" },
],
],
});

interface SidebarOptions {
Expand Down
9 changes: 9 additions & 0 deletions docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,12 @@
.DocSearch {
--docsearch-primary-color: var(--vp-c-brand-1) !important;
}


/**
* Custom CSS
* -------------------------------------------------------------------------- */

:root {
--vp-font-family-base: "Noto Sans Thai", sans-serif;
}
2 changes: 1 addition & 1 deletion docs/th/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ hero:
actions:
- theme: brand
text: เริ่มอ่าน
link: /intro
link: /th/intro
- theme: alt
text: อะไรคือ Type-safe?
link: /type-safe
Expand Down

0 comments on commit fffd9ce

Please sign in to comment.