docusaurus-plugin-docusynx 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -59,6 +59,10 @@ export default defineComponentHandler({
59
59
  The handler key is the exact `importSource` and `exportName`. An unknown imported
60
60
  MDX component stops the build. The plugin does not execute an unknown component.
61
61
 
62
+ Mermaid rendering is included. Excalidraw rendering requires the optional
63
+ `@excalidraw/utils@0.1.5` peer dependency. Install it only when the documentation
64
+ contains an Excalidraw diagram that Docusynx must render.
65
+
62
66
  `sourcePathPrefix` changes site-relative paths into repository-relative paths.
63
67
  The `source_path` or `docusynx_source_path` frontmatter field overrides the path
64
68
  with an already repository-relative value. The prefix is not applied to an
package/dist/discover.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { access, readFile } from 'node:fs/promises';
2
2
  import path from 'node:path';
3
- import matter from 'gray-matter';
3
+ import matter from '@11ty/gray-matter';
4
4
  export async function discoverDocuments(input) {
5
5
  const documents = new Map();
6
6
  let nextOrder = 0;
package/dist/plugin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { mkdir, readFile, writeFile } from 'node:fs/promises';
2
2
  import path from 'node:path';
3
- import matter from 'gray-matter';
3
+ import matter from '@11ty/gray-matter';
4
4
  import { AssetCollector } from './assets.js';
5
5
  import { canonicalJson, contentHash } from './canonical.js';
6
6
  import { discoverDocuments, matchesRoutePattern, normalizeRoute, readRenderedRoute, } from './discover.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-docusynx",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Export a deterministic Docusaurus document bundle for docusynx",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -38,11 +38,15 @@
38
38
  "node": ">=22.13"
39
39
  },
40
40
  "peerDependencies": {
41
- "@docusaurus/core": "^3.10.0"
41
+ "@docusaurus/core": "^3.10.0",
42
+ "@excalidraw/utils": "0.1.5"
42
43
  },
43
44
  "peerDependenciesMeta": {
44
45
  "@docusaurus/core": {
45
46
  "optional": true
47
+ },
48
+ "@excalidraw/utils": {
49
+ "optional": true
46
50
  }
47
51
  },
48
52
  "publishConfig": {
@@ -50,12 +54,11 @@
50
54
  "registry": "https://registry.npmjs.org/"
51
55
  },
52
56
  "dependencies": {
53
- "@excalidraw/utils": "0.1.5",
57
+ "@11ty/gray-matter": "1.0.0",
54
58
  "cheerio": "1.0.0",
55
59
  "css-tree": "2.3.1",
56
60
  "domhandler": "5.0.3",
57
61
  "dompurify": "3.4.15",
58
- "gray-matter": "4.0.3",
59
62
  "jsdom": "26.1.0",
60
63
  "mdast-util-to-string": "4.0.0",
61
64
  "mermaid": "11.17.2",
@@ -68,6 +71,7 @@
68
71
  "unified": "11.0.5"
69
72
  },
70
73
  "devDependencies": {
74
+ "@excalidraw/utils": "0.1.5",
71
75
  "@types/jsdom": "21.1.7",
72
76
  "@types/node": "22.15.3",
73
77
  "@types/svgdom": "0.1.2",