Prechádzať zdrojové kódy

Update HTML options names in the manual and ox-html.el.

* org.texi (CSS support): (In-buffer settings): Update HTML options
names.

* ox-html.el (html): Update HTML options names.
Bastien Guerry 12 rokov pred
rodič
commit
516f0df844
2 zmenil súbory, kde vykonal 16 pridanie a 13 odobranie
  1. 14 11
      doc/org.texi
  2. 2 2
      lisp/ox-html.el

+ 14 - 11
doc/org.texi

@@ -10427,22 +10427,25 @@ p.footnote          @r{footnote definition paragraph, containing a footnote}
 @end example
 
 @vindex org-html-style-default
-@vindex org-html-style-include-default
-@vindex org-html-style
-@vindex org-html-style-default
+@vindex org-html-head-include-default-style
+@vindex org-html-head
+@vindex org-html-head-extra
+@cindex #+HTML_INCLUDE_STYLE
 Each exported file contains a compact default style that defines these
 classes in a basic way@footnote{This style is defined in the constant
 @code{org-html-style-default}, which you should not modify.  To turn
 inclusion of these defaults off, customize
-@code{org-html-style-include-default}}.  You may overwrite these
-settings, or add to them by using the variables @code{org-html-style}
-(for Org-wide settings) and @code{org-html-style-extra} (for more
-fine-grained settings, like file-local settings).  To set the latter variable
-individually for each file, you can use
+@code{org-html-head-include-default-style} or set @code{#+HTML_INCLUDE_STYLE}
+to nil on a per-file basis.}.  You may overwrite these settings, or add to
+them by using the variables @code{org-html-head} and
+@code{org-html-head-extra}.  You can override the global values of these
+variables for each file by using these keywords:
 
-@cindex #+HTML_STYLE
+@cindex #+HTML_HEAD
+@cindex #+HTML_HEAD_EXTRA
 @example
-#+HTML_STYLE: <link rel="stylesheet" type="text/css" href="stylesheet.css" />
+#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="style1.css" />
+#+HTML_HEAD_EXTRA: <link rel="alternate stylesheet" type="text/css" href="style2.css" />
 @end example
 
 @noindent
@@ -14745,7 +14748,7 @@ This line contains the formulas for the table directly above the line.
 @item #+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+DATE:,
 @itemx #+OPTIONS:, #+BIND:,
 @itemx #+DESCRIPTION:, #+KEYWORDS:,
-@itemx #+LaTeX_HEADER:, #+HTML_STYLE:, #+HTML_LINK_UP:, #+HTML_LINK_HOME:,
+@itemx #+LaTeX_HEADER:, #+HTML_HEAD:, #+HTML_LINK_UP:, #+HTML_LINK_HOME:,
 @itemx #+SELECT_TAGS:, #+EXCLUDE_TAGS:
 These lines provide settings for exporting files.  For more details see
 @ref{Export options}.

+ 2 - 2
lisp/ox-html.el

@@ -120,8 +120,8 @@
    (:html-preamble nil "html-preamble" org-html-preamble)
    (:html-head "HTML_HEAD" nil org-html-head newline)
    (:html-head-extra "HTML_HEAD_EXTRA" nil org-html-head-extra newline)
-   (:html-head-include-default-style nil nil org-html-head-include-default-style)
-   (:html-head-include-scripts nil nil org-html-head-include-scripts)
+   (:html-head-include-default-style "HTML_INCLUDE_STYLE" nil org-html-head-include-default-style newline)
+   (:html-head-include-scripts "HTML_INCLUDE_SCRIPTS" nil org-html-head-include-scripts newline)
    (:html-table-tag nil nil org-html-table-tag)
    ;; Redefine regular options.
    (:creator "CREATOR" nil org-html-creator-string)