Skip to content

Commit

Permalink
feat: 添加图片放大查看
Browse files Browse the repository at this point in the history
fix: 修复图片路径错误
  • Loading branch information
liuhuapiaoyuan committed Oct 11, 2024
1 parent e0cbf81 commit fe18539
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
13 changes: 11 additions & 2 deletions doc/website/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
import { defineConfigWithTheme } from 'vitepress'
import type { ThemeConfig } from 'vitepress-carbon'
import baseConfig from 'vitepress-carbon/config'
import mdItCustomAttrs from 'markdown-it-custom-attrs'

// https://vitepress.dev/reference/site-config
export default defineConfigWithTheme<ThemeConfig>({
markdown: {
config: (md) => {
// use more markdown-it plugins!
md.use(mdItCustomAttrs, 'image', {
'data-fancybox': "gallery"
})
}
},
extends: baseConfig,
title: "MinerU-PDFScanner",
description: "高效 PDF 文档扫描和提取工具",
srcDir: 'src',
base:"/MinerU-PDFScanner/" ,
base: "/MinerU-PDFScanner/",
//base: '/vitepress-carbon-template/', if running on github-pages, set repository name here
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
Expand All @@ -18,7 +27,7 @@ export default defineConfigWithTheme<ThemeConfig>({
search: {
provider: 'local'
},

sidebar: [
{
text: 'Examples',
Expand Down
Binary file modified doc/website/bun.lockb
Binary file not shown.
5 changes: 3 additions & 2 deletions doc/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"docs:preview": "vitepress preview"
},
"dependencies": {
"vitepress-carbon": "^1.4.3",
"vitepress": "^1.4.0"
"markdown-it-custom-attrs": "^1.0.2",
"vitepress": "^1.4.0",
"vitepress-carbon": "^1.4.3"
}
}
14 changes: 5 additions & 9 deletions doc/website/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,8 @@ features:
---


<div align="center" style="margin-top:20px">
<img src="./preview.png" alt="描述文字" />
</div>
<div align="center" style="margin-top:20px">
<img src="./quick.png" alt="描述文字" />
</div>
<div align="center" style="margin-top:20px">
<img src="./task.png" alt="描述文字" />
</div>
![描述文字](./public/preview.png)

![描述文字](./public/quick.png)

![描述文字](./public/task.png)

0 comments on commit fe18539

Please sign in to comment.