From 6fc32f87b0b9036dfbc87f60f9eb068b85a2b512 Mon Sep 17 00:00:00 2001 From: SoonIter Date: Thu, 8 May 2025 12:17:28 +0800 Subject: [PATCH] chore: update --- .../doc/component.jsx | 3 + .../plugin-preview-custom-entry/doc/index.mdx | 2 + e2e/fixtures/plugin-preview/doc/index.mdx | 2 +- e2e/fixtures/plugin-shiki/rspress.config.ts | 11 ++- .../prism-syntax-highlighter/doc/index.md | 31 -------- .../prism-syntax-highlighter/package.json | 16 ---- .../rspress.config.ts | 14 ---- .../prism-syntax-highlighter/tsconfig.json | 6 -- e2e/tests/custom-icon.test.ts | 13 ++-- e2e/tests/package-manager-tabs.test.ts | 19 +---- e2e/tests/plugin-preview-custom-entry.test.ts | 8 +- e2e/tests/plugin-preview.test.ts | 14 ++-- e2e/tests/prism-sytax-highlighter.test.ts | 44 ----------- packages/core/package.json | 1 + packages/core/src/node/PluginDriver.ts | 4 + packages/core/src/node/runtimeModule/index.ts | 1 - .../siteData/highlightLanguages.ts | 60 --------------- .../src/node/runtimeModule/siteData/index.ts | 24 +----- packages/core/src/node/runtimeModule/types.ts | 1 - .../__snapshots__/prismLanguages.test.ts.snap | 33 --------- packages/core/tests/prismLanguages.test.ts | 49 ------------ packages/core/tests/prismLanguages/extend.mdx | 5 -- packages/core/tests/prismLanguages/index.mdx | 40 ---------- packages/core/tests/prismLanguages/other.mdx | 9 --- packages/document/rspress.config.ts | 19 ++--- packages/plugin-preview/src/remarkPlugin.ts | 66 ++++++++--------- .../plugin-shiki/src/shiki/pluginShiki.ts | 2 +- packages/runtime/rslib.config.ts | 1 - packages/shared/package.json | 1 + packages/shared/src/types/index.ts | 13 ++-- packages/theme-default/rslib.config.ts | 1 - .../components/PackageManagerTabs/index.tsx | 11 +-- packages/theme-default/src/env.d.ts | 5 -- .../code/PrismSyntaxHighlighter.tsx | 74 ------------------- .../DocLayout/docComponents/code/index.tsx | 70 +----------------- .../layout/DocLayout/docComponents/pre.tsx | 37 +++------- packages/theme-default/src/styles/code.css | 2 +- pnpm-lock.yaml | 16 ++-- 38 files changed, 115 insertions(+), 613 deletions(-) create mode 100644 e2e/fixtures/plugin-preview-custom-entry/doc/component.jsx delete mode 100644 e2e/fixtures/prism-syntax-highlighter/doc/index.md delete mode 100644 e2e/fixtures/prism-syntax-highlighter/package.json delete mode 100644 e2e/fixtures/prism-syntax-highlighter/rspress.config.ts delete mode 100644 e2e/fixtures/prism-syntax-highlighter/tsconfig.json delete mode 100644 e2e/tests/prism-sytax-highlighter.test.ts delete mode 100644 packages/core/src/node/runtimeModule/siteData/highlightLanguages.ts delete mode 100644 packages/core/tests/__snapshots__/prismLanguages.test.ts.snap delete mode 100644 packages/core/tests/prismLanguages.test.ts delete mode 100644 packages/core/tests/prismLanguages/extend.mdx delete mode 100644 packages/core/tests/prismLanguages/index.mdx delete mode 100644 packages/core/tests/prismLanguages/other.mdx delete mode 100644 packages/theme-default/src/layout/DocLayout/docComponents/code/PrismSyntaxHighlighter.tsx diff --git a/e2e/fixtures/plugin-preview-custom-entry/doc/component.jsx b/e2e/fixtures/plugin-preview-custom-entry/doc/component.jsx new file mode 100644 index 000000000..1951dd2a1 --- /dev/null +++ b/e2e/fixtures/plugin-preview-custom-entry/doc/component.jsx @@ -0,0 +1,3 @@ +export default function HelloWorld() { + return
Hello World External
; +} diff --git a/e2e/fixtures/plugin-preview-custom-entry/doc/index.mdx b/e2e/fixtures/plugin-preview-custom-entry/doc/index.mdx index b963f139c..3c1d2806f 100644 --- a/e2e/fixtures/plugin-preview-custom-entry/doc/index.mdx +++ b/e2e/fixtures/plugin-preview-custom-entry/doc/index.mdx @@ -12,6 +12,8 @@ export default function HelloWorld() { } ``` +{/* */} + ```vue iframe