emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] manual: Fix publish stylesheet
@ 2021-04-19  4:47 Erik Hetzner
  2021-04-19  5:25 ` Erik Hetzner
  0 siblings, 1 reply; 3+ messages in thread
From: Erik Hetzner @ 2021-04-19  4:47 UTC (permalink / raw)
  To: emacs-orgmode

* doc/org-manual.org (Publishing sample configuration):
* doc/org-guide.org (Publishing):
Fix stylesheet setting in publish: :style is not a valid option; use
:html-head instead.
---
A small fix for the manual which I believe is necessary (:style does not appear to be a valid option any more). My copyright assignment paperwork is on file. Thank you!

 doc/org-guide.org  | 6 +++---
 doc/org-manual.org | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/doc/org-guide.org b/doc/org-guide.org
index ea3040bba..3715982f6 100644
--- a/doc/org-guide.org
+++ b/doc/org-guide.org
@@ -2337,9 +2337,9 @@ example:
          :publishing-directory "~/public_html"
          :section-numbers nil
          :table-of-contents nil
-         :style "<link rel=\"stylesheet\"
-                href=\"../other/mystyle.css\"
-                type=\"text/css\"/>")))
+         :html-head "<link rel=\"stylesheet\"
+                    href=\"../other/mystyle.css\"
+                    type=\"text/css\"/>")))
 #+end_src
 
 - {{{kbd(C-c C-e P x)}}} ::
diff --git a/doc/org-manual.org b/doc/org-manual.org
index 914649f6e..593c848cf 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -16325,9 +16325,9 @@ directory on the local machine.
          :publishing-directory "~/public_html"
          :section-numbers nil
          :table-of-contents nil
-         :style "<link rel=\"stylesheet\"
-                href=\"../other/mystyle.css\"
-                type=\"text/css\"/>")))
+         :html-head "<link rel=\"stylesheet\"
+                    href=\"../other/mystyle.css\"
+                    type=\"text/css\"/>")))
 #+end_src
 
 *** Example: complex publishing configuration
-- 
2.30.2



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] manual: Fix publish stylesheet
  2021-04-19  4:47 [PATCH] manual: Fix publish stylesheet Erik Hetzner
@ 2021-04-19  5:25 ` Erik Hetzner
  2021-04-19  8:09   ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Erik Hetzner @ 2021-04-19  5:25 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 62 bytes --]

Oops, noticed a few additional problems. See attached patch.


[-- Attachment #2: 0001-manual-Fix-publish-options.patch --]
[-- Type: text/plain, Size: 2079 bytes --]

From 14de709f224a45cb1beee5b1c1444b1454161891 Mon Sep 17 00:00:00 2001
From: Erik Hetzner <egh@e6h.org>
Date: Sun, 18 Apr 2021 21:47:04 -0700
Subject: [PATCH] manual: Fix publish options

* doc/org-manual.org (Publishing sample configuration):
* doc/org-guide.org (Publishing):
Fix stylesheet setting in publish: :style is not a valid option; use
:html-head instead. :table-of-contents is not a valid option; use
:with-toc instead. :publishing-function is required.
---
 doc/org-guide.org  | 9 +++++----
 doc/org-manual.org | 8 ++++----
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/doc/org-guide.org b/doc/org-guide.org
index ea3040bba..3daf8d3c7 100644
--- a/doc/org-guide.org
+++ b/doc/org-guide.org
@@ -2334,12 +2334,13 @@ example:
 (setq org-publish-project-alist
       '(("org"
          :base-directory "~/org/"
+         :publishing-function org-html-publish-to-html
          :publishing-directory "~/public_html"
          :section-numbers nil
-         :table-of-contents nil
-         :style "<link rel=\"stylesheet\"
-                href=\"../other/mystyle.css\"
-                type=\"text/css\"/>")))
+         :with-toc nil
+         :html-head "<link rel=\"stylesheet\"
+                    href=\"../other/mystyle.css\"
+                    type=\"text/css\"/>")))
 #+end_src
 
 - {{{kbd(C-c C-e P x)}}} ::
diff --git a/doc/org-manual.org b/doc/org-manual.org
index 914649f6e..b4eff22ad 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -16324,10 +16324,10 @@ directory on the local machine.
          :publishing-function org-html-publish-to-html
          :publishing-directory "~/public_html"
          :section-numbers nil
-         :table-of-contents nil
-         :style "<link rel=\"stylesheet\"
-                href=\"../other/mystyle.css\"
-                type=\"text/css\"/>")))
+         :with-toc nil
+         :html-head "<link rel=\"stylesheet\"
+                    href=\"../other/mystyle.css\"
+                    type=\"text/css\"/>")))
 #+end_src
 
 *** Example: complex publishing configuration
-- 
2.30.2


[-- Attachment #3: Type: text/plain, Size: 1885 bytes --]


On Sun, 18 Apr 2021 21:47:04 -0700,
Erik Hetzner <egh@e6h.org> wrote:
> 
> * doc/org-manual.org (Publishing sample configuration):
> * doc/org-guide.org (Publishing):
> Fix stylesheet setting in publish: :style is not a valid option; use
> :html-head instead.
> ---
> A small fix for the manual which I believe is necessary (:style does not appear to be a valid option any more). My copyright assignment paperwork is on file. Thank you!
> 
>  doc/org-guide.org  | 6 +++---
>  doc/org-manual.org | 6 +++---
>  2 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/doc/org-guide.org b/doc/org-guide.org
> index ea3040bba..3715982f6 100644
> --- a/doc/org-guide.org
> +++ b/doc/org-guide.org
> @@ -2337,9 +2337,9 @@ example:
>           :publishing-directory "~/public_html"
>           :section-numbers nil
>           :table-of-contents nil
> -         :style "<link rel=\"stylesheet\"
> -                href=\"../other/mystyle.css\"
> -                type=\"text/css\"/>")))
> +         :html-head "<link rel=\"stylesheet\"
> +                    href=\"../other/mystyle.css\"
> +                    type=\"text/css\"/>")))
>  #+end_src
>  
>  - {{{kbd(C-c C-e P x)}}} ::
> diff --git a/doc/org-manual.org b/doc/org-manual.org
> index 914649f6e..593c848cf 100644
> --- a/doc/org-manual.org
> +++ b/doc/org-manual.org
> @@ -16325,9 +16325,9 @@ directory on the local machine.
>           :publishing-directory "~/public_html"
>           :section-numbers nil
>           :table-of-contents nil
> -         :style "<link rel=\"stylesheet\"
> -                href=\"../other/mystyle.css\"
> -                type=\"text/css\"/>")))
> +         :html-head "<link rel=\"stylesheet\"
> +                    href=\"../other/mystyle.css\"
> +                    type=\"text/css\"/>")))
>  #+end_src
>  
>  *** Example: complex publishing configuration
> -- 
> 2.30.2
> 
> 
> 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] manual: Fix publish stylesheet
  2021-04-19  5:25 ` Erik Hetzner
@ 2021-04-19  8:09   ` Nicolas Goaziou
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2021-04-19  8:09 UTC (permalink / raw)
  To: Erik Hetzner; +Cc: emacs-orgmode

Hello,

Erik Hetzner <egh@e6h.org> writes:

> Subject: [PATCH] manual: Fix publish options
>
> * doc/org-manual.org (Publishing sample configuration):
> * doc/org-guide.org (Publishing):
> Fix stylesheet setting in publish: :style is not a valid option; use
> :html-head instead. :table-of-contents is not a valid option; use
> :with-toc instead. :publishing-function is required.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-19  8:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-19  4:47 [PATCH] manual: Fix publish stylesheet Erik Hetzner
2021-04-19  5:25 ` Erik Hetzner
2021-04-19  8:09   ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).