From d1bb1cd56379879cb8c70ef4a9be62497e4a8a24 Mon Sep 17 00:00:00 2001 From: Sergey Makhnatkin Date: Tue, 25 Jun 2024 14:51:58 +0300 Subject: [PATCH] fix(example): fixed example build --- .gitignore | 3 ++- example/{Readme.md => README.md} | 0 example/index.js | 10 +++++----- example/package.json | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) rename example/{Readme.md => README.md} (100%) diff --git a/.gitignore b/.gitignore index 4f71af2..4c3f47c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ node_modules /index.d.ts /types.d.ts example/package-lock.json -example/build \ No newline at end of file +example/build +.idea diff --git a/example/Readme.md b/example/README.md similarity index 100% rename from example/Readme.md rename to example/README.md diff --git a/example/index.js b/example/index.js index a01cf98..ee4fe57 100644 --- a/example/index.js +++ b/example/index.js @@ -1,9 +1,9 @@ -import transform from '@doc-tools/transform'; +import transform from '@diplodoc/transform'; import mermaid from '@diplodoc/mermaid-extension'; import {readFile} from 'node:fs/promises'; (async () => { - const content = await readFile('./Readme.md', 'utf8'); + const content = await readFile('./README.md', 'utf8'); const {result} = await transform(content, { output: './build', plugins: [mermaid.transform()], @@ -23,16 +23,16 @@ import {readFile} from 'node:fs/promises'; window.mermaidJsonp = window.mermaidJsonp || []; window.mermaidJsonp.push(function(mermaid) { window.addEventListener('load', function() { - mermaid.initialize({ theme: 'forest' }); + mermaid.initialize({ theme: 'forest' }); mermaid.run(); }); }); - ${result.html} + ${result.html} - + `; console.log(html); diff --git a/example/package.json b/example/package.json index e422cf7..ebd2794 100644 --- a/example/package.json +++ b/example/package.json @@ -7,6 +7,6 @@ }, "dependencies": { "@diplodoc/mermaid-extension": "*", - "@doc-tools/transform": "*" + "@diplodoc/transform": "*" } }