From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Y. E. via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#53205: 28.0.90; [PATCH] GNU ELPA: Provide more control over linked documentation Date: Fri, 14 Jan 2022 16:59:18 +0200 Message-ID: References: Reply-To: "Y. E." Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33582"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yet@ego.team, 53205@debbugs.gnu.org, monnier@iro.umontreal.ca To: "Y. E." Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 14 16:00:46 2022 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 1n8O4L-0008ag-Vm for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Jan 2022 16:00:46 +0100 Original-Received: from localhost ([::1]:51878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8O4K-0005ne-LS for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Jan 2022 10:00:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8O3f-0005n1-Fb for bug-gnu-emacs@gnu.org; Fri, 14 Jan 2022 10:00:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44943) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8O3f-00033B-5Z for bug-gnu-emacs@gnu.org; Fri, 14 Jan 2022 10:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8O3f-0000ve-4I for bug-gnu-emacs@gnu.org; Fri, 14 Jan 2022 10:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Y. E. Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jan 2022 15:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53205 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 53205-submit@debbugs.gnu.org id=B53205.16421723643485 (code B ref 53205); Fri, 14 Jan 2022 15:00:03 +0000 Original-Received: (at 53205) by debbugs.gnu.org; 14 Jan 2022 14:59:24 +0000 Original-Received: from localhost ([127.0.0.1]:37846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8O32-0000u9-3w for submit@debbugs.gnu.org; Fri, 14 Jan 2022 09:59:24 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]:31474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8O2z-0000tz-B7 for 53205@debbugs.gnu.org; Fri, 14 Jan 2022 09:59:22 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ego.team; s=key1; t=1642172359; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=wM6qS+yrqBJNZ5QFq6P+IeFB3EnChaEaYCGp7YDhS9I=; b=GHnT3OriVQ+WXYsknxtG0dB9R2EZ+4QjoHTie8HPhv3fG+wMce7tY22E3TAXbSLdt0QRW6 qCZzESun00gak5H0oa7Va6XS+EIdTlI58OWL9ToBvPicurGAeyi1IjVl7y5gzKWxVsdJsF OxtBLaohrQgFWh1y5vi0tEVH6wNKm74= In-Reply-To: (message from Y. E. on Fri, 14 Jan 2022 13:11:07 +0200) X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: ego.team 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" X-ACL-Warn: , Y. E. Xref: news.gmane.io gmane.emacs.bugs:224211 Archived-At: > Y. E. writes: > Thinking about improving images output for Company local HTML doc, may > it become possible to allow adding small quantity per-package page > styles directly to the ELPA repository? > > Having an HTML "package-name wrapper" could allow doing something like: > > #pkg-company img { > max-width: 300px; > } Sorry, my mind was confused at that moment, so I shifted the focus from the local HTML doc styles to the main package page styles. Even though the suggested stays valid for the main page styles, the local HTML doc styles would have to be included to the generated HTML first, of course. I meant to suggest the following approach: #+BEGIN_SRC diff diff --git a/elpa-admin.el b/elpa-admin.el index d570c3c6aa..cad33482cb 100644 --- a/elpa-admin.el +++ b/elpa-admin.el @@ -2047,7 +2047,12 @@ directory; one of archive, archive-devel." (concat (make-temp-name (expand-file-name "doc")) ".html"))) (with-temp-buffer (elpaa--call-sandboxed - t "makeinfo" "--no-split" "--html" docfile "-o" tmpfile) + t "makeinfo" "--no-split" "--html" docfile + "-c" (format "AFTER_BODY_OPEN=3D
" + (car pkg-spec)) + "-c" "PRE_BODY_CLOSE=3D
" + "--css-ref" "../../html/doc-html.css" ; TODO: Use robust path. + "-o" tmpfile) (message "%s" (buffer-string))) (rename-file tmpfile html-file t) ;; FIXME: Use `push' in Emacs=E2=89=A528 #+END_SRC '/html/doc-html.css' then could contain: #+BEGIN_SRC css #pkg-company img { /* Until images output is fixed, hide them. */ display: none; /* max-width: 360px; */ /* margin-bottom: 0.8em; */ } #+END_SRC Would it be fine to follow this route?