Skip to content

Commit 6797c33

Browse files
authored
フォントとスタイルの設定を追加し, kiso.css を依存関係に追加 (#54)
1 parent 4a88b77 commit 6797c33

4 files changed

Lines changed: 23 additions & 1 deletion

File tree

docs/.vitepress/config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { head } from './ga-plugin';
1313
export default withMermaid({
1414
title: "pg-basic text",
1515
description: "プログラミング基礎講習会テキスト",
16-
cleanUrls: false,
16+
cleanUrls: true,
1717
markdown: {
1818

1919
// lineNumbers: true,
@@ -238,6 +238,9 @@ export default withMermaid({
238238
]
239239
},
240240
head: [
241+
['link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }],
242+
['link', { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }],
243+
['link', { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap' }],
241244
[
242245
'script',
243246
{

docs/.vitepress/theme/custom.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
@import "kiso.css";
2+
3+
:root {
4+
--vp-font-family-base: 'Noto Sans JP', 'Inter', ui-sans-serif, system-ui, sans-serif;
5+
}
6+
17
mjx-container.MathJax svg {
28
display: inline;
39
}

package-lock.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"vitepress-plugin-mermaid": "^2.0.10"
2727
},
2828
"dependencies": {
29+
"kiso.css": "^1.2.4",
2930
"markdown-it": "^14.1.0",
3031
"markdown-it-mathjax3": "^4.3.2"
3132
},

0 commit comments

Comments
 (0)