Browse Source

Added publishing configuration

Samuel W. Flint 7 years ago
parent
commit
3718d89ac1
1 changed files with 23 additions and 0 deletions
  1. 23 0
      org-publish-project.el

+ 23 - 0
org-publish-project.el

@@ -0,0 +1,23 @@
+(defvar *comm286-publish-directory*
+  "/ssh:swflint@kernighan.flintfam.org:/var/www/samflint.com/comm286/")
+
+(define-org-publish-project "comm286-content"
+  :base-directory "~/School/comm286/"
+  :publishing-directory *comm286-publish-directory*
+  :base-extension "org"
+  :recursive t
+  :publishing-function 'org-html-publish-to-html
+  :section-numbers nil
+  :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://samflint.com/style/htmlize.css\"/>
+<link rel=\"stylesheet\" type=\"text/css\" href=\"http://samflint.com/style/style.css\"/>")
+
+(define-org-publish-project "comm286-attach"
+  :base-directory "~/School/comm286/"
+  :publishing-directory *comm286-publish-directory*
+  :base-extension (rx (or "docx"))
+  :publishing-function 'org-publish-attachment)
+
+(define-org-publish-project "comm286"
+  :base-directory "~/School/comm286/"
+  :publishing-directory *comm286-publish-directory*
+  :components '("comm286-content" "comm286-attach"))