Skip to content

Commit

Permalink
wip: deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
apathiaX committed Oct 8, 2024
1 parent 1ee48c2 commit 1b9a3c4
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: release
name: Deploy Documents

on:
push:
branches:
- main
- feat/init

jobs:
deploy:
Expand All @@ -24,6 +25,9 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Build Docs
run: pnpm build:docs

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
12 changes: 6 additions & 6 deletions docs/.vitepress/config/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ export const en = defineConfig({
nav: [
{
text: 'Guide',
link: '/en/guide/feature',
activeMatch: '/en/guide/',
link: '/guide/feature',
activeMatch: '/guide/',
},
{ text: 'Vue', link: '/en/vue' },
{ text: 'Vue2', link: '/en/vue2' },
{ text: 'React', link: '/en/react' },
{ text: 'Vue', link: '/vue' },
{ text: 'Vue2', link: '/vue2' },
{ text: 'React', link: '/react' },
],

sidebar: {
'/guide/': { base: '/en/guide/', items: sidebarGuide() },
'/guide/': { base: '/guide/', items: sidebarGuide() },
},
footer: {
message: 'Released under the MIT License.',
Expand Down
2 changes: 2 additions & 0 deletions docs/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { defineConfig } from 'vitepress';
export const shared = defineConfig({
title: 'virtual-list-core',
lastUpdated: true,
cleanUrls: true,
metaChunk: true,

rewrites: {
'en/:rest*': ':rest*',
Expand Down
6 changes: 3 additions & 3 deletions docs/.vitepress/config/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export const zh = defineConfig({
link: '/zh/guide/feature',
activeMatch: '/zh/guide/',
},
{ text: 'Vue', link: '/en/vue' },
{ text: 'Vue2', link: '/en/vue2' },
{ text: 'React', link: '/en/react' },
{ text: 'Vue', link: '/zh/vue' },
{ text: 'Vue2', link: '/zh/vue2' },
{ text: 'React', link: '/zh/react' },
],

sidebar: {
Expand Down
4 changes: 2 additions & 2 deletions docs/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ hero:
actions:
- theme: brand
text: Guide
link: /guide/markdown-examples
link: /guide/feature
- theme: alt
text: Quick Start
link: /guide/api-examples
link: /guide/getting-started
- theme: alt
text: Github
link: https://github.com/apathiaX/virtual-list
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ hero:
actions:
- theme: brand
text: 指南
link: /guide/markdown-examples
link: /zh/guide/feature
- theme: alt
text: 快速开始
link: /guide/api-examples
link: /zh/guide/getting-started
- theme: alt
text: Github
link: https://github.com/apathiaX/virtual-list
Expand Down

0 comments on commit 1b9a3c4

Please sign in to comment.