Skip to content

Commit 0781294

Browse files
committed
[add] GitHub Pages デプロイ設定
1 parent 7fb1038 commit 0781294

5 files changed

Lines changed: 82 additions & 13 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Sample workflow for building and deploying a VitePress site to GitHub Pages
2+
#
3+
name: Deploy VitePress site to Pages
4+
5+
on:
6+
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
7+
# using the `master` branch as the default branch.
8+
push:
9+
branches: [main]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
21+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
22+
concurrency:
23+
group: pages
24+
cancel-in-progress: false
25+
26+
jobs:
27+
# Build job
28+
build:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
35+
# - uses: pnpm/action-setup@v3 # Uncomment this block if you're using pnpm
36+
# with:
37+
# version: 9 # Not needed if you've set "packageManager" in package.json
38+
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
39+
- name: Setup Node
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: 20
43+
cache: npm # or pnpm / yarn
44+
- name: Setup Pages
45+
uses: actions/configure-pages@v4
46+
- name: Install dependencies
47+
run: npm ci # or pnpm install / yarn install / bun install
48+
- name: Build with VitePress
49+
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
50+
- name: Upload artifact
51+
uses: actions/upload-pages-artifact@v3
52+
with:
53+
path: .vitepress/dist
54+
55+
# Deployment job
56+
deploy:
57+
environment:
58+
name: github-pages
59+
url: ${{ steps.deployment.outputs.page_url }}
60+
needs: build
61+
runs-on: ubuntu-latest
62+
name: Deploy
63+
steps:
64+
- name: Deploy to GitHub Pages
65+
id: deployment
66+
uses: actions/deploy-pages@v4

.vitepress/config.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { defineConfig } from 'vitepress'
44
export default defineConfig({
55
title: "TCU-DC PG Docs",
66
description: "東京都市大学デジタルコンテンツ研究会プログラミング班引き継ぎ資料",
7+
lang: 'ja-JP',
8+
head: [['link', { rel: 'icon', href: '/docs/favicon.ico' }]],
9+
base: '/docs/',
710
themeConfig: {
811
// https://vitepress.dev/reference/default-theme-config
912
nav: [

favicon.ico

121 KB
Binary file not shown.

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hero:
99
actions:
1010
- theme: brand
1111
text: このサイトについて
12-
link: /readme
12+
link: /readme.md
1313
- theme: alt
1414
text: 公式サイト更新マニュアル
1515
link: /website/readme.md

readme.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@
1010

1111
### 公式サイト更新マニュアル
1212

13-
- [公式サイトの更新方法](website/readme.md)
14-
- [プレビュー機能](website/preview.md)
15-
- [ログイン](website/login.md)
16-
- [トップページ設定・全体設定](website/config.md)
17-
- [固定ページ管理](website/pages.md)
18-
- [記事ページ管理](website/posts.md)
19-
- [作品紹介ページ管理](website/works.md)
20-
- [班管理](website/groups.md)
21-
- [メンバー管理](website/members.md)
22-
- [記事ページ用カテゴリ管理](website/post_categories.md)
13+
- [公式サイトの更新方法](/website/readme.md)
14+
- [プレビュー機能](/website/preview.md)
15+
- [ログイン](/website/login.md)
16+
- [トップページ設定・全体設定](/website/config.md)
17+
- [固定ページ管理](/website/pages.md)
18+
- [記事ページ管理](/website/posts.md)
19+
- [作品紹介ページ管理](/website/works.md)
20+
- [班管理](/website/groups.md)
21+
- [メンバー管理](/website/members.md)
22+
- [記事ページ用カテゴリ管理](/website/post_categories.md)
2323

2424
### 公式サイト技術マニュアル
2525

26-
- [公式サイトの技術](website_tech/readme.md)
26+
- [公式サイトの技術](/website_tech/readme.md)
2727

2828
### 入会システム技術マニュアル
2929

30-
- [入会システムの技術](join_tech/readme.md)
30+
- [入会システムの技術](/join_tech/readme.md)
3131

3232
## ドキュメントの技術情報
3333

0 commit comments

Comments
 (0)