Skip to content

Commit

Permalink
fix base url for github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Kozmosa committed Mar 8, 2025
1 parent 4caec92 commit 4259be0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

name: 部署文档
name: 部署网站

on:
push:
Expand Down Expand Up @@ -32,14 +32,14 @@ jobs:
- name: 安装依赖
run: npm ci

- name: 构建文档
- name: 构建网站
env:
NODE_OPTIONS: --max_old_space_size=8192
run: |-
npm run docs:build
> docs/.vuepress/dist/.nojekyll
- name: 部署文档
- name: 部署网站
uses: JamesIves/github-pages-deploy-action@v4
with:
# 这是文档部署到的分支名称
Expand Down
2 changes: 2 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export default defineUserConfig({
title: '华工生存手册',
description: '你不为我而来,但我为你而写',

base: '/survive-in-scut/',

theme: defaultTheme({
logo: '/root-assets/scut-logo.png',

Expand Down

0 comments on commit 4259be0

Please sign in to comment.