Skip to content

Commit

Permalink
Merge pull request #47 from traPtitech/format/prettier_single_quote
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 authored Jun 7, 2023
2 parents 9a53cdb + 822cb6b commit d5232c2
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 43 deletions.
5 changes: 3 additions & 2 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"semi": false,
"tabWidth": 2,
"printWidth": 100,
"trailingComma": "none"
}
"trailingComma": "none",
"singleQuote": true
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ https://vitepress.dev/guide/markdown
- 節タイトルは内容を簡潔に表したものにしてください
- その1,その2みたいなのは出来るだけ避ける
- container(`:::info` など)は以下の方針を目安に利用してください
- tips: 注釈(git/cliの操作法など)
- tip: 注釈(git/cliの操作法など)
- info: 発展的な内容、コラム
- warning: 注意事項(気をつけないと正常に実行できないことがあるもの)
- danger: 破壊的な事象(サーバーに負荷を与える操作など)
Expand Down
44 changes: 22 additions & 22 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
import { defineConfig } from "vitepress"
import { chapter1SidebarItems } from "./sidebarConfigs/chapters/chapter1/chapter1"
import { defineConfig } from 'vitepress'
import { chapter1SidebarItems } from './sidebarConfigs/chapters/chapter1/chapter1'

// https://vitepress.dev/reference/site-config
export default defineConfig({
base: "/naro-text/",
title: "なろう講習会",
description: "Webエンジニアになろう講習会のテキスト",
head: [["link", { rel: "icon", href: "/naro-text/favicon.ico" }]],
base: '/naro-text/',
title: 'なろう講習会',
description: 'Webエンジニアになろう講習会のテキスト',
head: [['link', { rel: 'icon', href: '/naro-text/favicon.ico' }]],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [{ text: "Home", link: "/" }],
nav: [{ text: 'Home', link: '/' }],

sidebar: {
"/chapter1/": chapter1SidebarItems
'/chapter1/': chapter1SidebarItems
},
socialLinks: [{ icon: "github", link: "https://github.com/traPtitech/naro-text" }],
socialLinks: [{ icon: 'github', link: 'https://github.com/traPtitech/naro-text' }],
search: {
provider: "local",
provider: 'local',
options: {
translations: {
button: {
buttonText: "検索",
buttonAriaLabel: "検索ボックスを開く"
buttonText: '検索',
buttonAriaLabel: '検索ボックスを開く'
},
modal: {
displayDetails: "詳細を表示",
resetButtonTitle: "リセット",
backButtonTitle: "戻る",
noResultsText: "見つかりませんでした",
displayDetails: '詳細を表示',
resetButtonTitle: 'リセット',
backButtonTitle: '戻る',
noResultsText: '見つかりませんでした',
footer: {
selectText: "選択",
selectKeyAriaLabel: "結果を選択するには、上下キーを使用します",
navigateText: "移動",
navigateUpKeyAriaLabel: "前の結果に移動するには、上キーを使用します",
navigateDownKeyAriaLabel: "次の結果に移動するには、下キーを使用します",
closeText: "閉じる"
selectText: '選択',
selectKeyAriaLabel: '結果を選択するには、上下キーを使用します',
navigateText: '移動',
navigateUpKeyAriaLabel: '前の結果に移動するには、上キーを使用します',
navigateDownKeyAriaLabel: '次の結果に移動するには、下キーを使用します',
closeText: '閉じる'
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions docs/.vitepress/sidebarConfigs/chapters/chapter1/chapter1.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { DefaultTheme } from "vitepress"
import { section1SidebarItems } from "./sections/section1"
import type { DefaultTheme } from 'vitepress'
import { section1SidebarItems } from './sections/section1'

export const chapter1SidebarItems: DefaultTheme.SidebarItem[] = [
{
text: "第一部",
text: '第一部',
items: [
{ text: "はじめに", link: "/chapter1/index" },
{ text: 'はじめに', link: '/chapter1/index' },
{
text: "実習編",
text: '実習編',
collapsed: true,
items: [...section1SidebarItems]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { DefaultTheme } from "vitepress"
import type { DefaultTheme } from 'vitepress'

export const section1SidebarItems: DefaultTheme.SidebarItem[] = [
{ text: "環境構築", link: "/chapter1/section1/setup" },
{ text: '環境構築', link: '/chapter1/section1/setup' },
{
text: "Go で Hello World",
link: "/chapter1/section1/hello-world"
text: 'Go で Hello World',
link: '/chapter1/section1/hello-world'
}
]
4 changes: 2 additions & 2 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import DefaultTheme from "vitepress/theme"
import "./trap.css"
import DefaultTheme from 'vitepress/theme'
import './trap.css'

export default DefaultTheme
14 changes: 7 additions & 7 deletions docs/.vitepress/theme/trap.css
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@
* -------------------------------------------------------------------------- */

:root {
--vp-font-family-base: "Chinese Quotes", "Inter var", "Inter", ui-sans-serif, system-ui,
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial,
"Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
"Noto Color Emoji";
--vp-font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas,
"Liberation Mono", "Courier New", monospace;
--vp-font-family-base: 'Chinese Quotes', 'Inter var', 'Inter', ui-sans-serif, system-ui,
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
--vp-font-family-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas,
'Liberation Mono', 'Courier New', monospace;
}

/**
Expand Down Expand Up @@ -231,7 +231,7 @@
* -------------------------------------------------------------------------- */

:root {
--vp-header-anchor-symbol: "#";
--vp-header-anchor-symbol: '#';
}

/**
Expand Down

0 comments on commit d5232c2

Please sign in to comment.