emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: chris <numbchild@gmail.com>
To: Emacs Org-mode <emacs-orgmode@gnu.org>
Subject: How to publish a whole website resource with org-publish, and how to set :components () ?
Date: Wed, 20 Nov 2013 13:54:53 +0800	[thread overview]
Message-ID: <20131120055453.GA27590@stardiviner> (raw)

[-- Attachment #1: Type: text/plain, Size: 2377 bytes --]

1. What I want to do:

I want to publish *all* my resources(which I choose) to public.
It means any filetype files under the :base-directory.
And I hope my org file inline source code, babel, inline images etc can be
displayed correctly. Anyway, just like a normal website. (This sentence is not a
good description, but it is my purpose)

Here is what I set.

#+BEGIN_SRC emacs-lisp
(setq org-publish-project-alist
      '(("Blog"
         :base-directory "~/Org/Diary/Public"
         :recursive t
         )
        ("Wiki"
         :base-directory "~/Org/Wiki"
         :base-extension 'any
         ;; :exclude
         ;; :include
         :recursive t
         )
        ;; ("Gallery"
        ;;  ;; TODO :base-directory "~/Org/"
        ;;  :recursive t
        ;;  )
        ("Website"
         :components ("Blog" "Gallery")
         ;; TODO can I set those variable at here for all of above publishings ?
         :publishing-directory "~/WWW/Org-publish"
         :publishing-function org-html-publish-to-html
         :htmlized-source t
         :section-number t
         ;; :language
         ;;; [ author ]
         :with-author "stardiviner"
         :with-email "numbchild@gmail.com"
         :with-footnotes "Get over the world!"
         ;; :with-latex
         :with-sub-superscript t
         :with-tables t
         :with-tags t
         ;;; [ tasks ]
         ;; :with-tasks t
         ;; :with-planning
         :with-todo-keywords
         ;; :with-priority
         :with-timestamps t
         ;; :with-toc
         ;;; [ html ]
         :html-doctype "html5"
         :html-xml-declaration t
         ;;; [ sitemap ]
         :auto-sitemap t
         ;; When non-nil, remove filenames' extensions from the generated sitemap. Useful to have cool URIs.
         :sitemap-sans-extension t
         ;;; [ index ]
         :makeindex t
         )
        )
      )
#+END_SRC

2. Question one:
Can I set some properties in the *meta-project* (which has :components) ?

3. Question two:
I feel my setting is not good. Does anyone have a good template for my situation
to let me reference?

I have checked out http://orgmode.org documentation, and it's example.


-- 
[ stardiviner ] Kill the world if you want. That's it.
IRC(freenode): stardiviner     \\ Twitter:  @numbchild \\

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

                 reply	other threads:[~2013-11-20  5:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20131120055453.GA27590@stardiviner \
    --to=numbchild@gmail.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).