summaryrefslogtreecommitdiff
path: root/www/www.org
diff options
context:
space:
mode:
Diffstat (limited to 'www/www.org')
-rw-r--r--www/www.org35
1 files changed, 31 insertions, 4 deletions
diff --git a/www/www.org b/www/www.org
index 980f3e6..c51bf76 100644
--- a/www/www.org
+++ b/www/www.org
@@ -17,6 +17,37 @@ Publishing has been contributed to Org by David O’Toole.
Publishing needs significant configuration to specify files, destination and
many other properties of a project.
+#+NAME: www-test-data
+#+BEGIN_SRC elisp :tangle www-test-data.el
+ ;; -*- lexical-binding: t; -*-
+
+ ( load "~/src/channel/www/build-site" )
+
+ ( print "publish-test-1" )
+
+ ( publish :data-projects ( list "test.pl" "example.org" ) )
+
+ ( print "publish-test-2" )
+
+ ( publish
+
+ :data-projects
+ ( list "test.pl"
+
+ :property1
+ "value1"
+
+ :property2
+ "value2" ) )
+
+ ( print "publish-test-3" )
+
+ ( publish "test.pl"
+
+ :components
+ ( list "example.pl" "example.org" ) )
+#+END_SRC
+
*** [[https://orgmode.org/manual/Project-alist.html][The variable =org-publish-project-alist=]]
Publishing is configured almost entirely through setting the value of one
@@ -45,8 +76,6 @@ are also published, in the sequence given.
#+BEGIN_SRC elisp :tangle build-site.el
;; -*- lexical-binding: t; -*-
- ( require 'ox-publish )
-
( defun publication-object ( )
( let ( ( object-projects ( list ) )
( org-publish-project-alist ( list ) )
@@ -84,8 +113,6 @@ are also published, in the sequence given.
( funcall object-compose )
( funcall object-report )
( ) ) )
-
- ( publish :data-projects ( list "marekpasnikowski.pl" ) )
#+END_SRC
* EOF