Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 79cfda2

Browse filesBrowse files
committed
add github pages
1 parent 9816231 commit 79cfda2
Copy full SHA for 79cfda2

File tree

3 files changed

+64
-2
lines changed
Filter options

3 files changed

+64
-2
lines changed

‎.github/workflows/deploy.yml

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

‎docs/.vitepress/config.ts

Copy file name to clipboardExpand all lines: docs/.vitepress/config.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default defineConfig({
88
description: 'Unstyled UI components to build powerful code blocks in Vue3',
99
themeConfig: {
1010
// https://vitepress.dev/reference/default-theme-config
11-
logo: '/images/logo.svg',
11+
logo: 'vuejs-code-block/images/logo.svg',
1212
nav: [
1313
{
1414
text: 'Home',

‎docs/index.md

Copy file name to clipboardExpand all lines: docs/index.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ hero:
77
text: "Unstyled UI components to build powerful code blocks in Vue3"
88
tagline: Share it smoothly
99
image:
10-
src: /images/logo.png
10+
src: vuejs-code-block/images/logo.png
1111
alt: Vuejs Code Block Logo
1212
actions:
1313
- theme: brand

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.