Skip to content

Commit 4d1c4de

Browse files
fix: Documentation site screenshots (#248)
* Test change * Test change * Fixed screenshots in built env
1 parent b3e582c commit 4d1c4de

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

packages/website/docs/docs/block-types.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ BlockNote includes a number of built-in block types, each with their own set of
2424

2525
**Appearance**
2626

27-
<img :src="isDark ? '../public/img/screenshots/paragraph_type_dark.png' : '../public/img/screenshots/paragraph_type.png'" alt="image" style="height: 29px">
27+
<img :src="isDark ? '/img/screenshots/paragraph_type_dark.png' : '/img/screenshots/paragraph_type.png'" alt="image" style="height: 29px">
2828

2929
**Type & Props**
3030

@@ -42,7 +42,7 @@ type ParagraphBlock = {
4242

4343
**Appearance**
4444

45-
<img :src="isDark ? '../public/img/screenshots/heading_type_dark.png' : '../public/img/screenshots/heading_type.png'" alt="image" style="height: 77px">
45+
<img :src="isDark ? '/img/screenshots/heading_type_dark.png' : '/img/screenshots/heading_type.png'" alt="image" style="height: 77px">
4646

4747
**Type & Props**
4848

@@ -64,7 +64,7 @@ type HeadingBlock = {
6464

6565
**Appearance**
6666

67-
<img :src="isDark ? '../public/img/screenshots/bullet_list_item_type_dark.png' : '../public/img/screenshots/bullet_list_item_type.png'" alt="image" style="height: 29px">
67+
<img :src="isDark ? '/img/screenshots/bullet_list_item_type_dark.png' : '/img/screenshots/bullet_list_item_type.png'" alt="image" style="height: 29px">
6868

6969
**Type & Props**
7070

@@ -82,7 +82,7 @@ type BulletListItemBlock = {
8282

8383
**Appearance**
8484

85-
<img :src="isDark ? '../public/img/screenshots/numbered_list_item_type_dark.png' : '../public/img/screenshots/numbered_list_item_type.png'" alt="image" style="height: 29px">
85+
<img :src="isDark ? '/img/screenshots/numbered_list_item_type_dark.png' : '/img/screenshots/numbered_list_item_type.png'" alt="image" style="height: 29px">
8686

8787
**Type & Props**
8888

packages/website/docs/docs/blocks.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function App() {
4545

4646
So, BlockNote is centered around the idea of blocks. A block - like a heading, paragraph, or list item - contains a piece of content and optionally nested blocks:
4747

48-
<img :src="isDark ? '../public/img/screenshots/block_structure_dark.png' : '../public/img/screenshots/block_structure.png'" alt="image" style="width: 100%">
48+
<img :src="isDark ? '/img/screenshots/block_structure_dark.png' : '/img/screenshots/block_structure.png'" alt="image" style="width: 100%">
4949

5050
In code, the `Block` type is used to describe any given block in the editor:
5151

packages/website/docs/docs/formatting-toolbar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const { isDark } = useData();
1616

1717
The Formatting Toolbar appears whenever you highlight text in the editor, and is mainly used for styling.
1818

19-
<img style="max-width:600px" :src="isDark ? '../public/img/screenshots/formatting_toolbar_dark.png' : '../public/img/screenshots/formatting_toolbar.png'" alt="image">
19+
<img style="max-width:600px" :src="isDark ? '/img/screenshots/formatting_toolbar_dark.png' : '/img/screenshots/formatting_toolbar.png'" alt="image">
2020

2121
## Custom Formatting Toolbar
2222

packages/website/docs/docs/side-menu.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ path: /docs/side-menu
77

88
<script setup>
99
import { useData } from 'vitepress';
10-
import { getTheme, getStyles } from "./demoUtils";
10+
import { getTheme, getStyles } from "./demoUtils";
11+
import {ref} from "vue";
1112

1213
const { isDark } = useData();
1314
</script>
@@ -16,11 +17,11 @@ const { isDark } = useData();
1617

1718
The Block Side Menu appears whenever you hover over a block, and is used to drag & drop the block as well as add new ones below it.
1819

19-
<img style="max-width:500px" :src="isDark ? '../public/img/screenshots/side_menu_dark.png' : '../public/img/screenshots/side_menu.png'" alt="image">
20+
<img style="max-width:500px" :src="isDark ? '/img/screenshots/side_menu_dark.png' : '/img/screenshots/side_menu.png'" alt="image">
2021

2122
You can also click the drag handle in the Block Side Menu (``) to open the Drag Handle Menu.
2223

23-
<img style="max-width:250px" :src="isDark ? '../public/img/screenshots/drag_handle_menu_dark.png' : '../public/img/screenshots/drag_handle_menu.png'" alt="image">
24+
<img style="max-width:250px" :src="isDark ? '/img/screenshots/drag_handle_menu_dark.png' : '/img/screenshots/drag_handle_menu.png'" alt="image">
2425

2526
## Custom Drag Handle Menu
2627

packages/website/docs/docs/slash-menu.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ const { isDark } = useData();
1616

1717
The Slash Menu is the list of commands which shows up whenever you type the "/" (slash) character, or when you click the "+" button in the [Side Menu](/docs/side-menu):
1818

19-
<!-- ![../public/img/screenshots/slash_menu.png]() -->
20-
21-
<img style="max-width:400px" :src="isDark ? '../public/img/screenshots/slash_menu_dark.png' : '../public/img/screenshots/slash_menu.png'" alt="image">
19+
<img style="max-width:400px" :src="isDark ? '/img/screenshots/slash_menu_dark.png' : '/img/screenshots/slash_menu.png'" alt="image">
2220

2321
## Slash Menu Items
2422

0 commit comments

Comments
 (0)