Skip to content

Commit

Permalink
Fixes compile component example
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredge committed Jun 4, 2024
1 parent 1bc6166 commit 1c21749
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 591 deletions.
4 changes: 2 additions & 2 deletions docs/components/compile/compile.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ A simple function to compile a React component to an HTML string with the Onedoc
const html = await compile(<Component />);
```

<Frame background="subtle"><img src="../../images/previews/compile-56b466a8/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/compile-2e394416/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
```jsx
import { compile } from "@fileforge/react-print";

<Tailwind>
<div className="bg-red"></div>
<div className="bg-red-400">Hello World!</div>
</Tailwind>;

```
Expand Down
117 changes: 0 additions & 117 deletions docs/components/css.mdx

This file was deleted.

5 changes: 0 additions & 5 deletions docs/components/latex/latex.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,11 @@ body {

Write complex LaTeX formulas in your document.

<<<<<<< HEAD:docs/components/latex/latex.mdx
<Frame background="subtle"><img src="../../images/previews/latex-7a00ed36/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
```jsx
=======
<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeGroup>
```jsx template.tsx
>>>>>>> main:docs/components/latex.mdx
import { Latex } from "@fileforge/react-print";

<Latex>{String.raw`% \f is defined as #1f(#2) using the macro
Expand Down
5 changes: 0 additions & 5 deletions docs/components/markdown/markdown.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,9 @@ You can leverage the `overrides` prop to replace Markdown components with your o

<Frame background="subtle"><img src="../../images/previews/markdown-882cc486/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<<<<<<< HEAD:docs/components/markdown/markdown.mdx
<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
```jsx
=======
<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeGroup>
```jsx template.tsx
>>>>>>> main:docs/components/markdown.mdx
import { Markdown } from "@fileforge/react-print";

<Markdown
Expand Down
181 changes: 0 additions & 181 deletions docs/components/shell.mdx

This file was deleted.

5 changes: 0 additions & 5 deletions docs/components/tailwind/tailwind.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,9 @@ You can also pass a custom Tailwind config to the Tailwind component.

<Frame background="subtle"><img src="../../images/previews/tailwind-841def4d/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<<<<<<< HEAD:docs/components/tailwind/tailwind.mdx
<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
```jsx
=======
<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeGroup>
```jsx template.tsx
>>>>>>> main:docs/components/tailwind.mdx
import { Tailwind } from "@fileforge/react-print";

<Tailwind
Expand Down
Loading

0 comments on commit 1c21749

Please sign in to comment.