Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
feat: add extra CSS for demo page layout and iframe styling
myhlolidca4b1e41f06
diff --git a/docs/en/demo/index.md b/docs/en/demo/index.mdindex 869eb17a..5b736153 100644--- a/docs/en/demo/index.md+++ b/docs/en/demo/index.md@@ -1 +1,8 @@-<iframe src="https://opendatalab-mineru.hf.space" style="min-height: calc(-40px + 100vh); width: 100%; flex-grow: 1; border: medium; overflow: auto; height: 1746px;"></iframe>\ No newline at end of file+---+hide:+ - toc+---++<div class="mineru-demo-page">+<iframe class="mineru-demo-iframe" src="https://opendatalab-mineru.ms.show" title="MinerU online demo"></iframe>+</div>diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.cssnew file mode 100644index 00000000..e71a3a91--- /dev/null+++ b/docs/stylesheets/extra.css@@ -0,0 +1,40 @@+/* demo 页面嵌入 Gradio,需要隐藏右侧目录列并释放主内容宽度。 */+.md-main__inner:has(.mineru-demo-page) {+ width: min(calc(100% - 3rem), 112rem);+ max-width: none;+ margin-inline: auto;+}++.md-main__inner:has(.mineru-demo-page) .md-sidebar--secondary {+ display: none;+}++.md-main__inner:has(.mineru-demo-page) .md-content {+ max-width: none;+}++.md-main__inner:has(.mineru-demo-page) .md-content__inner {+ margin-right: 0;+}++.mineru-demo-page {+ width: 100%;+}++.mineru-demo-iframe {+ display: block;+ width: 100%;+ height: clamp(1180px, calc(100vh + 16rem), 1360px);+ border: 0;+ overflow: auto;+}++@media screen and (max-width: 76.2344em) {+ .md-main__inner:has(.mineru-demo-page) {+ width: 100%;+ }++ .mineru-demo-iframe {+ height: clamp(640px, calc(100vh - 8rem), 960px);+ }+}diff --git a/docs/zh/demo/index.md b/docs/zh/demo/index.mdindex 103ffc5e..aed951c7 100644--- a/docs/zh/demo/index.md+++ b/docs/zh/demo/index.md@@ -1 +1,8 @@-<iframe src="https://opendatalab-mineru.ms.show" style="min-height: calc(-40px + 100vh); width: 100%; flex-grow: 1; border: medium; overflow: auto; height: 1746px;"></iframe>\ No newline at end of file+---+hide:+ - toc+---++<div class="mineru-demo-page">+<iframe class="mineru-demo-iframe" src="https://opendatalab-mineru.ms.show" title="MinerU 在线演示"></iframe>+</div>diff --git a/mkdocs.yml b/mkdocs.ymlindex b33f10bb..082e459a 100644--- a/mkdocs.yml+++ b/mkdocs.yml@@ -71,6 +71,9 @@ extra:copyright: © 2024 - 2025 MinerU. All Rights Reserved.+extra_css:+ - stylesheets/extra.css+nav:- Home:- "MinerU": index.md