From: Jean Louis <bugs@gnu.support>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] Display package description as Org-exported text or HTML?
Date: Mon, 31 May 2021 15:29:14 +0300 [thread overview]
Message-ID: <YLTWmvC9m8su5QnV@protected.localdomain> (raw)
In-Reply-To: <87wnrfrtho.fsf@web.de>
[-- Attachment #1: Type: text/plain, Size: 630 bytes --]
* Michael Heerdegen <michael_heerdegen@web.de> [2021-05-31 15:14]:
> Daniel Mendler <mail@daniel-mendler.de> 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/
[-- Attachment #2: org-to-html --]
[-- Type: text/plain, Size: 517 bytes --]
#!/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)
next prev parent reply other threads:[~2021-05-31 12:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-31 10:09 [ELPA] Display package description as Org-exported text or HTML? Daniel Mendler
2021-05-31 10:29 ` Jean Louis
2021-05-31 10:53 ` Daniel Mendler
2021-05-31 11:04 ` Jean Louis
2021-05-31 12:13 ` Michael Heerdegen
2021-05-31 12:29 ` Jean Louis [this message]
2021-05-31 13:19 ` Stefan Monnier
2021-05-31 14:08 ` Michael Heerdegen
2021-05-31 14:59 ` Stefan Monnier
2021-05-31 15:14 ` Michael Heerdegen
2021-05-31 15:36 ` Stefan Monnier
2021-05-31 17:23 ` [ELPA PATCH] Add badge generator to elpa-admin.el Daniel Mendler
2021-05-31 18:02 ` Daniel Mendler
2021-06-04 16:00 ` Michael Heerdegen
2021-05-31 13:12 ` [ELPA] Display package description as Org-exported text or HTML? Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YLTWmvC9m8su5QnV@protected.localdomain \
--to=bugs@gnu.support \
--cc=emacs-devel@gnu.org \
--cc=michael_heerdegen@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.