Skip to content

Commit

Permalink
[시작하기] 클라이언트와 서버 문서 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls authored Jun 3, 2024
2 parents 3276c07 + b30e6ef commit c9a52b9
Show file tree
Hide file tree
Showing 8 changed files with 949 additions and 11 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,34 @@ jobs:
- name: Checkout your repository using git
uses: actions/checkout@v4

- name: Install, build, and upload your site
uses: withastro/action@v2
- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 'latest'

- name: Setup Node
uses: actions/setup-node@v4z
with:
path: .
node-version: 18
package-manager: pnpm@latest
cache: pnpm
cache-dependency-path: pnpm-lock.yaml

- name: Install
shell: bash
run: pnpm install

- name: Install playwright
shell: bash
run: npx playwright-core install --with-deps chromium

- name: Build
shell: bash
run: pnpm run build

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./dist/"

deploy:
needs: build
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
### 실행
```bash
pnpm install
npx playwright-core install --with-deps chromium
pnpm run dev
```
7 changes: 6 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import tailwind from '@astrojs/tailwind';
import rehypeMermaid from 'rehype-mermaid';
import { rehypeMermaidOptions } from './src/plugins/rehype-mermaid';

// https://astro.build/config
export default defineConfig({
base: process.env.BASE_URL || '/dsm-freshman-guide/',
markdown: {
rehypePlugins: [[rehypeMermaid, rehypeMermaidOptions]],
},
integrations: [
starlight({
title: 'DSM 신입생 가이드',
Expand Down Expand Up @@ -43,5 +48,5 @@ export default defineConfig({
customCss: ['./src/tailwind.css'],
}),
tailwind({ applyBaseStyles: true }),
],
]
});
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"@astrojs/starlight-tailwind": "^2.0.3",
"@astrojs/tailwind": "^5.1.0",
"astro": "^4.8.6",
"playwright": "^1.44.1",
"playwright-core": "^1.44.1",
"rehype-mermaid": "^2.1.0",
"sharp": "^0.32.5",
"tailwindcss": "^3.4.1"
}
Expand Down
Loading

0 comments on commit c9a52b9

Please sign in to comment.