Installing libX11 with "doc" use flag should build corresponding html/pdf files, as specified in https://gitlab.freedesktop.org/xorg/lib/libx11/-/blob/libX11-1.7.5/docbook.am#L39