02:16:57 -GitHub[coil]:#nikola- [coil] s2hc-johan opened pull request #34: Fixing wrong value names documentation (master...doc_fix) http://git.io/Niqq 03:04:35 -GitHub[coil]:#nikola- [coil] s2hc-johan opened pull request #35: Bug fix. starting empty nikola site fails (master...empty_page_error) http://git.io/NiZ6 09:15:16 -GitHub[coil]:#nikola- [coil] Kwpolska pushed 2 new commits to master: http://git.io/NPUK 09:15:19 -GitHub[coil]:#nikola- coil/master 60d2893 Johan Sommerfeld: Bug fix. When starting devserver with an empty nikola site, you'll get an exception thrown. 09:15:19 -GitHub[coil]:#nikola- coil/master 4b0e659 Chris Warrick: Merge pull request #35 from s2hc-johan/empty_page_error... 11:29:43 <s2hc_johan> /buffer 6 14:38:43 <erdgeist> Does anyone have a clue what went wrong, when I get this? 14:38:45 <erdgeist> File "/Library/Python/2.7/site-packages/IPython/nbconvert/exporters/export.py", line 8, in <module> 14:38:48 <erdgeist> from IPython.nbformat import NotebookNode 14:38:50 <erdgeist> File "/Library/Python/2.7/site-packages/IPython/nbformat/__init__.py", line 13, in <module> 14:38:53 <erdgeist> from . import v1 14:38:56 <erdgeist> ImportError: cannot import name v1 14:39:57 <ChrisWarrick> erdgeist: your ipython is botched, try reinstalling 14:41:27 <erdgeist> done, problem persists 14:41:57 <ChrisWarrick> erdgeist: can you run ipython independently of Nikola? 14:42:07 <ChrisWarrick> erdgeist: well, nbconvert 14:43:37 <erdgeist> when trying to import it manually, it would tell me that jsonschema is not installed 14:43:59 <erdgeist> thanks 15:36:38 <erdgeist> Now I am stuck again. I have added a "recent blog posts" entry to my front page: 15:36:39 <erdgeist> .. post-list:: :stop: 5 :template: list_blogposts.tmpl 15:37:15 <erdgeist> with the line in the template that renders the snippet looking like this: 15:37:15 <erdgeist> <a href="${post.permalink()}">${post.title(lang)}</a> ${post.text( teaser_only = true, show_read_more_link = true) } 15:37:46 <erdgeist> But that would fail with 15:37:46 <erdgeist> __M_writer(unicode(post.text( teaser_only = true, show_read_more_link = true) )) 15:37:49 <erdgeist> File "/Library/Python/2.7/site-packages/nikola/post.py", line 517, in text 15:37:52 <erdgeist> with io.open(file_name, "r", encoding="utf8") as post_file: 15:37:54 <erdgeist> IOError: [Errno 2] No such file or directory: 'cache/blog/2012/FileVault_Service-Post.html' 15:41:19 <erdgeist> even with a minimal ${post.text()} it would fail 15:58:52 <ChrisWarrick> erdgeist: why not use a real index? 15:59:55 <ChrisWarrick> erdgeist: this is an issue with dependencies, Nikola is not aware that this “recent blog posts” page depends on cached HTML existing (and fixing it without switching to real indexes might be hard/impossible) 16:05:45 <erdgeist> ChrisWarrick: how would I put a "real index" in a story? 16:06:07 <ChrisWarrick> erdgeist: the other way around: you put a story in the real index 16:06:21 <ChrisWarrick> erdgeist: or: edit index.tmpl to insert your custom text 16:08:09 <erdgeist> ChrisWarrick: I want my front page to list several things: my stories labelled "project", "music", "essays" and as a teaser some recent blog posts 16:09:07 <erdgeist> ChrisWarrick: and I am not going to keep editing my stories in the templates 16:09:36 <ChrisWarrick> erdgeist: and you are getting into dependency hell 16:10:52 <ChrisWarrick> erdgeist: This will require some fixes in post_list 16:12:03 <ChrisWarrick> erdgeist: I’ll work on a fix. Long story short, post_list would need to add every post used to the dependencies. 16:12:21 <erdgeist> as a side note: is there also a way to force truncating blog post texts to a maximum number of words/chars, if there's no teaser-end-marker? 16:13:17 <erdgeist> ChrisWarrick: Ohh, thank you 16:13:43 <ChrisWarrick> erdgeist: splitting mid-sentence or mid-word is not fun 16:15:00 <erdgeist> ChrisWarrick: Hmm, is no fun presenting or generating? Usually php-based systems have no problem with just putting an ellipsis where they force truncated 16:15:05 <ChrisWarrick> erdgeist: presenting 16:15:20 <ChrisWarrick> erdgeist: PHP-based systems usually do not care about presentation 16:17:31 <erdgeist> ChrisWarrick: Hmm, I think I can just use CSS with text-overflow: ellipsis; 16:18:49 <erdgeist> ChrisWarrick: then I don't have to reload for the readmore link 16:19:36 -GitHub[nikola]:#nikola- [nikola] Kwpolska created post_list-deps (+1 new commit): http://git.io/N1fk 16:19:36 -GitHub[nikola]:#nikola- nikola/post_list-deps 0c6333e Chris Warrick: fix #1624 -- add deps in post_list... 16:19:56 <ChrisWarrick> erdgeist: does ↑ fix things for you? 16:21:17 <erdgeist> pulling 16:24:51 -travis-ci:#nikola- getnikola/nikola#4645 (post_list-deps - 0c6333e : Chris Warrick): The build passed. 16:24:52 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/commit/0c6333ee622a 16:24:52 -travis-ci:#nikola- Build details: http://travis-ci.org/getnikola/nikola/builds/50846004 16:25:09 <erdgeist> nope 16:26:59 <erdgeist> same issue 16:28:55 <erdgeist> If I manually build the posts first and the pages later, it works just fine 16:40:35 <ChrisWarrick> erdgeist: this might require some other change then… 16:43:42 <ChrisWarrick> erdgeist: actually, this is NOT the same issue and you are not running from the correct branch 16:45:35 <ChrisWarrick> erdgeist: but this is a wrong implementation of this… 16:47:41 <erdgeist> ChrisWarrick: Oh, I see, I assumed this would go to master 16:47:42 -GitHub[nikola]:#nikola- [nikola] Kwpolska force-pushed post_list-deps from 0c6333e to 0f2d5ea: http://git.io/N1qw 16:47:42 -GitHub[nikola]:#nikola- nikola/post_list-deps 0f2d5ea Chris Warrick: fix #1624 -- add deps in post_list... 16:49:12 <ChrisWarrick> erdgeist: yeah, can’t do it easily. https://github.com/getnikola/nikola/issues/1624 16:50:06 <erdgeist> Okay, thanks anyway 16:50:55 <ChrisWarrick> erdgeist: sorry, but this is how Nikola works — some things are just impossible. 16:51:30 <ChrisWarrick> erdgeist: You could write a post-processing hook to do it, or change the source to ensure your index is compiled last. 16:53:29 -travis-ci:#nikola- getnikola/nikola#4646 (post_list-deps - 0f2d5ea : Chris Warrick): The build passed. 16:53:30 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/0c6333ee622a...0f2d5eaf3090 16:53:30 -travis-ci:#nikola- Build details: http://travis-ci.org/getnikola/nikola/builds/50848122 16:55:03 <ChrisWarrick> erdgeist: writing a LateTask plugin to fix the output file sounds like a good-enough solution 16:55:57 <erdgeist> ChrisWarrick: I just wonder why no one else needs this ;) 16:56:27 <ChrisWarrick> erdgeist: no-one else came up with an index page that includes both full posts and some other often-changed text, apparently 16:59:17 <erdgeist> ChrisWarrick: Hmm, I guess each side bar that contains teasers for blog posts would qualify 16:59:30 <ChrisWarrick> erdgeist: side bar? 17:00:13 <erdgeist> ChrisWarrick: yes, if you have a lot of static pages and each includes a side bar with quick links, I found it common to put recent blog posts there 17:00:40 <ChrisWarrick> erdgeist: not something Nikola lets you do quickly/easily/painlessly, unless you want JS to handle it, mind you 17:01:54 <erdgeist> ChrisWarrick: I just got the impression, that I got pretty far with nikola 17:02:18 <ChrisWarrick> erdgeist: great 17:03:15 <erdgeist> ChrisWarrick: So it's sad that those tiny things then stand in the way. But I'm still working on it 17:03:38 <ChrisWarrick> erdgeist: as I said, you could easily create a slightly hackish LateTask to fix the index page 17:04:30 <ChrisWarrick> erdgeist: it’s 15 minutes work and requires looking at the post_list plugin and nikola.plugins.task.pages 17:05:00 <ChrisWarrick> erdgeist: you don’t even need latetask, you can just make sure you depend (via file_dep) on output/index.html and have it in your targets 17:05:02 <erdgeist> ChrisWarrick: well, given an experienced python programmer. My business usually is Asm/C/C++ 17:06:01 <erdgeist> ChrisWarrick: you wouldn't believe how close I was to implement a static website generator in C 17:11:21 <ChrisWarrick> erdgeist: I’m currently writing something for you 17:13:59 <erdgeist> ChrisWarrick: I really appreciate this. Thanks 17:29:33 <ChrisWarrick> erdgeist: https://gist.github.com/Kwpolska/3b20af944126182e447d 17:34:24 <ChrisWarrick> erdgeist: usage: put in the plugins/ directory on your site, edit the file to configure some things (note you need this index_partial thing to prevent cyclic dependencies) and it should work just fine 18:14:14 <erdgeist> I dont get it. I renamed index.rst to index_partial.rst and added .. listofpostsgoeshere:: below my .. post-list:: 18:14:52 <erdgeist> if I put .. listofpostsgoeshere:: above it, it will note an unknown directive 18:18:05 <ChrisWarrick> erdgeist: not quite what I meant 18:18:54 <ChrisWarrick> erdgeist: it’s not a directive, just a comment — there should be zero colons. It also replaces post-list entirely and takes no arguments (things are set up in the code). Moreover, you must change the slug to index_partial 18:19:48 <erdgeist> Yes, I replaced the slug 18:20:02 <erdgeist> how do I parametrise the amount of blog posts and so on? 18:30:56 <ChrisWarrick> erdgeist: edit the file (under # SETTINGS #) 18:31:09 <ChrisWarrick> erdgeist: for other parameters not included there, consult the source of post_list.;y 18:31:12 <ChrisWarrick> .py* 21:44:00 -GitHub[plugins]:#nikola- [plugins] pellenilsson opened pull request #72: reST HTML5 compiler plugin (master...rest_html5) http://git.io/NM19