Skip to content

Commit 3ee49a4

Browse files
committed
chore: github pages 구성
1 parent 1cd9361 commit 3ee49a4

File tree

10 files changed

+2648
-56
lines changed

10 files changed

+2648
-56
lines changed

.github/workflows/deploy.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Deploy site to Github Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
- name: Setup Node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: npm
31+
- name: Setup Pages
32+
uses: actions/configure-pages@v4
33+
- name: Install dependencies
34+
run: npm install
35+
- name: Build with VitePress
36+
run: npm run docs:build
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: docs/.vitepress/dist
41+
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
needs: build
47+
runs-on: ubuntu-latest
48+
name: Deploy
49+
steps:
50+
- name: Deploy to GitHub Pages
51+
id: deployment
52+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ yarn-error.log*
77
pnpm-debug.log*
88
lerna-debug.log*
99

10+
cache
1011
node_modules
1112
dist
1213
dist-ssr

docs/.vitepress/config.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { defineConfig } from "vitepress";
2+
3+
export default defineConfig({
4+
base: "/build-your-own-react-streaming-ssr/",
5+
title: "Build Your Own React Streaming SSR",
6+
description: "Build Your Own React Streaming SSR",
7+
head: [["link", { rel: "icon", href: "/build-your-own-react-streaming-ssr/favicon.svg" }]],
8+
locales: {
9+
root: { label: "한국어" }
10+
},
11+
themeConfig: {
12+
siteTitle: "Home",
13+
search: {
14+
provider: "local"
15+
},
16+
nav: [{ text: "학습하기", link: "/intro" }],
17+
sidebar: [
18+
{
19+
text: "가이드",
20+
items: [{ text: "소개", link: "/intro" }]
21+
}
22+
],
23+
socialLinks: [{ icon: "github", link: "https://github.com/mugglim/build-your-own-react-streaming-ssr" }]
24+
}
25+
});

docs/.vitepress/theme/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
:root {
2+
--vp-home-hero-name-color: transparent;
3+
--vp-home-hero-name-background: rgb(8 126 164);
4+
}

docs/.vitepress/theme/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import DefaultTheme from "vitepress/theme";
2+
import "./custom.css";
3+
4+
export default DefaultTheme;

docs/index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
layout: home
3+
4+
hero:
5+
name: "Build Your Own\nReact Streaming SSR"
6+
tagline: "밑바닥부터 구현해보기"
7+
actions:
8+
- theme: brand
9+
text: 학습하기
10+
link: /intro
11+
12+
features:
13+
- title: 직접 만들어보는 경험
14+
details: 밑바닥부터 구현해보면서 React Streaming SSR의 이해도를 높일 수 있습니다.
15+
- title: Node.js stream
16+
details: Node.js stream을 직접 사용해봅니다.
17+
- title: React Server API
18+
details: Node.js 환경에서 React Server API를 직접 사용해봅니다.
19+
---

docs/intro.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 소개
2+
3+
WIP.

docs/public/favicon.svg

Lines changed: 12 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)