Skip to content

Commit

Permalink
Merge pull request #53 from traP-jp/develop
Browse files Browse the repository at this point in the history
v0.0
  • Loading branch information
kenken714 authored Nov 21, 2024
2 parents 1cac629 + c4bac9d commit 01d6d95
Show file tree
Hide file tree
Showing 137 changed files with 4,560 additions and 3,332 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- develop

jobs:
textlint:
Expand All @@ -29,7 +30,7 @@ jobs:
cache: npm
- run: npm ci
- name: Build
run: npm run docs:build
run: npm run build
format:
runs-on: ubuntu-latest
permissions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
cache: npm
- run: npm ci
- name: Build
run: npm run docs:build
run: npm run build
- uses: actions/configure-pages@v2
- uses: actions/upload-pages-artifact@v1
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ dist-ssr
*.sw?

.textlintcache
/.vitepress/cache
9 changes: 4 additions & 5 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import { webBasicSidebarItems } from './sidebarConfigs/chapters/webBasic/webBasi

// https://vitepress.dev/reference/site-config
export default defineConfig({
base: '/naro-text/',
title: 'なろう講習会',
description: 'Webエンジニアになろう講習会のテキスト',
head: [['link', { rel: 'icon', href: '/naro-text/favicon.ico' }]],
title: 'なろう講習会 in Rust',
description: 'Webエンジニアになろう講習会のテキスト in Rust',
head: [['link', { rel: 'icon', href: '/naro-text-rs/favicon.ico' }]],
markdown: {
theme: {
light: 'github-dark',
Expand All @@ -26,7 +25,7 @@ export default defineConfig({
'/chapter2/': chapter2SidebarItems,
'/chapter4/': chapter4SidebarItems
},
socialLinks: [{ icon: 'github', link: 'https://github.com/traPtitech/naro-text' }],
socialLinks: [{ icon: 'github', link: 'https://github.com/traP-jp/naro-text-rs' }],
search: {
provider: 'local',
options: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { DefaultTheme } from 'vitepress'

export const cleanCodeSidebarItems: DefaultTheme.SidebarItem[] = [
{
text: 'きれいなコードを書くために',
text: 'きれいなコードを書くために*',
link: '/chapter1/dicts/clean-code/0_index'
}
]
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { DefaultTheme } from 'vitepress'

export const section1SidebarItems: DefaultTheme.SidebarItem[] = [
{ text: '環境構築 (windows)', link: '/chapter1/section1/0_setup-windows' },
{ text: '環境構築 (macOS)', link: '/chapter1/section1/1_setup-unix' },
{ text: '環境構築 (windows)*', link: '/chapter1/section1/0_setup-windows' },
{ text: '環境構築 (macOS)*', link: '/chapter1/section1/1_setup-unix' },
{
text: 'Go で Hello World',
text: 'Rust で Hello World*',
link: '/chapter1/section1/2_hello-world'
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ import type { DefaultTheme } from 'vitepress'

export const section3SidebarItems: DefaultTheme.SidebarItem[] = [
{
text: 'サーバーアプリケーションを作る',
text: 'サーバーアプリケーションを作る*',
link: '/chapter1/section3/0_hello-server'
},
{
text: 'JSONレスポンスを返す',
text: 'JSONレスポンスを返す*',
link: '/chapter1/section3/1_json-response'
},
{
text: 'ルーティング',
text: 'ルーティング*',
link: '/chapter1/section3/2_rooting'
},
{
text: 'サーバー演習問題',
text: 'サーバー演習問題*',
link: '/chapter1/section3/3_server-exercise'
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { DefaultTheme } from 'vitepress'

export const section4SidebarItems: DefaultTheme.SidebarItem[] = [
{
text: 'データベースを扱う準備',
text: 'データベースを扱う準備*',
link: '/chapter1/section4/0_prepare'
},
{
Expand All @@ -14,11 +14,11 @@ export const section4SidebarItems: DefaultTheme.SidebarItem[] = [
link: '/chapter1/section4/2_sql_exercise'
},
{
text: 'Goでデータベースを扱う',
link: '/chapter1/section4/3_go_and_db'
text: 'Rustでデータベースを扱う*',
link: '/chapter1/section4/3_rust_and_db'
},
{
text: 'サーバーからデータベースを扱う',
text: 'サーバーからデータベースを扱う*',
link: '/chapter1/section4/4_server_and_db'
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import type { DefaultTheme } from 'vitepress'
// ]

export const section1SidebarItems: DefaultTheme.SidebarItem[] = [
{ text: 'プロジェクトのセットアップ', link: '/chapter2/section1/0_setup' },
{ text: 'アカウント機能の実装', link: '/chapter2/section1/1_account' },
{ text: 'セッションの実装', link: '/chapter2/section1/2_session' },
{ text: '検証', link: '/chapter2/section1/3_verify' },
{ text: 'プロジェクトのセットアップ*', link: '/chapter2/section1/0_setup' },
{ text: 'アカウント機能の実装*', link: '/chapter2/section1/1_account' },
{ text: 'セッションの実装*', link: '/chapter2/section1/2_session' },
{ text: '検証*', link: '/chapter2/section1/3_verify' },
{ text: 'おまけ演習問題', link: '/chapter2/section1/4_extra' }
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import type { DefaultTheme } from 'vitepress'
export const section2SidebarItems: DefaultTheme.SidebarItem[] = [
{ text: 'vue-routerの設定', link: '/chapter2/section2/0_router-setup' },
{ text: 'プロキシの設定', link: '/chapter2/section2/1_proxy' },
{ text: 'サーバーとの通信', link: '/chapter2/section2/2_fetch' }
{ text: 'サーバーとの通信*', link: '/chapter2/section2/2_fetch' }
]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { DefaultTheme } from 'vitepress'

export const section3SidebarItems: DefaultTheme.SidebarItem[] = [
{ text: 'テストを書いてみよう', link: '/chapter2/section3/0_test' },
{ text: '自動でテストを実行してみよう', link: '/chapter2/section3/1_ci' }
{ text: 'テストを書いてみよう*', link: '/chapter2/section3/0_test' },
{ text: '自動でテストを実行してみよう*', link: '/chapter2/section3/1_ci' }
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const section4SidebarItems: DefaultTheme.SidebarItem[] = [
link: '/chapter2/section4/0_commands'
},
{
text: 'Dockerイメージを作る',
text: 'Dockerイメージを作る*',
link: '/chapter2/section4/1_image'
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const webBasicSidebarItems: DefaultTheme.SidebarItem[] = [
items: [
{ text: 'はじめに', link: '/web_basic/0_index' },
{ text: '第1回 | フロントエンド', link: '/web_basic/1_frontend' },
{ text: '第2回 | バックエンド', link: '/web_basic/2_backend' }
{ text: '第2回 | バックエンド*', link: '/web_basic/2_backend' }
]
}
]
Loading

0 comments on commit 01d6d95

Please sign in to comment.