Integrate input files from external sync folder

10 views
Skip to first unread message

Tim Michelsen

unread,
Feb 29, 2016, 6:06:30 PM2/29/16
to nikola-...@googlegroups.com
Hello Nikola community,

what is the best practice to include posts from other (external) folders?

Say, you have a tablet pc and would like to write a post from that one
or from a different computer.
Easiest would be to write a text file, save it in a owncloud /dropbox
folder and let Nikola pull it from that.

Ideally, the program would be able to "watch" also files in an outside
folder such as OwnCloud / Dropbox.

I tried this with the following setting:

("/home/USER/ownCloud/blog/posts/*.rst", "posts", "post.tmpl")

Nikola builds with no error but does not include these files into the
output.

Is this scenario actually possible?
And how do I need to set-up my configuration files for this use case?

Thanks in advance,
Timmie

Chris Warrick

unread,
Mar 1, 2016, 10:23:24 AM3/1/16
to Nikola—Discuss
The easiest approach is to put your entire Nikola site in
ownCloud/Dropbox/a git repository. That way, you can just use a
regular 'posts/*.rst' path. It also serves as a backup of your site
source so you can get back to blogging in the event of a catastrophic
disk failure.
Just make sure to use the same version of Nikola and Python on all
computers (unless you can ignore .doit.db and cache/ in your sync
solution)

We’ve never thought of supporting directories outside of the site
root, so it might be broken. If the workflow I proposed does not work
for you, we could probably work out something else.

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16
Reply all
Reply to author
Forward
0 new messages