* org-publish with latest changes?
@ 2010-10-13 8:54 Guy Wiener
2010-10-17 16:09 ` David Maus
0 siblings, 1 reply; 2+ messages in thread
From: Guy Wiener @ 2010-10-13 8:54 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 429 bytes --]
Hello everyone,
I am using org-publish to publish some document on my web page. I would
really like to add to that some notification of the latest changes - E.g.,
an RSS of the recently changed headlines. Is there some way to hack that? I
can use diff and get the textual changes from the latest version, but I
think that some way to mark the headlines whose content has changed will be
better.
Any ideas?
Thanks,
Guy Wiener
[-- Attachment #1.2: Type: text/html, Size: 523 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: org-publish with latest changes?
2010-10-13 8:54 org-publish with latest changes? Guy Wiener
@ 2010-10-17 16:09 ` David Maus
0 siblings, 0 replies; 2+ messages in thread
From: David Maus @ 2010-10-17 16:09 UTC (permalink / raw)
To: Guy Wiener; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1582 bytes --]
At Wed, 13 Oct 2010 10:54:01 +0200,
Guy Wiener wrote:
> Hello everyone,
> I am using org-publish to publish some document on my web page. I would
> really like to add to that some notification of the latest changes - E.g.,
> an RSS of the recently changed headlines. Is there some way to hack that? I
> can use diff and get the textual changes from the latest version, but I
> think that some way to mark the headlines whose content has changed will be
> better.
>
> Any ideas?
For publishing news about changed headlines you might use the
still-prepared-for-inclusion-damn-i-am-late-with-the-documentation Org
to Atom exporter[1]. It uses a property called :atom_updated: that is
used for the atom:updated element which indicates ... an update.
The somewhat tricky part is how to determine whether an entry has
changed or not. Maybe something like this:
- define the things that count as a changed entry (e.g. entry title,
text, scheduled date, keyword)
- write a function that grabs these things, does some normalization
(e.g. remove whitespace and control characters, remove text
properties), concat them together, and calculate a sha1 checksum
for the resulting string
- compare this sha1 with the previus sha1 which is stored in a define
property
- if the hashes differ, store the new one and update the atom_updated
property
- hook this function in the exporter, maybe via
`org-export-first-hook'
Best,
-- David
[1] http://ictsoc.de/code/org-atom.html
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-17 16:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-13 8:54 org-publish with latest changes? Guy Wiener
2010-10-17 16:09 ` David Maus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.