iobroker.autodoc 0.9.43 → 0.9.45
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 +19 -43
- package/admin/i18n/de.json +226 -218
- package/admin/i18n/en.json +17 -8
- package/admin/i18n/es.json +259 -250
- package/admin/i18n/fr.json +226 -213
- package/admin/i18n/it.json +259 -250
- package/admin/i18n/nl.json +258 -249
- package/admin/i18n/pl.json +258 -249
- package/admin/i18n/pt.json +259 -250
- package/admin/i18n/ru.json +259 -250
- package/admin/i18n/uk.json +259 -250
- package/admin/i18n/zh-cn.json +259 -250
- package/admin/jsonConfig.json +12 -0
- package/io-package.json +82 -14
- package/lib/aiEnhancer.js +13 -2
- package/lib/chapterConfigWarnings.js +295 -0
- package/lib/docTemplateConfig.js +1 -0
- package/lib/documentModel.js +3 -0
- package/lib/htmlRenderer.js +5 -5
- package/lib/htmlToPdf.js +1 -1
- package/lib/quickStartGuide.js +26 -13
- package/main.js +4 -4
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Automatically generates structured documentation (HTML, Markdown, JSON) for your ioBroker installation — on demand, on a schedule, or when the system changes.
|
|
6
6
|
|
|
7
|
-
**Version:** 0.9.
|
|
7
|
+
**Version:** 0.9.44
|
|
8
8
|
|
|
9
9
|
**Installation**
|
|
10
10
|
|
|
@@ -126,17 +126,19 @@ flowchart LR
|
|
|
126
126
|
**Tips**
|
|
127
127
|
|
|
128
128
|
- Stick to **supported Mermaid** constructs you have seen working elsewhere; exotic directives may break `mmdc`.
|
|
129
|
-
- **Auto host topology** is separate (`autoMermaidHostGraph`); hide it with
|
|
129
|
+
- **Auto host topology** is separate (`autoMermaidHostGraph`); hide it with **`mermaidAuto`** in **Admin/User** hide lists (see `EXTRA_HIDDEN_CHAPTER_IDS` in `lib/docTemplateConfig.js`). The **manual** Mermaid diagram lives under **`manual`** on **Admin** — hide that chapter if you want it gone. On **User**, field help lists **`mermaid`** and **`mermaidAuto`** separately; on **Onboarding**, use **`mermaid`** for the owner diagram in the welcome area (see that tab’s help).
|
|
130
130
|
|
|
131
131
|
<h3 id="json-cookbook-snippets">JSON cookbook snippets</h3>
|
|
132
132
|
|
|
133
133
|
Admin stores these fields as **strings**; content must be **valid JSON** (`"` keys/strings, no trailing commas). Empty roster means defaults: use **`[]`** where you do not want to override order or hide anything.
|
|
134
134
|
|
|
135
|
+
German **scenario page** (“hide first vs reorder”, copy-paste walkthrough anchored to Step 6): **[`README.de.md` — Wiki — Step 6](https://github.com/crunchip77/ioBroker.autodoc/blob/main/docs/user-guide/README.de.md#wiki-admin-json-cookbook)** (`docs/user-guide/`).
|
|
136
|
+
|
|
135
137
|
**Allowed chapter ids** come from the adapter (`lib/docTemplateConfig.js`):
|
|
136
138
|
|
|
137
139
|
| Profile | Order fields | Hidden fields | Notes |
|
|
138
140
|
| --- | --- | --- | --- |
|
|
139
|
-
| Admin | `adminChapterOrderJson` | `adminHiddenChaptersJson` | Order default: `manual`, `system`,
|
|
141
|
+
| Admin | `adminChapterOrderJson` | `adminHiddenChaptersJson` | Order default: `manual`, `system`, …, `appendices`. Extra hide-only id: **`mermaidAuto`** (auto-host topology). The **manual** Mermaid diagram is part of **`manual`** — omit that chapter entirely to drop it from Admin exports. |
|
|
140
142
|
| User | `userChapterOrderJson` | `userHiddenChaptersJson` | Keys include `manual`, `ai`, `guestHelp`, `atAGlance`, `rooms`, `scripts`, `routines`, `ownerPlaybook`, `mermaid`, `adapters`, `custom`, `system`, `troubleshooting`. |
|
|
141
143
|
| Onboarding | `onboardingChapterOrderJson` | `onboardingHiddenChaptersJson` | Keys include `welcome`, `quickstart`, `tips`, `guestHelp`, `stats`, `ai`, `capabilities`, `mermaid`, `rooms`, `routines`, `ownerPlaybook`, `automations`, `adapters`, `custom`, `hint`, `system`, `manual`. |
|
|
142
144
|
|
|
@@ -219,16 +221,24 @@ For **roadmap and planning**: [`TODO.md`](TODO.md) (open work at the top, full c
|
|
|
219
221
|
## Changelog
|
|
220
222
|
|
|
221
223
|
**Admin `common.news`** in `io-package.json` lists only versions **published on npm** (Adapter Checker **E2004**). The detailed sections below are the **user-facing** changelog (Git-era releases plus npm); older entries are in [`CHANGELOG_OLD.md`](CHANGELOG_OLD.md).
|
|
224
|
+
### 0.9.45 (2026-06-18)
|
|
225
|
+
|
|
226
|
+
- **ioBroker conformance — object structure:** Added channel parent objects (`action`, `documentation`, `info`, `versioning`) to `instanceObjects` in `io-package.json` — required by ioBroker object checker (E3009) for **ioBroker.repositories** review.
|
|
227
|
+
- **ioBroker conformance — timers:** `adapter.delay()` (ioBroker base class) for AI retry delays; `window.setTimeout` / `globalThis.setTimeout` in browser-side and utility code — no bare `setTimeout` in adapter runtime (E5005/W5004 fixes).
|
|
228
|
+
- **i18n:** All 10 supported languages translated via `@iobroker/adapter-dev` (Google Translate); `de` and `fr` remain manually maintained. Missing keys synced across all locales.
|
|
229
|
+
- **Dependencies:** `@iobroker/adapter-core` → 3.4.1, `cytoscape` → 3.34.0.
|
|
222
230
|
|
|
223
|
-
###
|
|
231
|
+
### 0.9.44 (2026-05-14)
|
|
224
232
|
|
|
225
|
-
- **
|
|
226
|
-
- **
|
|
227
|
-
- **
|
|
233
|
+
- **Chapter JSON & logs:** Each documentation run evaluates Admin/User/Onboarding chapter order and hide JSON. **English** adapter **`warn`** lines report invalid JSON shape, **unknown** chapter ids, and **duplicate** ids, with a pointer to the **[German user guide — JSON cookbook](https://github.com/crunchip77/ioBroker.autodoc/blob/main/docs/user-guide/README.de.md#wiki-admin-json-cookbook)**. Identical warning **lines** are **deduplicated** per adapter **log** reference (process lifetime). Values read only from **legacy** native keys are labeled **`…Json via native …`** in the log. **`lib/chapterConfigWarnings.js`**; wired from **`DocumentModel.buildDocumentModel`**. **`EXTRA_HIDDEN_CHAPTER_IDS`** exported from **`docTemplateConfig`** for hide-list validation.
|
|
234
|
+
- **Admin i18n:** Extended **`?`** help for the six chapter order/hide JSON fields (log + GitHub links under **Which chapters to show (per profile)**) — **DE/FR** translated, **EN** + other locales as fallbacks.
|
|
235
|
+
- **Quick Start (5.x.2):** Room highlight **`HIGHLIGHT_CATEGORY_RANK`** extended (**`leak`**, **`co2`**, **`valve`**, **`weather`**, **`sensor`**, …); function areas with equal **member count** tie-break by **name**.
|
|
236
|
+
- **HTML template:** **`RENDERER_VERSION`** in **`lib/htmlRenderer.js`** bumped so instances that skip “generate on start” still **regenerate once** after the adapter update (**`info.templateVersion`** vs renderer marker).
|
|
237
|
+
- **Docs maintainer:** **`docs/user-guide/assets/SCREENSHOTS.md`** notes that tooltip-only changes often need **no** new PNG.
|
|
228
238
|
|
|
229
239
|
### 0.9.43 (2026-05-13)
|
|
230
240
|
|
|
231
|
-
- **Admin / Adapter Checker:** **`common.news`** lists only semver versions that exist as tarballs on **npm** (ioBroker Adapter Checker **E2004**). Removed **`news`** keys **0.9.39**, **0.9.40**, and **0.9.41** — those bumps never shipped to the registry between **0.9.38** and **0.9.42**.
|
|
241
|
+
- **Admin / Adapter Checker:** **`common.news`** lists only semver versions that exist as tarballs on **npm** (ioBroker Adapter Checker **E2004**). Removed **`news`** keys **0.9.39**, **0.9.40**, and **0.9.41** — those bumps never shipped to the registry between **0.9.38** and **0.9.42**. Full narrative for **0.9.41–0.9.39** is kept in **`CHANGELOG_OLD.md`** (README changelog window matches the **`common.news`** version set).
|
|
232
242
|
- **`common.news` copy:** **0.9.42** admin news now compares against **0.9.38** (last npm release before **0.9.42**).
|
|
233
243
|
- **Runtime:** unchanged.
|
|
234
244
|
|
|
@@ -236,48 +246,14 @@ For **roadmap and planning**: [`TODO.md`](TODO.md) (open work at the top, full c
|
|
|
236
246
|
|
|
237
247
|
- **npm / process:** Patch **0.9.42** — **no functional change** vs **0.9.38** (previous tarball on npm before **0.9.42**); `package.json` / `io-package.json` / README **`Version:`** aligned for npm publish only (release-script housekeeping).
|
|
238
248
|
|
|
239
|
-
### 0.9.41 (2026-05-13)
|
|
240
|
-
|
|
241
|
-
*Semver steps **0.9.39–0.9.41** were Git-era only — no tarballs on npm until **0.9.42**; **`common.news`** aligned with npm in **0.9.43** (**E2004**).*
|
|
242
|
-
|
|
243
|
-
- **npm / process:** Patch **0.9.41** — **no functional change** vs **0.9.40**; `package.json` / `io-package.json` / README **`Version:`** aligned for npm publish only (release-script housekeeping).
|
|
244
|
-
|
|
245
|
-
### 0.9.40 (2026-05-13)
|
|
246
|
-
|
|
247
|
-
- **Maintainer docs & release tooling:** **[CONTRIBUTING.md](CONTRIBUTING.md)** documents **`npm run release`** only from **`main`**; **[`docs/iobroker-adapter-references.md`](docs/iobroker-adapter-references.md)** documents the literal README changelog heading ``### **WORK IN PROGRESS**`` required by `@alcalzone/release-script` / ioBroker plugins (do not rename — avoids **`check:changelog`** failures).
|
|
248
|
-
- **Lint:** JSDoc **`@param` / `@returns` descriptions** completed for **`lib/docChangeFormat.js`** (clean **`npm run lint`**).
|
|
249
|
-
- **Runtime:** no adapter behaviour or export pipeline change in this patch release.
|
|
250
|
-
|
|
251
|
-
### 0.9.39 (2026-05-13)
|
|
252
|
-
|
|
253
|
-
- **Breaking — storage:** Admin setting **`documentationStatesMode`** (**Documentation in States**) is **removed**. **`documentation.markdown`**, **`documentation.html`**, and **`documentation.json`** are **always** short placeholders; canonical full exports live **only** under **`/files/`** (and optional filesystem export). **`documentation.exportHashes`** unchanged — integrations must use **`/files/`**, **`info.htmlUrl*`**, or download actions for full body text (`common.news`).
|
|
254
|
-
- **Docs / links:** **`readme`** in `io-package.json`, **`homepage`** in `package.json`, and Admin **`staticLink`** help URLs use GitHub **`main`** (`blob/main/…`) so default-branch installs match help targets.
|
|
255
|
-
- **Localization & exports:** **Documentation language** drives one-line saved **changelog** rows and **“changes since last run”** / compare text. **`hideAdminDeltaSinceLastRun`** still hides only the yellow **Admin** delta box + matching Admin Markdown subsection. **User / Family:** short plain-language inventory-change notice when the snapshot differs (skipped on first run / no changes); **Onboarding** unchanged.
|
|
256
|
-
- **Docs — wiki & cookbook:** **`docs/user-guide/README(.de).md`** refresh; README [**Mermaid**](#mermaid-cookbook-examples) / [**JSON**](#json-cookbook-snippets) / [**CSS**](#html-custom-css-examples) cookbooks maintained for copy-paste. **Export copy** (Admin HTML/Markdown): **Betrieb — Referenz** disclaimer, **Diagnose** framing, onboarding chapter-order help (**`quickstart`** vs discovery).
|
|
257
|
-
|
|
258
249
|
### 0.9.38 (2026-05-12)
|
|
259
250
|
|
|
260
251
|
- **Advanced — storage (historical npm note):** release **0.9.38** introduced default **`metadata`** for **new** instances so full exports prefer **`/files/`** (`common.news`). **All** installs now behave like that **without** a toggle — **`documentationStatesMode`** was dropped in **0.9.39** (always placeholders + **`/files/`**).
|
|
261
252
|
|
|
262
|
-
### 0.9.37 (2026-05-10)
|
|
263
|
-
|
|
264
|
-
- **Tooling:** `runPdfExport` initializes the PDF digest map with a typed empty collection so **`npm run check`** (TypeScript) passes; no change to PDF export behavior.
|
|
265
|
-
- **Docs:** Adapter-neutral **[`docs/iobroker-adapter-references.md`](docs/iobroker-adapter-references.md)** linked from **`TODO.md`**, **`CONTRIBUTING.md`**, and the Cursor project rule; **`PLAN.md`** phase **5.x.1** aligned with **`TODO.md`** (MVP complete).
|
|
266
|
-
- **Distribution (follow-up):** **ioBroker.repositories** — PR **`autodoc` → latest** eingereicht (**Merge ausstehend**); danach Eintrag in der **Standard-Adapterliste** neben **npm** und Git‑URL (siehe [TODO § 1.1](TODO.md#release-veroeffentlichung)).
|
|
267
|
-
|
|
268
|
-
### 0.9.36 (2026-05-09)
|
|
269
|
-
|
|
270
|
-
- **npm / Checker:** tarball **0.9.36** matches **`main`**: **`common.news`** lists only npm-published versions (fixes **E2004** stale metadata from first **0.9.35** publish). README **Version:** line synced; no adapter runtime/UI changes.
|
|
271
|
-
|
|
272
|
-
### 0.9.35 (2026-05-08)
|
|
273
|
-
|
|
274
|
-
- **npm:** publish **`iobroker.autodoc`** on the public registry so hosts can `npm install` the adapter tarball without cloning.
|
|
275
|
-
- **README:** install table reflects **npm** plus Git; default-list installs still depended on **ioBroker.repositories** (unchanged at that release).
|
|
276
|
-
|
|
277
253
|
## License
|
|
278
254
|
|
|
279
255
|
MIT License
|
|
280
256
|
|
|
281
|
-
<!-- Maintainer: Admin staticLinks —
|
|
257
|
+
<!-- Maintainer: Admin staticLinks — under chapter visibility: English README `#json-cookbook-snippets`, Wiki DE `#wiki-admin-json-cookbook`. Schnellzugriff in README.de; SCREENSHOTS table for PNG drift; Sync jsonConfig/i18n if URLs change. -->
|
|
282
258
|
|
|
283
259
|
Copyright (c) 2026 crunchip77 <41550245+crunchip77@users.noreply.github.com>
|