Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

feat: add custom CSS for MinerU demo page layout and iframe styling

myhloli02203f6fab22
diff --git a/docs/en/demo/index.md b/docs/en/demo/index.md
index 27274e71..5b736153 100644
--- a/docs/en/demo/index.md
+++ b/docs/en/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>
+---
+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.css
new file mode 100644
index 00000000..0212316d
--- /dev/null
+++ b/docs/stylesheets/extra.css
@@ -0,0 +1,29 @@
+/* demo 页面嵌入 Gradio,需要隐藏右侧目录列并释放主内容宽度。 */
+.md-main__inner:has(.mineru-demo-page) {
+ max-width: 100%;
+}
+
+.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%;
+ min-height: calc(-40px + 100vh);
+ height: 1746px;
+ border: 0;
+ overflow: auto;
+}
diff --git a/docs/zh/demo/index.md b/docs/zh/demo/index.md
index 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.yml
index 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