emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Wolfram Volpi <wolf_volpi@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: Org publishing questions: 1) JavaScript, 2) html page title
Date: Fri, 26 Apr 2019 14:39:00 +0000 (UTC)	[thread overview]
Message-ID: <1337950734.956444.1556289540328@mail.yahoo.com> (raw)
In-Reply-To: 1337950734.956444.1556289540328.ref@mail.yahoo.com


[-- 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 --]

           reply	other threads:[~2019-04-26 14:39 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <1337950734.956444.1556289540328.ref@mail.yahoo.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1337950734.956444.1556289540328@mail.yahoo.com \
    --to=wolf_volpi@yahoo.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).