emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org publishing questions: 1) JavaScript, 2) html page title
       [not found] <1337950734.956444.1556289540328.ref@mail.yahoo.com>
@ 2019-04-26 14:39 ` Wolfram Volpi
  0 siblings, 0 replies; only message in thread
From: Wolfram Volpi @ 2019-04-26 14:39 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1138 bytes --]

I am using org-mode publishing to generate html files from org files.
The attached example mostly works.
The resulting html file is published at https://wolf-test.netlify.com/f1.html
I am using Emacs 26.1 with Evil Spacemacs 0.200.13 and org-mode version 1.9.1 

I have the following questions about Org publishing:
1)
Org publishing generates unused JavaScript functions:

line 42 CodeHighlightOn(elem, id)
line 52 CodeHighlightOff(elem, id)

Is there a way to publish the pages without generating any JavaScript?

2)
Org publishing generates a page title which looks like this:

<title>&lrm;</title>

How to make it like this?:

<title>file name</title>


3)
Various org-publishing options are listed in org-mode manual "13.1.5 Options for the exporters" .
What are the left and right columns for?
Where is the documentation that explains how to use the options?
For example, "title" is listed but I can't figure out how to use them:


‘:with-title’             ‘org-export-with-title’


org-export-with-title is in the Emacs help as a variable but it doesn't say how to use it.


[-- Attachment #1.2: Type: text/html, Size: 2460 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org-publish-project-alist.el --]
[-- Type: text/x-emacs-lisp, Size: 1649 bytes --]

(require 'ox-publish)    ;C-x C-e to load ox-publish

(setq org-publish-project-alist
      '(
("org-source"                         ;org-source files to be transformed into html files
;from org manual, 13.3.1 Example: simple publishing configuration
;             and 13.3.2 Example: complex publishing configuration
 :base-directory "~/Documents/developer/editors/emacs/org-publish/org/"
 :base-extension "org"
 :publishing-directory "~/Documents/developer/editors/emacs/org-publish/html/"
 :publishing-function org-html-publish-to-html
 :headline-levels 4
 :section-numbers nil                 ;nil pass, generated headings without sections numbers
 :with-toc nil                        ;nil pass, did not generate TOC
 :html-head "<style>
    body {background-color: linen; }
    p {font-family: Arial, Verdana, Sans-serif; }
</style>"

;from properties listed in left column of 13.1.5 Options for the exporters
 :with-title "f1"                     ;fail, this had no effect
 :html-head-include-default-style nil ;nil pass, did not generate 160-lines of commented style
 :html-postamble nil                  ;nil pass, did not generate postamble
 )

("org-static"
 :base-directory "~/Documents/developer/editors/emacs/org-publish/org/"
 :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
 :publishing-directory "~/Documents/developer/editors/emacs/org-publish/html/"
 :publishing-function org-publish-attachment
 )

("org" :components ("org-source" "org-static"))
      ))                 ;C-x C-e and repeat after every change to org-publish-project-alist
                         ;to publish: SPC u SPC SPC org-publish, org

[-- Attachment #3: f1.org --]
[-- Type: application/vnd.lotus-organizer, Size: 32 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-26 14:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1337950734.956444.1556289540328.ref@mail.yahoo.com>
2019-04-26 14:39 ` Org publishing questions: 1) JavaScript, 2) html page title Wolfram Volpi

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).