Skip to content

Commit e9453b9

Browse files
committed
a try fix github page
1 parent 6480953 commit e9453b9

4 files changed

Lines changed: 4 additions & 51 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@ jobs:
2828
# path: . # The root location of your Astro project inside the repository. (optional)
2929
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
3030
package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
31-
- name: Setup and install pnpm
32-
uses: pnpm/action-setup@v4
33-
with:
34-
run_install: true
35-
# Astro needs sharp to process images. Sharp is not installed automatically in CI
36-
# @see https://github.com/withastro/astro/issues/9536#issuecomment-1880058215
37-
- name: Install sharp
38-
run: pnpm add sharp
3931

4032
deploy:
4133
needs: build

astro.config.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineConfig } from 'astro/config';
1+
import { defineConfig,passthroughImageService } from 'astro/config';
22
import starlight from '@astrojs/starlight';
33
import starlightImageZoom from 'starlight-image-zoom';
44
import remarkMath from "remark-math";
@@ -12,7 +12,9 @@ import tailwind from "@astrojs/tailwind";
1212
export default defineConfig({
1313
site: 'https://maindraster.netlify.app',
1414
base: "/",
15-
15+
image: {
16+
service: passthroughImageService()
17+
},
1618
integrations: [starlight({
1719
plugins: [
1820
starlightGiscus({
@@ -50,7 +52,6 @@ export default defineConfig({
5052
customCss: [
5153
'./src/tailwind2.css',
5254
// 你的自定义 CSS 文件的相对路径
53-
'./src/styles/giscus.css',
5455
'./src/styles/root.css',
5556
'./src/styles/search.css',
5657
'./src/styles/iconfont.css',

src/scripts/theme.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/styles/giscus.css

Whitespace-only changes.

0 commit comments

Comments
 (0)