From 1c21749441de0ea08b8f81140cc6039c00ed4736 Mon Sep 17 00:00:00 2001 From: Pierre Dorge Date: Tue, 4 Jun 2024 10:26:57 +0200 Subject: [PATCH] Fixes compile component example --- docs/components/compile/compile.mdx | 4 +- docs/components/css.mdx | 117 -------- docs/components/latex/latex.mdx | 5 - docs/components/markdown/markdown.mdx | 5 - docs/components/shell.mdx | 181 ------------ docs/components/tailwind/tailwind.mdx | 5 - docs/components/variables.mdx | 273 ------------------ .../previews/compile-2e394416/document.1.jpg | Bin 0 -> 42035 bytes .../previews/compile-2e394416/document.pdf | Bin 0 -> 7208 bytes docs/ui/templates/nda-markdown.mdx | 2 +- docs/ui/templates/scientific-report.mdx | 2 +- src/compile/compile.tsx | 2 +- 12 files changed, 5 insertions(+), 591 deletions(-) delete mode 100644 docs/components/css.mdx delete mode 100644 docs/components/shell.mdx delete mode 100644 docs/components/variables.mdx create mode 100644 docs/images/previews/compile-2e394416/document.1.jpg create mode 100644 docs/images/previews/compile-2e394416/document.pdf diff --git a/docs/components/compile/compile.mdx b/docs/components/compile/compile.mdx index b38a231..6414cb2 100644 --- a/docs/components/compile/compile.mdx +++ b/docs/components/compile/compile.mdx @@ -19,7 +19,7 @@ A simple function to compile a React component to an HTML string with the Onedoc const html = await compile(); ``` - +
@@ -27,7 +27,7 @@ A simple function to compile a React component to an HTML string with the Onedoc import { compile } from "@fileforge/react-print"; -
+
Hello World!
; ``` diff --git a/docs/components/css.mdx b/docs/components/css.mdx deleted file mode 100644 index 130cab9..0000000 --- a/docs/components/css.mdx +++ /dev/null @@ -1,117 +0,0 @@ ---- -title: CSS -icon: css3-alt -description: "Allows adding CSS to the document while securely parsing and escaping it. - -NB: While you can add regular CSS with the `