Documenting scripts loading before reveal init. #473

This commit is contained in:
Yujie Wen 2022-02-05 19:21:50 +08:00
parent 844ef73957
commit 83da0e859e
1 changed files with 8 additions and 5 deletions

View File

@ -810,7 +810,11 @@ This feature is turned off by default and needs to be switched on with ~org-reve
Set =REVEAL_EXTRA_SCRIPT_SRC= to script file path to load extra Set =REVEAL_EXTRA_SCRIPT_SRC= to script file path to load extra
script sources. In case of multiple script files, specify each of script sources. In case of multiple script files, specify each of
them by one =REVEAL_EXTRA_SCRIPT_SRC= line. them by one =REVEAL_EXTRA_SCRIPT_SRC= line. The specified scripts
is loaded after Reveal.js initialization.
Scripts that must be loaded before Reveal.js initialization can be
set by one or more =REVEAL_EXTRA_SCRIPT_BEFORE_SRC= lines.
#+BEGIN_SRC org #+BEGIN_SRC org
,#+REVEAL_EXTRA_CSS: url-to-custom-stylesheet.css ,#+REVEAL_EXTRA_CSS: url-to-custom-stylesheet.css
@ -818,10 +822,9 @@ This feature is turned off by default and needs to be switched on with ~org-reve
#+END_SRC #+END_SRC
Same setup can be done globally by customize variables Same setup can be done globally by customize variables
~org-reveal-extra-css~ and ~org-reveal-extra-script-src~. In case ~org-reveal-extra-css~, ~org-reveal-extra-script-src~ and
of multiple script files, organize the script file names as a list ~org-reveal-extra-script-before-src~. In case of multiple script
and set ~org-reveal-extra-script-src~ to the list. files, organize the script file names as a list.
** Select Built-In Scripts ** Select Built-In Scripts