Skip to content

docs(html): deprecate the html config options nothing reads - #700

Merged
andiwand merged 1 commit into
mainfrom
chore/deprecate-inert-html-config
Aug 18, 2026
Merged

docs(html): deprecate the html config options nothing reads#700
andiwand merged 1 commit into
mainfrom
chore/deprecate-inert-html-config

Conversation

@andiwand

@andiwand andiwand commented Aug 18, 2026

Copy link
Copy Markdown
Member

Four HtmlConfig options are read nowhere in the library:

Option State
embed_outline no outline is ever written
no_drm no output carries a restriction to lift
background_image_format no view renders a background image to a file
background_image_dpi same

grep -rn 'embed_outline\|no_drm\|background_image' src finds only their declarations in html.hpp. Setting one has done nothing for a while, which the header did not say. Noticed while surveying which config toggles the reference output covers (#699) — these are the ones there is nothing to cover.

Marked @deprecated in the header and in the four binding surfaces that carry them: python docstrings, the wasm .d.ts, @Deprecated on the Java fields, and doc comments on the ObjC properties.

They keep storing and returning what is set, and the bindings keep carrying them, so no caller breaks. Removing them is a later, breaking change — the same treatment GlobalParams::odr_core_data_path and libmagic_database_path already got.

Verified: bind_html.cpp compiles against pybind11, and the Java package compiles clean under -Xlint:deprecation (nothing in the repo reads the fields from Java).

🤖 Generated with Claude Code

`HtmlConfig::embed_outline`, `no_drm`, `background_image_format` and
`background_image_dpi` are read nowhere in the library: no outline is
written, no output carries a restriction to lift, and no view renders a
background image to a file. Setting one has done nothing for a while, which
the header did not say.

Marked deprecated in the header and in the python, wasm, jni and apple
bindings that carry them. They keep storing and returning what is set — no
caller breaks — so removing them is a later, breaking change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EPasn1P1Y4xGehbRdWWFwY
@andiwand
andiwand force-pushed the chore/deprecate-inert-html-config branch from c532604 to 7fc4f40 Compare August 18, 2026 13:39
@andiwand
andiwand merged commit 2628e6a into main Aug 18, 2026
30 of 32 checks passed
@andiwand
andiwand deleted the chore/deprecate-inert-html-config branch August 18, 2026 13:44
andiwand added a commit that referenced this pull request Aug 18, 2026
#700 merged after the v6.8.0 stamp but was written against the file before
it, so its entry landed under the v6.8.0 heading — a release the change is
not in. The v6.8.0 section now reads as the tag ships it, and the
deprecation waits with the rest of the unreleased notes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012jwYugqjwV6vTLJYRbFgtP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant