7

In order to publish projects consisting of multiple file types I add the following to my .emacs file: (setq org-publish-project-alist '(("myprojectorg" :base-directory "~/path/to/myproject/" :publishing-directory "/ssh:user@server:~/public_html/myproject/" :publishing-function org-html-publish-to-html :auto-preamble t ) ("...


6

A derived export backend is what you want. Here's an example where I've created a derived backend that changes the main html template. In org-export-define-derived-backend you provide an alist with the parts of the backend you want to override. In my backend I only wanted to replace the top level template. (org-export-define-derived-backend 'pd-html 'html ...


5

The :exclude property should do the trick. I think the reason the property is not working for you is because its value should form a regular expression, whereas your example is a glob pattern. Try using :exclude ".*/private/.*" or similar. See also the GNU Emacs Manual node on Regular Expressions for the particularities of its syntax.


4

This was non-obvious and the scenario of single/select files wasn't mentioned in any documentation specifically, so here's my solution: (only the last two lines are relevant) (setq org-publish-project-alist `(("project" :base-directory "~/org/" :publishing-function org-html-publish-to-html :publishing-directory "~/html_pub/" ...


4

Have a look at some of the HTML-derived exporter backends, for example https://github.com/yyr/org-mode/blob/master/contrib/lisp/ox-rss.el#L114. This uses org-export-define-derived-backend to customize how the HTML backend processes org files: (org-export-define-derived-backend 'rss 'html :menu-entry '(?r "Export to RSS" ((?R "As RSS buffer" ...


2

Images can be exported as Inline in two styles: with hyperlink or without hyperlink. Inline With Hyperlink [[file:./image.png][file:./image_thumbnail.png]] Note that it is mandatory to put a prefix like file: or http: in the Description portion ([file:./image_thumbnail.png]) of the above image link; otherwise ox-html will export that as a text hyperlink ...


2

You misinterpreted the meaning of the first argument of org-publish-org-to. It is the export backend and not a function. Because of the special structure of the pandoc backend replacing org-pandoc-export-to-html with 'pandoc does not work. If you do that you only get the filtered org stuff in your output files. The final translation to html is missing. (That ...


2

Try This I use this method to create code examples to write How To Use org-mode documentation. Wrap Code Blocks within a New org Code Block Use C-c C-v d to create empty org code block then add #+NAME: and :exports code headers to code block. #+NAME: org-code-block-wrapper #+begin_src org :exports code #+end_src Edit org block. Important: Click ...


1

It seems you can set the variable org-export-with-broken-links: org-export-with-broken-links is a variable defined in ‘ox.el’. Its value is t Original value was nil Documentation: Non-nil means do not raise an error on broken links. When this variable is non-nil, broken links are ignored, without stopping the export process. If it is ...


1

The solution I found was to write my own publishing function. The function is a wrapper around the org-latex-publish-to-pdf that also calls rename-file. (defun publish-function-counselor-appointments (PLIST FILENAME PUB-DIR) (org-latex-publish-to-pdf PLIST FILENAME PUB-DIR) (rename-file "~/appointments.pdf" "~/counselor_appointments.pdf")) My org-...


1

Maybe you should redefine this function like this: (defun org-wiki--org-link (path desc backend) "Creates an html org-wiki pages when exporting to html. Example: The hyperlink [[wiki:Linux][Dealing with Linux]] will be exported to <a href='Linux.html'>Dealing with Linux</a>" (cl-case backend (html (format "<a href='%s.html'>...


1

You probably need to add a pandoc backend like this: (org-link-set-parameters "wiki" :export (lambda (path desc backend) (message-box "%s" backend) (cond ((eq backend 'html) (format "<a href='%s.html'>%s</a>" path (or desc path))) ((eq backend 'pandoc) (format "<a href='%s.html'>%s</a>...


1

I am thinking about the same thing. I think the issue is that org-reveal-export-to-html is not a defined publishing function. There is a nice solution provided by Matt Price and it works on my system as well. Here it is: Define a publishing function that connects reveal to org-publish. (defun mwp-org-reveal-publish-to-html (plist filename pub-dir) "...


1

Customise user-mail-address to add your own Email address. All Emacs packages and extension including Org Mode will pick it up.


1

This is going to be a long post, so bear with me. The only Emacs way I see so far is to use .dir-locals.el and keep it relatively clean so you don't have to approve evals every time you change something. Presumably you trust your repos:-) The rest is to give you an idea... from newb to newbs. ((org-mode (eval . (my-mega-project-setup)) )) You got to ...


1

According to the description of (org-publish) function: (org-publish PROJECT &optional FORCE ASYNC) Publish PROJECT. PROJECT is either a project name, as a string, or a project alist (see `org-publish-project-alist' variable). So I created an emacs-lisp-script following this scheme: #!/usr/bin/emacs --script (package-initialize) (...


1

I have written two org-mode exporter for pelican and hexo for my self (no public release yet, just opensource on GitHub) In your case, the best way is write a org-mode exporter based on ox-html, I don't know if anyone did it for jekyll but you can based on my org-hexo to achieved this. link: https://github.com/coldnew/org-hexo https://github.com/coldnew/...


1

The details are in the org-mode manual but I missed it. Basically you need to ensure you don't add a title. So: #+ATTR_HTML: :alt Architectural overview :style border:none; [[file:diagrams/RISU_Architecture_Overview.svg]]


Only top voted, non community-wiki answers of a minimum length are eligible