Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 1.49 KB

ome-publish.org

File metadata and controls

40 lines (35 loc) · 1.49 KB

Oh My Emacs Publish

This is part of the oh-my-emacs.

This file is used to publish the oh-my-emacs documentation to .html in the doc/ directory.

This code defines the ome-project which is used to publish the documentation for the oh-my-emacs to html.

(unless (boundp 'org-publish-project-alist)
  (setq org-publish-project-alist nil))

(let* ((this-dir (file-name-directory (or load-file-name buffer-file-name))))
  ;; define the org-publish-project for the oh-my-emacs
  (setq org-publish-project-alist
        `(("oh-my-emacs"
           :components ("ome-index" "ome-core" "ome-modules")
           :base-extension "org")
          ("ome-index"
           :base-directory ,this-dir
           :publishing-directory ,(expand-file-name "doc" this-dir)
           :index-filename "ome.org"
           :html-postamble nil)
          ("ome-core"
           :base-directory ,(expand-file-name "core" this-dir)
           :publishing-directory ,(expand-file-name "doc/core" this-dir)
           :index-filename "ome.org"
           :html-postamble nil)
          ("ome-modules"
           :base-directory ,(expand-file-name "modules" this-dir)
           :publishing-directory ,(expand-file-name "doc/modules" this-dir)
           :index-filename "ome.org"
           :html-postamble nil)))
  ;; publish the oh-my-emacs
  (org-publish-project "oh-my-emacs" 'force))