emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/hyperdrive-org-transclusion 061e9d13b0 22/38: Meta: Export


From: ELPA Syncer
Subject: [nongnu] elpa/hyperdrive-org-transclusion 061e9d13b0 22/38: Meta: Export only README body to HTML
Date: Mon, 23 Sep 2024 04:01:32 -0400 (EDT)

branch: elpa/hyperdrive-org-transclusion
commit 061e9d13b009b9912a3e2920a37802f69d2bb8d1
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>

    Meta: Export only README body to HTML
    
    This ensures that the README is rendered correctly on SourceHut.
---
 README.org      | 2 --
 build-readme.el | 7 +------
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/README.org b/README.org
index b4ba45975a..40a79c9582 100644
--- a/README.org
+++ b/README.org
@@ -1,6 +1,4 @@
 #+options: num:nil toc:nil author:nil html-postamble:nil
-# Sourcehut HTML renderer will render <style>: remove it
-#+options: html-style:nil
 
 #+title: hyperdrive-org-transclusion
 
diff --git a/build-readme.el b/build-readme.el
index ee747b5870..650ac2acc0 100644
--- a/build-readme.el
+++ b/build-readme.el
@@ -2,9 +2,4 @@
 (require 'ox-html)
 (with-temp-buffer
   (insert-file-contents "README.org")
-  (cl-letf (((symbol-function 'org-html--build-meta-info)
-             ;; HACK: Sourcehut erroneously displays <head> content, so
-             ;; we stop org from generating <head> entirely.
-             ;; TODO: File bug with Sourcehut to stop from rendering <head>
-             #'ignore))
-    (org-export-to-file 'html "README.html")))
+  (org-export-to-file 'html "README.html" nil nil nil t))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]