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 21:15:49 +0300 Message-ID: <86ldzjh7vu.fsf@gnu.org> References: <86v7ynh9au.fsf@gnu.org> <87h6a78t1t.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4410"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73425@debbugs.gnu.org, me@eshelyaron.com To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 22 20:16:51 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 1ssR8d-00011l-Pv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Sep 2024 20:16:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssR8T-0001Q2-Mu; Sun, 22 Sep 2024 14:16:41 -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 1ssR8S-0001Pr-B2 for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 14:16:40 -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 1ssR8R-0002mS-V8 for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 14:16:40 -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=e5WacKO0+ZqEJ1t4DvOkaO7CxdkLPH/ePjTEK1/k9gw=; b=On/POCHT0Ksg7T0GNTzDO9Fsy9Q0znv513hiuzP11fDR1IysZWF320nZGBVmicyJ/NdWDOVWZWCr2U+B9MIetA5fByxT6caERorXh68THp4m/Hh3dV5IY6XQLVEbJvNQs9PzHWP8VHzJktunO/euxq7tNWA/mBIh9ehIu6tE2scUfS8NxHHFQVXxEjvkUnMOoTGUeBF8S9ML0iiRQOicm/ecg27mNB4oHrBgiUN4GGJe+m+wDz88xosVlUaejTKcc2ziu9AQsVKt9eM2XZoa8BHCfslYsavouTKhHPo0P9Alz1RbE3Sbo5HyCn8xStv+39WNnBfNEs29eURtTYqISA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ssR8n-0001r2-PZ for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 14:17: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 18:17: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.17270289957057 (code B ref 73425); Sun, 22 Sep 2024 18:17:01 +0000 Original-Received: (at 73425) by debbugs.gnu.org; 22 Sep 2024 18:16:35 +0000 Original-Received: from localhost ([127.0.0.1]:42738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssR8N-0001pj-63 for submit@debbugs.gnu.org; Sun, 22 Sep 2024 14:16:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssR8L-0001pV-Ll for 73425@debbugs.gnu.org; Sun, 22 Sep 2024 14:16:34 -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 1ssR7t-0002ku-AS; Sun, 22 Sep 2024 14:16:06 -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=e5WacKO0+ZqEJ1t4DvOkaO7CxdkLPH/ePjTEK1/k9gw=; b=do2sFc563wcr zVvij5awwymxkllFJ0E0VkbeTwYULJ2vNoR/TriqvEs7Hk3ui7R7aqhG+pVb2/MEjkX/tsV6j2CpN nLPfWHsEnjf2uj2qP5lI4ZwNzjvL7T6rlNrEi4boP27nlzu0h50WIW1yIP+a63La+90ZLrovP+FGX vMgYLzSUl3WpFZAL6O5/jVzjtddofpbYmm7ed4jiFHhKsi9O+iojYBB+vIPaW0j0Y2v8KNT3u7X2e 8XnliBw6HdwFG6b2po7ZzCZs8SsgeEJhLsq7yvenJp8gAELcJE9d+3nBNUEQFNV42DBGFAuvtl14s z6gBOBmDGRiDrkcaIabPog==; In-Reply-To: <87h6a78t1t.fsf@posteo.net> (message from Philip Kaludercic on Sun, 22 Sep 2024 18:03:26 +0000) 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:292248 Archived-At: > From: Philip Kaludercic > Cc: Eshel Yaron , 73425@debbugs.gnu.org > Date: Sun, 22 Sep 2024 18:03:26 +0000 > > Eli Zaretskii writes: > > >> 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. > > The issue is that when generating the HTML documentation for > elpa.gnu.org, we don't copy out any files, but just generate the HTML > version of the manual. > > What we need is some kind of an indication in the package specification, > what files should be copied out for the manual to access, as otherwise > the images would only be hidden in the package tarball, that a web > browser cannot access (AFAIK). "Copied" where and why? Aren't the HTML docs generated in the package's tree, like the Info docs? > >> - 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. > > Do you know if TeXinfo has an option to inline images? If the > "makeinfo" command could somehow generate data: urls when exporting > images, then this could be very easily solved. This is already supported, for a long time, both in Info and HTML formats (and in other formats as well; see the node "Image Syntax" in the Texinfo manual.