Repository navigation
Release v1.209.1 — the printable documentation's table of contents lists its chapters and sections - #594
Merged
Conversation
…sts its chapters and sections Pandoc writes the contents as an empty Word field that only Word fills, and the release PDF came from a plain LibreOffice conversion that does not update indexes, so every printable showed "Table of Contents" over nothing. The .docx now caches one linked entry per level-1 and level-2 heading. The PDF is rendered by scripts/build-docs-pdf.py, which has LibreOffice update the contents before exporting and fails unless the contents lists every heading with a page number. Both workflows call it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CI counts the tests that pass, and its test job has neither pandoc nor LibreOffice, so the four tests that need them skip there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The printable documentation (the .docx and .pdf built on every pull request and attached to every Release) showed "Table of Contents" over nothing. Pandoc writes the contents as an empty Word field, which only Microsoft Word fills, and the PDF came from a plain LibreOffice conversion that does not update indexes. Both files now carry the contents.
No code the add-on runs changes.
Changes
scripts/build-docs-docx.pycaches one linked entry per level-1 and level-2 heading in the field (80 in this release), level 2 indented, with no page numbers. The field stays, so Word still rebuilds it with page numbers. The build fails if a heading has no bookmark to link to or the entries do not number the headings.scripts/build-docs-pdf.pyrenders it for the pull-request check and the Release alike: LibreOffice updates the contents twice, then exports. It fails unless the contents lists every level-1 and level-2 heading with a page number, in order. It runs LibreOffice in a throwaway profile and work directory, handles LibreOffice's first-start rewrite of the macro registry, has its own 200 s deadline inside the workflows' 240 s, and leaves nothing behind on success, failure or a signal.ci.yml's docs job andimages.yml's release step call the script. The release step stays best-effort; the pull-request job is the hard gate.docs/reference/12say what the build now does.Verification
cd server && npm test: 7,127 tests, 0 failures, in both time zones, locally. CI's test job has neither pandoc nor LibreOffice, so four of them skip there and it counts 7,123 passing, the figure the README carries.server/type-checks, both projects;web/type-checks and buildspython3 scripts/check-no-secrets.py;python3 scripts/validate-addon-config.py(the version only)node scripts/check-mutant-anchors.mjs: 6,679 anchors across 158 harnessesnode scripts/check-docs.mjs --check;node scripts/check-doc-claims.mjs --tests 7127: 11 of 11mutate-v1188-0.mjsgroup P (150, 56 new) andmutate-v1187-3i.mjs(53, 4 new), every mutant killed in a full run; the six other harnesses with an anchor in a changed file, 177 of 177 killedlibreoffice-writer --no-install-recommends: this PR's docs job built the PDF with its contents.Release
ecoflow_panel/config.yaml1.209.0 to 1.209.1;## 1.209.1inecoflow_panel/CHANGELOG.md(1.208.0 rolled to the archive).🤖 Generated with Claude Code