From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] Display package description as Org-exported text or HTML? Date: Mon, 31 May 2021 15:29:14 +0300 Message-ID: References: <27aaa2b3-96a1-d1b1-07dc-d8f0a9ca7900@daniel-mendler.de> <87wnrfrtho.fsf@web.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_stw1.rcdrun.com-18228-1622464360-0001-2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3416"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.7+183 (3d24855) (2021-05-28) Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 31 14:33:55 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lnh7C-0000a0-F8 for ged-emacs-devel@m.gmane-mx.org; Mon, 31 May 2021 14:33:54 +0200 Original-Received: from localhost ([::1]:47890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnh7A-00018I-E9 for ged-emacs-devel@m.gmane-mx.org; Mon, 31 May 2021 08:33:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnh64-0000Ri-Jn for emacs-devel@gnu.org; Mon, 31 May 2021 08:32:45 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:48761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnh62-0005wj-OT for emacs-devel@gnu.org; Mon, 31 May 2021 08:32:44 -0400 Original-Received: from localhost ([::ffff:197.157.0.35]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000ADF27.0000000060B4D767.00004734; Mon, 31 May 2021 05:32:38 -0700 Mail-Followup-To: Michael Heerdegen , emacs-devel@gnu.org Content-Disposition: inline In-Reply-To: <87wnrfrtho.fsf@web.de> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SORBS_WEB=1.5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270170 Archived-At: This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_stw1.rcdrun.com-18228-1622464360-0001-2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline * Michael Heerdegen [2021-05-31 15:14]: > Daniel Mendler writes: > > > Why is ELPA not automatically converting README.org to README.txt and > > using it on the ELPA website? > > The last time I raised the question, the answer was that we want that > but still someone has to implement it. Find attached the script org-to-html that will convert .org files with: cat file | org-to-html > file.html -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns Sign an open letter in support of Richard M. Stallman https://stallmansupport.org/ --=_stw1.rcdrun.com-18228-1622464360-0001-2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=org-to-html #!/usr/bin/emacs --script (require 'org) (require 'ox) (require 'ox-html) (defun org-to-html () (let* ((org (with-temp-buffer (progn (condition-case nil (let (line) (while (setq line (read-from-minibuffer "")) (insert line) (insert "\n"))) (error nil)) (buffer-string)))) (html (with-temp-buffer (let ((org-export-with-toc nil)) (insert org) (org-export-to-buffer 'html (current-buffer) nil nil nil t) (buffer-string))))) (prin1 html))) (org-to-html) --=_stw1.rcdrun.com-18228-1622464360-0001-2--