cudoc-docusaurus 0.5.0 → 0.7.0

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
@@ -19,7 +19,7 @@ const docs = {
19
19
  }
20
20
  ```
21
21
 
22
- Use `markdown.format: "detect"` for `.md` and `.mdx`. Import `@cudoment/cudoc/styles.css` from site CSS. The explicit `syntax` setup needs no cudoc theme plugin or component registration. For embedding, use the actual Docusaurus compiler during collection and add `cudoc-remark/embed` afterward in the rendering pipeline.
22
+ Use `markdown.format: "detect"` for `.md` and `.mdx`. Import `@cudoment/cudoc/styles.css` from site CSS. The explicit `syntax` setup needs no cudoc theme plugin or component registration. A heading ID that Docusaurus's slugger would change reaches it as a trailing `{#id}`, which it keeps as written, so an anchor such as `(#v1.2)` is the same in the page and its table of contents. For embedding, use the actual Docusaurus compiler during collection and add `cudoc-remark/embed` afterward in the rendering pipeline.
23
23
 
24
24
  Choose `host`, `cudoc` or `both` independently for `headingAnchor`, `badge`, `tableCellList`, `callout` and `link`. The representative callout is `> [!NOTE] Title`. Authors do not register cudoc React components in the recommended setup. Syntax-only rendering needs no stored JSON; cross-document embedding requires document collection.
25
25
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAExE,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAA;AAEtD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAS,sBAA2B,KACnC,aAA+D,CAAA;AAQlE,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,MAAM,CAAA;CAC3B,CAAA;AAED;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,QAAO,gBAG1B,CAAA;AAEF,eAAe,eAAe,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAExE,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAA;AAEtD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAS,sBAA2B,KACnC,aAA6E,CAAA;AAQhF,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,MAAM,CAAA;CAC3B,CAAA;AAED;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,QAAO,gBAG1B,CAAA;AAEF,eAAe,eAAe,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA"}
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import { createHostPlugins } from "cudoc-remark";
16
16
  *
17
17
  * They must run before Docusaurus assigns heading ids in its default plugins.
18
18
  */
19
- export const cudocRemarkPlugins = (options = {}) => createHostPlugins(options, "cudoc-docusaurus");
19
+ export const cudocRemarkPlugins = (options = {}) => createHostPlugins(options, "cudoc-docusaurus", "docusaurus");
20
20
  const themePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "theme");
21
21
  /**
22
22
  * The Docusaurus plugin, which contributes nothing but the theme components.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],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R,CAAA;AAOD;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,GAAqB,EAAE,CAAC,CAAC;IAC/C,IAAI,EAAE,kBAAkB;IACxB,YAAY,EAAE,GAAG,EAAE,CAAC,SAAS;CAC9B,CAAC,CAAA;AAEF,eAAe,eAAe,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cudoc-docusaurus",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Docusaurus adapter for cudoc: remark wiring, default components and a theme that provides them.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,11 +43,11 @@
43
43
  "clean": "rm -rf dist *.tsbuildinfo"
44
44
  },
45
45
  "dependencies": {
46
- "cudoc-remark": "0.5.0",
46
+ "cudoc-remark": "0.7.0",
47
47
  "unified": "^11.0.5"
48
48
  },
49
49
  "peerDependencies": {
50
- "@docusaurus/core": "^3.0.0",
50
+ "@docusaurus/core": "^3.10.0",
51
51
  "react": "^18.0.0 || ^19.0.0"
52
52
  },
53
53
  "author": "cudoment",