Skip to content

Commit

Permalink
look at github action env
Browse files Browse the repository at this point in the history
  • Loading branch information
SOVLOOKUP committed Jul 19, 2024
1 parent 3ba4557 commit 79c95d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .vitepress/config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { defineConfig } from 'vitepress'

console.log(process.env)

// https://vitepress.dev/reference/site-config
export default defineConfig({
base: '/',
base: typeof process.env?.GITHUB_SERVER_URL === 'string' ? '/' : '/docs/',
title: "rubick 文档",
description: "rubick 官方文档",
head: [
Expand All @@ -13,7 +11,7 @@ export default defineConfig({
],
themeConfig: {
logo: { src: 'https://picx.zhimg.com/80/v2-96ec85fa4127686cffc525cf3d14d914_720w.png', width: 24, height: 24 },

// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: '官网', link: 'https://rubick.vip' },
Expand Down

0 comments on commit 79c95d9

Please sign in to comment.