From ee58ecb2af7c52a23497eb52df144f8ad544b753 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Mon, 21 Oct 2024 14:59:28 +0400 Subject: [PATCH] Fix import in docs --- docs/getting-started.md | 8 ++++---- package.json | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 421d8de14..780d2873a 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -37,9 +37,9 @@ import grapesjs from 'grapesjs'; The first step is to define the interface of our editor. For this purpose we gonna start with basic HTML layouts. Finding a common structure for the UI of any project is not an easy task. That's why GrapesJS prefers to keep this process as simple as possible. We provide a few helpers, but let the user define the interface. This guarantees maximum flexibility. The main part of the GrapesJS editor is the canvas, this is where you create the structure of your templates and you can't miss it. Let's try to initiate the editor with the canvas and no panels. -<<< @/docs/.vuepress/components/demos/DemoCanvasOnly.html -<<< @/docs/.vuepress/components/demos/DemoCanvasOnly.js -<<< @/docs/.vuepress/components/demos/DemoCanvasOnly.css +<<< @/.vuepress/components/demos/DemoCanvasOnly.html +<<< @/.vuepress/components/demos/DemoCanvasOnly.js +<<< @/.vuepress/components/demos/DemoCanvasOnly.css @@ -277,7 +277,7 @@ Another utility tool you might find useful when working with web elements is the
``` -<<< @/docs/.vuepress/components/demos/DemoLayers.css +<<< @/.vuepress/components/demos/DemoLayers.css ```js const editor = grapesjs.init({ diff --git a/package.json b/package.json index 65d86c3ba..4c293d0bd 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "packageManager": "pnpm@9.10.0", "scripts": { "start": "pnpm --filter grapesjs start", + "start:docs": "pnpm --filter @grapesjs/docs docs", "test": "pnpm -r run test", "docs": "pnpm --filter @grapesjs/docs docs", "docs:api": "pnpm --filter @grapesjs/docs docs:api",