Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
BayBreezy committed Dec 30, 2023
1 parent 1dfa40c commit 9c66858
Show file tree
Hide file tree
Showing 13 changed files with 17,823 additions and 10,793 deletions.
4 changes: 3 additions & 1 deletion docs/components/content/StyleOneExample.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<main class="w-full h-[700px]">
<iframe :src="pdfLink" class="w-full h-full" />
<ClientOnly>
<iframe :src="pdfLink" class="w-full h-full" />
</ClientOnly>
</main>
</template>

Expand Down
3 changes: 2 additions & 1 deletion docs/content/1.introduction/3.options.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ Currently, I only need these 4 fonts lol. Feel free to add your own fonts by fol
- Roboto
- Poppins
- Lora
::

::

This is what the full signature of createPdf looks like:

Expand Down
15 changes: 9 additions & 6 deletions docs/content/2.examples/1.basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
fluid: true
toc: false
---

# Basic Table

::code-group

::code-block{label="Preview" preview .h-screen}
::BasicExample
::
::code-block{label="Preview" preview .h-screen}
::Basic-Example
::

::code-block{label="Code" code}

::code-block{label="Code" code}
```ts
<script setup lang="ts">
import { _colors } from "#tailwind-config/theme";
Expand Down Expand Up @@ -81,5 +83,6 @@ onMounted(() => {
});
</script>
```
::
::

::
::
15 changes: 9 additions & 6 deletions docs/content/2.examples/2.style-one.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
fluid: true
toc: false
---

# Style One

::alert
Expand All @@ -10,11 +11,12 @@ Check the <a target="_blank" href="https://pdfmake.github.io/docs/0.1/document-d

::code-group

::code-block{label="Preview" preview .h-screen}
::StyleOneExample
::
::code-block{label="Preview" preview .h-screen}

:Style-One-Example

::code-block{label="Code" code}

::code-block{label="Code" code}
```ts
<script setup lang="ts">
import { _colors } from "#tailwind-config/theme";
Expand Down Expand Up @@ -78,5 +80,6 @@ onMounted(() => {
});
</script>
```
::
::

::
::
15 changes: 9 additions & 6 deletions docs/content/2.examples/3.columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
fluid: true
toc: false
---

# Columns

::alert
Expand All @@ -10,11 +11,12 @@ Check the <a target="_blank" href="https://pdfmake.github.io/docs/0.1/document-d

::code-group

::code-block{label="Preview" preview .h-screen}
::ColumnsExample
::
::code-block{label="Preview" preview .h-screen}

:Columns-Example

::code-block{label="Code" code}

::code-block{label="Code" code}
```ts
<script setup lang="ts">
import { _colors } from "#tailwind-config/theme";
Expand Down Expand Up @@ -190,5 +192,6 @@ onMounted(() => {
});
</script>
```
::
::

::
::
14 changes: 8 additions & 6 deletions docs/content/2.examples/4.table.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
fluid: true
toc: false
---

# Advanced Table

::alert
Expand All @@ -10,11 +11,11 @@ Check the <a target="_blank" href="https://pdfmake.github.io/docs/0.1/document-d

::code-group

::code-block{label="Preview" preview .h-screen}
::TableExample
::
::code-block{label="Preview" preview .h-screen}
:Table-Example

::code-block{label="Code" code}

::code-block{label="Code" code}
```ts
<script setup lang="ts">
import { _colors } from "#tailwind-config/theme";
Expand Down Expand Up @@ -648,5 +649,6 @@ onMounted(() => {
});
</script>
```
::
::

::
::
14 changes: 8 additions & 6 deletions docs/content/2.examples/5.list.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
fluid: true
toc: false
---

# List

::alert
Expand All @@ -10,11 +11,11 @@ Check the <a target="_blank" href="https://pdfmake.github.io/docs/0.1/document-d

::code-group

::code-block{label="Preview" preview .h-screen}
::ListExample
::
::code-block{label="Preview" preview .h-screen}
:List-Example

::code-block{label="Code" code}

::code-block{label="Code" code}
```ts
<script setup lang="ts">
import { _colors } from "#tailwind-config/theme";
Expand Down Expand Up @@ -358,5 +359,6 @@ onMounted(() => {
});
</script>
```
::
::

::
::
14 changes: 8 additions & 6 deletions docs/content/2.examples/6.images.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
fluid: true
toc: false
---

# Images

::alert
Expand All @@ -10,11 +11,11 @@ Check the <a target="_blank" href="https://pdfmake.github.io/docs/0.1/document-d

::code-group

::code-block{label="Preview" preview .h-screen}
::ImageExample
::
::code-block{label="Preview" preview .h-screen}
:Image-Example

::code-block{label="Code" code}

::code-block{label="Code" code}
```ts
<script setup lang="ts">
import { _colors } from "#tailwind-config/theme";
Expand Down Expand Up @@ -87,5 +88,6 @@ onMounted(async () => {
});
</script>
```
::
::

::
::
14 changes: 8 additions & 6 deletions docs/content/2.examples/7.rent-receipt.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
fluid: true
toc: false
---

# Rent Receipt

::code-group

::code-block{label="Preview" preview .h-screen}
::RentExample
::
::code-block{label="Preview" preview .h-screen}
:Rent-Example

::code-block{label="Code" code}

::code-block{label="Code" code}
```ts
<script setup lang="ts">
import { _colors } from "#tailwind-config/theme";
Expand Down Expand Up @@ -205,5 +206,6 @@ onMounted(async () => {
});
</script>
```
::
::

::
::
16 changes: 9 additions & 7 deletions docs/content/2.examples/8.composable.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
fluid: true
toc: false
---

# Composable

::code-group

::code-block{label="Preview" preview .h-screen}
::ComposableExample
::
::code-block{label="Preview" preview .h-screen}
:Composable-Example

::code-block{label="Code" code}

::code-block{label="Code" code}
```ts []{7}
<script setup lang="ts">
const pdfLink = ref();
Expand Down Expand Up @@ -42,6 +43,7 @@ onMounted(() => {
loadPdf();
});
</script>
```
::
::
```

::
::
Loading

0 comments on commit 9c66858

Please sign in to comment.