org-manual.org: Two enhancements

* doc/org-manual.org (JavaScript supported display of web pages):
Small rephrasing.
(Exporting to minimal HTML): New section.

Reported-by: Paramjit Singh <paramjitrohits@gmail.com>
This commit is contained in:
Bastien 2020-09-05 11:44:43 +02:00
parent 2af977016f
commit ed8369aff2
1 changed files with 35 additions and 11 deletions

View File

@ -13073,17 +13073,15 @@ simpler ways of customizing as described above.
:END: :END:
Sebastian Rose has written a JavaScript program especially designed to Sebastian Rose has written a JavaScript program especially designed to
enhance the web viewing experience of HTML files created with Org. allow two different ways of viewing HTML files created with Org. One
This program enhances large files in two different ways of viewing. is an /Info/-like mode where each section is displayed separately and
One is an /Info/-like mode where each section is displayed separately navigation can be done with the {{{kbd(n)}}} and {{{kbd(p)}}} keys, and some other
and navigation can be done with the {{{kbd(n)}}} and {{{kbd(p)}}} keys as well, press {{{kbd(?)}}} for an overview of the available keys. The
keys, and some other keys as well, press {{{kbd(?)}}} for an overview second one has a /folding/ view, much like Org provides inside Emacs.
of the available keys. The second one has a /folding/ view, much like The script is available at https://orgmode.org/org-info.js and the
Org provides inside Emacs. The script is available at documentation at https://orgmode.org/worg/code/org-info-js/. The
https://orgmode.org/org-info.js and the documentation at script is hosted on https://orgmode.org, but for reliability, prefer
https://orgmode.org/worg/code/org-info-js/. The script is hosted on installing it on your own web server.
https://orgmode.org, but for reliability, prefer installing it on your
own web server.
To use this program, just add this line to the Org file: To use this program, just add this line to the Org file:
@ -15597,6 +15595,32 @@ tables and lists in foreign buffers. For example, in an HTML buffer,
write a list in Org syntax, select it, and convert it to HTML with write a list in Org syntax, select it, and convert it to HTML with
{{{kbd(M-x org-html-convert-region-to-html)}}}. {{{kbd(M-x org-html-convert-region-to-html)}}}.
*** Exporting to minimal HTML
:PROPERTIES:
:DESCRIPTION: Exporting HTML without CSS, Javascript, etc.
:ALT_TITLE: Bare HTML
:END:
If you want to output a minimal HTML file, with no CSS, no Javascript,
no preamble or postamble, here are the variable you would need to set:
#+vindex: org-html-head
#+vindex: org-html-head-extra
#+vindex: org-html-head-include-default-style
#+vindex: org-html-head-include-scripts
#+vindex: org-html-preamble
#+vindex: org-html-postamble
#+vindex: org-html-use-infojs
#+begin_src emacs-lisp
(setq org-html-head ""
org-html-head-extra ""
org-html-head-include-default-style nil
org-html-head-include-scripts nil
org-html-preamble nil
org-html-postamble nil
org-html-use-infojs nil)
#+end_src
* Publishing * Publishing
:PROPERTIES: :PROPERTIES:
:DESCRIPTION: Create a web site of linked Org files. :DESCRIPTION: Create a web site of linked Org files.