@dogsbay/dita-publish 0.2.0-beta.123 → 0.2.0-beta.124
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 +1 -1
- package/dist/publish.js +1 -1
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ npx -y @dogsbay/dita-publish@beta publish-dita <dita-ot-temp-dir> -o site
|
|
|
7
7
|
npx -y @dogsbay/dita-publish@beta dita dev -d <deliverable>
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
- `publishDitaTemp` (`src/publish.ts`): DITA-OT's preprocessed temp folder → pages, `nav.yml`, resources. Converts topics with `@dogsbay/format-dita`, through its `./publish-support` hooks.
|
|
10
|
+
- `publishDitaTemp` (`src/publish.ts`): DITA-OT's preprocessed temp folder → pages, `nav.yml`, resources. Converts topics with `@dogsbay/format-dita`, through its `./publish-support` hooks. Browser-safe: import it from `@dogsbay/dita-publish/publish` (the package root also carries the CLI and `publishDita`, which need `node:fs`); `tests/browser-bundle.test.ts` fails if a Node built-in gets into its browser bundle.
|
|
11
11
|
- `dogsbay-dita publish-dita` and `dogsbay-dita dita dev`: the commands that used to be in the `dogsbay` CLI. `dita dev` builds and serves the site with the `dogsbay` CLI's `site` commands.
|
|
12
12
|
- `scripts/bundle-publish-dita.mjs` (repo only): the single-file converter the DITA-OT plugin `@dogsbay/dita-ot-plugin` carries.
|
|
13
13
|
|
package/dist/publish.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* Pure: file access goes through `files`, so the CLI and tests supply it.
|
|
15
15
|
*/
|
|
16
16
|
import { parseDocument } from "htmlparser2";
|
|
17
|
-
import { inlineToDogsbayMd, transformProseSegments } from "@dogsbay/format-dogsbay-md";
|
|
17
|
+
import { inlineToDogsbayMd, transformProseSegments } from "@dogsbay/format-dogsbay-md/browser";
|
|
18
18
|
import { ditaTopicToDogsbayMd, renameDitaHref } from "@dogsbay/format-dita";
|
|
19
19
|
import { convertInline, publishHref, publishLabel, publishLanguage, publishString, PUBLISH_PREREQUISITES_MARKER, PUBLISH_RELATED_LINKS_MARKER, renamedElementIds, trimInline, } from "@dogsbay/format-dita/publish-support";
|
|
20
20
|
const isElement = (node) => node.type === "tag";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dogsbay/dita-publish",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.124",
|
|
4
4
|
"description": "Publish DITA-OT's preprocessed temp folder as a dogsbay site: dogsbay-dita publish-dita, dita dev, and the DITA-OT plugin's converter",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./publish": {
|
|
15
|
+
"types": "./dist/publish.d.ts",
|
|
16
|
+
"import": "./dist/publish.js"
|
|
13
17
|
}
|
|
14
18
|
},
|
|
15
19
|
"files": [
|
|
@@ -24,9 +28,9 @@
|
|
|
24
28
|
"htmlparser2": "^10.1.0",
|
|
25
29
|
"picocolors": "^1.1.1",
|
|
26
30
|
"yaml": "^2.9.0",
|
|
27
|
-
"@dogsbay/format-dita": "0.2.0-beta.
|
|
28
|
-
"dogsbay": "0.2.0-beta.
|
|
29
|
-
"
|
|
31
|
+
"@dogsbay/format-dita": "0.2.0-beta.124",
|
|
32
|
+
"@dogsbay/format-dogsbay-md": "0.2.0-beta.124",
|
|
33
|
+
"dogsbay": "0.2.0-beta.124"
|
|
30
34
|
},
|
|
31
35
|
"devDependencies": {
|
|
32
36
|
"@types/node": "^22.20.1",
|