Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[시작하기] 클라이언트와 서버 문서 추가 #2

Merged
merged 11 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading