From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73425: 31.0.50; Support images in HTML versions of ELPA package manuals Date: Sun, 22 Sep 2024 20:45:13 +0300 Message-ID: <86v7ynh9au.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17783"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73425@debbugs.gnu.org, philipk@posteo.net To: Eshel Yaron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 22 19:47:04 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ssQfo-0004To-3X for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Sep 2024 19:47:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssQfe-0005hO-Mu; Sun, 22 Sep 2024 13:46:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ssQfR-0005gG-G5 for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 13:46:43 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ssQfQ-0000Hh-VH for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 13:46:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=rk2aa5OS4Oxw3wvK1zj9WPAs7AM6FxGVJvD/4emThtA=; b=l6umMgEdkLaFXwoDkoFLg8XHcZ1/OH6n1xmU2eu/Bdpx0QW+uGCMXyvh2iB/EnlqAKDGUMJtxKq6VOHjCZJgZXSG7WIMtkobZviT2f4ZdHkYfWGLBUN4k7RkYlCihPehBEM9T15BhnT0vuv52dZSR82K5CsQzTXWOIXG0Kah0BIYb51CrvyuoBb644dbdgmKlpgMjVXSR3oVYOWP/NtiPwPvfxWi4jMgkjXKGzRPLOSt3S4DYop44pwri4pcm3c1hO8DHWgGe3iZ+NtEDlELKDzqQ6jwcLqNlfMdD+FSKfeQljj4wvyPF5R9Lj5+vRClbL5BgmXdZU9MXQ2Zpx+aeg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ssQfl-0000HY-PY for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 13:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Sep 2024 17:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73425 X-GNU-PR-Package: emacs Original-Received: via spool by 73425-submit@debbugs.gnu.org id=B73425.1727027166987 (code B ref 73425); Sun, 22 Sep 2024 17:47:01 +0000 Original-Received: (at 73425) by debbugs.gnu.org; 22 Sep 2024 17:46:06 +0000 Original-Received: from localhost ([127.0.0.1]:42712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssQes-0000Fn-CQ for submit@debbugs.gnu.org; Sun, 22 Sep 2024 13:46:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssQep-0000Ef-F0 for 73425@debbugs.gnu.org; Sun, 22 Sep 2024 13:46:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ssQeI-0000BM-JZ; Sun, 22 Sep 2024 13:45:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=rk2aa5OS4Oxw3wvK1zj9WPAs7AM6FxGVJvD/4emThtA=; b=PCX7JtReBF7F /1zmOgrKdTNIlpHaPYTkVhSdnFGVwO1tSFR29x5vt+PLeqxNcOaMq7pHdAnd2V7iPB41tIqcbK/UZ VJZY/E1cWCAa6WWp6fkzuX/PNY7ewjblV/ufRPRcVfTJJvuICfnDmuGM3KpJ8wCv9VOTag5bWX0Ms UAjyfYsk/RTsuAThBELNA9H7U7KnDPFdbdLgQrNs6ZjCkgdIcoVVId/ibWJMhAqJReb47fuCI9oSf m9vC4/7ylMvU09hQY1He/PZ90wLzrfFXYzHqs7GYC1t6rAUFupO6bE+4QOg1J2Eo66k/5yR6QXmOf 8uMwKOJjJalOQPUxStZFSQ==; In-Reply-To: (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292243 Archived-At: > Cc: Philip Kaludercic > Date: Sun, 22 Sep 2024 18:06:16 +0200 > From: Eshel Yaron via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > I'm opening this feature request following a discussion with Philip > elsewhere: Texinfo manual can include images, but AFAIK (and please > correct me if I'm wrong here) there's currently no way for ELPA packages > to include images in their manuals and have these images appear also in > the HTML version of the manual that the ELPA server builds and serves. Why "no way"? If the image files are present at their filenames as mentioned by the HTML version of the documentation, they will be shown by the browser. > An example is my GNU ELPA package Kubed. In the development version, > the manual refers to images which are present on my web server, where I > provide HTML versions[1][2] of the manual. There, the images are > displayed properly. On the ELPA server[3], OTOH, the images are nowhere > to be found, and we instead get just the alt text and caption. That's > expected, but the alt text is shown with no distinctive styling so the > result seems quite confusing. To show images, your HTML version of the manual should reference local files, not URLs from your some other server. And, of course, the image files should be part of the package tarball. > - Include images in the package repository, somehow indicate in the > package specification that the manual refers to these images, and have > the ELPA server keep the images around in a predictable location, so I > can link to it from the manual. I don't understand why this would be needed. Simply include the image files with the package, and the rest should "just work", AFAIU. > - Provide a IMAGE_LINK_PREFIX value (e.g. pointing to my web server) > that the ELPA server will use while building the HTML manual. That's definitely not TRT: ELPA packages should be self-contained as far as their documentation is concerned. > - Override the creation of the HTML manual entirely, and have the ELPA > server redirect or link to the version hosted on my web server. Likewise: there should be no dependency on any server. Apologies if I misunderstood the problem.