From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Announcing org-jekyll Date: Wed, 3 Feb 2010 16:17:00 +0100 Message-ID: <04AD22C2-6784-48E7-A86B-A68289659AA1@uva.nl> References: <55bd243d1001291516m2b3fe054u8da0f64edf6b8d25@mail.gmail.com> <243263DF-04B0-4889-A72D-CBEB7E3C87DD@uva.nl> <87aavsn1xn.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NchdS-0000YS-Hc for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 10:59:22 -0500 Received: from [199.232.76.173] (port=42583 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NchdR-0000Xw-VE for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 10:59:22 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NchdP-0007VV-4N for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 10:59:21 -0500 Received: from pony.ic.uva.nl ([145.18.40.181]:47656) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NchdN-0007V0-Qo for emacs-orgmode@gnu.org; Wed, 03 Feb 2010 10:59:18 -0500 In-Reply-To: <87aavsn1xn.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: org-mode Mailing List On Feb 1, 2010, at 9:20 PM, Eric Schulte wrote: > So to jump onto this thread that Carsten unwittingly brought back to > life ;) > > I have been exporting org-mode subtrees to jekyll blog posts on a > couple > of projects, and I've found it really handy > - resulting in more attractive web pages than I'm able to generate > directly from org > - for the liquid syntax which jekyll provides for programmatic > generation of elements of html files > - and for the ability to automatically generate xml/atom/rss from my > projects > > One issue that I've not been able to solve is the resolution of > intra-file links when I'm exporting subtrees to external files. For > example say I have the following file > > ,----[example.org] > | * top > | ** subtopic > | :PROPERTIES: > | :CUSTOM_ID: subtopic > | :END: > | stuff > | > | ** another topic > | see stuff in [[subtopic]] > `---- > > after I've exported the subtrees to separate files for processing by > jekyll, all of my intra-file links are broken. I wonder if a > generalization of this issue might have wide enough appeal to merit an > org-mode based solution. Specifically would it be possible to add > support for exporting subtrees to external files, and updating all > links > within the subtree based on the new location of the exported file > (i.e. adjusting all intra-file links to point to the original file)? > > Taking the above idea one step further, if say each subtree has an > "EXPORT_FILE_NAME" property then it would be great to support link > maintenance during export of all such subtrees in a file, so for > example > the following file > > ,----[example.org] > | * top > | > | ** section one > | :PROPERTIES: > | :EXPORT_FILE_NAME: section-one > | :END: > | > | *** subtopic > | :PROPERTIES: > | :CUSTOM_ID: subtopic > | :END: > | stuff > | > | ** another topic > | :PROPERTIES: > | :EXPORT_FILE_NAME: another-topic > | :END: > | see stuff in [[subtopic]] > `---- > > could export to > > ,----[section-one.org] > | * section one > | :PROPERTIES: > | :EXPORT_FILE_NAME: section-one > | :END: > | > | ** subtopic > | :PROPERTIES: > | :CUSTOM_ID: subtopic > | :END: > | stuff > `---- > > and > > ,----[another-topic.org] > | * another topic > | :PROPERTIES: > | :EXPORT_FILE_NAME: another-topic > | :END: > | see stuff in [[file:section-one.org::subtopic][subtopic]] > `---- > > I hope the above example is clear. While writing this up I noticed > the > existence of an "EXPORT_FILE_NAME" property however I was unable to > use > it to successfully export a subtree. It may be that the behavior I've > described is only useful in the case of jekyll export, in which case I > may try my hand at hacking a solution together. Either way I'd be > interested to hear peoples thoughts or if I'm missing some existing > functionality. The subtree need to be selected with transient mark active - at least temporarily. - Carsten > > Thanks -- Eric > > Carsten Dominik writes: > >> Sorry, this reply was in the wrong thread and is therefore >> meaningless. >> >> - Carsten >> >> On Feb 1, 2010, at 9:38 AM, Carsten Dominik wrote: >> >>> Hi Juan, >>> >>> I like this idea, and I have implemented it. Please use the >>> property HTML_CONTAINER_CLASS. And let me know if it works! >>> >>> HTH >>> >>> - Carsten >>> >>> On Jan 30, 2010, at 12:16 AM, Juan Reyero wrote: >>> >>>> Greetings, >>>> >>>> I've been toying around with a small package to export entries as a >>>> Jekyll blog. It is different from other approaches I am aware of >>>> in >>>> that it will find your blog entries anywhere in the files belonging >>>> to >>>> a project, and it will pass properties along to Jekyll as yaml >>>> front >>>> matter. It also includes some support for localization. >>>> >>>> Full description: http://juanreyero.com/open/org-jekyll/ >>>> Source code: http://github.com/juanre/org-jekyll >>>> >>>> Best regards, >>>> >>>> Juan >> >> - Carsten >> >> >> >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten