Logs for #nikola for 2017-03-27

07:09:24 <gour> morning
07:10:00 <gour> i'm comparing how do hugo & nikola help with creating new themes...which is kind of weak spot in nikola's ecosystem
07:14:08 <gour> here are the tree outputs for both: https://paste.fedoraproject.org/paste/VtKyHYHf0Z7mqdejsZZtR15M1UNdIGYhyRLivL9gydE=
07:15:45 <gour> although in Hugo, practically all the stuff is empty, still new-theme cmd creates desired layout so that theme author knows what is required...wonder what do you think about Nikola's new-theme cmd to created richer default file structure?
07:23:45 <gour> ChrisWarrick: are you still on mobile? in that case i'll shorten url...sorry, i forgot
07:46:06 <gour> what does nikola use for 'live-reload' these days?
08:36:25 <gour>  livereload package it seems, but wonder why it can't work reliably...
14:55:44 <ChrisWarrick> gour: not anymore, it’s custom ws4py stuff
14:56:37 <ChrisWarrick> gour: as for the themes — perhaps we could create a few more directories, but we can’t create any templates.
17:51:42 <elnuno> Sorry for probably missing a FAQ, but is there a way easily/auto add an index.html file to the stories/pages directory (or even main page)? 
17:54:34 <ChrisWarrick> elnuno: What should that index.html file contain?
17:55:20 <ChrisWarrick> elnuno: List of all stories/pages → PAGE_INDEX. Any random content → just make the slug `index`. To make it the main page: set PAGES in config so that this page ends up in /, and disable generating indexes
17:55:24 <ChrisWarrick> !notablog
17:55:24 <KwBot> ChrisWarrick: Creating a Site (not a blog): https://getnikola.com/creating-a-site-not-a-blog-with-nikola.html
17:55:47 <elnuno> the same thing an empty index page does for posts before you have any? 
17:55:57 <ChrisWarrick> huh?
17:56:13 <elnuno> sorry, lag, was answering your question
18:04:57 <elnuno> ChrisWarrick: I have "PAGE_INDEX = True", should that be enough? It doesn't create a page index, but there is one for posts. I also have INDEX_PATH =  "posts/", if it's relevant
18:05:30 <ChrisWarrick> elnuno: PAGE_INDEX=True is enough to create pages/index.html that contains a list of pages
18:07:34 <elnuno> Hm, it doesn't. Let me start the yak shaving season, brb.
18:08:04 <ChrisWarrick> Which version of Nikola are you on?
18:08:24 <ChrisWarrick> It was spectacularly broken in v7.8.3. And fixed in v7.8.4 which is less than 24 hours old.
18:09:16 <elnuno> 7.8.4. Let me dig and I should be able to provide something of value
18:10:41 <ChrisWarrick> I wrote unit tests for that yesterday. And they passed. (After 5 attempts, including yet another bug fix, but at least it should really work now)
18:12:53 <elnuno> I'm installing the tests so I can run them here.
18:13:09 <ChrisWarrick> no need to, really
18:13:37 <ChrisWarrick> just show me conf.py, your directory tree, and make sure you rebuilt the thing
18:18:23 <ChrisWarrick> elnuno:18:18:45 <elnuno> https://paste.pound-python.org/show/VDTUSJy9S2qqrtMERd0p/ I nuked output and used build -a
18:20:02 <ChrisWarrick> are you absolutely sure this is 7.8.4?
18:20:14 <elnuno> nikola version says so
18:20:40 <elnuno> being on windows might play a part?
18:21:46 <elnuno> (tests running, should be able to figure out if it's windows or something that didn't make it into 7.8.4)
18:21:58 <ChrisWarrick> Reproduced.
18:22:22 <elnuno> is it something funky in conf.py?
18:23:15 <elnuno> sorry, I should have created a conf.py from scratch to test that
18:27:28 <ChrisWarrick> Guess what? The tests did not cover PRETTY_URLS
18:30:36 -GitHub[nikola]:#nikola- [nikola] Kwpolska created page_index-pretty_urls (+1 new commit): https://git.io/vSqJM
18:30:36 -GitHub[nikola]:#nikola- nikola/page_index-pretty_urls 00a65ba Chris Warrick: Make PAGE_INDEX work with PRETTY_URLS...
18:30:48 <elnuno> I was about to say something like that, page0.html and index.html being on pages/... and only one index.html per subdir
18:31:28 <ChrisWarrick> There was a piece of code that broke PAGE_INDEX somewhere else. I deemed it unnecessary and removed it
18:31:43 <ChrisWarrick> Turns out, the original author was testing with PRETTY_URLS on and wrote it for that case
18:32:24 <elnuno> wow that was fast, thank you so much! :)
18:36:24 <ChrisWarrick> elnuno: Does it work for you?
18:37:30 -GitHub[nikola]:#nikola- [nikola] Kwpolska pushed 1 new commit to page_index-pretty_urls: https://git.io/vSqU7
18:37:30 -GitHub[nikola]:#nikola- nikola/page_index-pretty_urls bee4594 Chris Warrick: Inherit from PageIndexTest...
18:38:03 -travis-ci:#nikola- getnikola/nikola#8500 (page_index-pretty_urls - 00a65ba : Chris Warrick): The build passed.
18:38:04 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/commit/00a65baa0010
18:38:04 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/215643987
18:40:25 <elnuno> Yes! sweet render_taxonomies:output\pages\index.html now, you rock!
18:42:14 -travis-ci:#nikola- getnikola/nikola#8501 (page_index-pretty_urls - bee4594 : Chris Warrick): The build failed.
18:42:15 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/00a65baa0010...bee4594956fa
18:42:15 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/215646394
18:42:25 <ChrisWarrick> And you can expect an emergency bugfix release soon-ish
18:44:30 <ChrisWarrick> after I make the tests really work. Great.
18:45:10 <ChrisWarrick> (Well, at least there won’t be two emergency bugfix releases in a row.)
18:49:13 -GitHub[nikola]:#nikola- [nikola] Kwpolska opened pull request #2705: Make PAGE_INDEX work with PRETTY_URLS (master...page_index-pretty_urls) https://git.io/vSqIt
18:49:39 <elnuno> fwiw there's a test fail in tests.test_compile_markdown.CompileMarkdownTests.test_compile_code_hilite, an empty span is missing from actual output... lemme check line endings issues
18:50:31 <ChrisWarrick> Our tests are pretty fragile. You can tell I never run them locally.
19:12:15 <gour> ChrisWarrick: do you consider that ws4py does behave better than livereload?
19:12:54 <gour> ChrisWarrick: i believe that creating few more default dirs would be nice
19:13:01 <ChrisWarrick> gour: I honestly don’t know. We dropped livereload because it was pretty unreliable from the dependency perspective
19:15:09 <gour> ChrisWarrick: i see...can't say for sure, but have feeling that in the past livereload worked pretty good, no need to use doit_x tasks...moreover, working with the site and using livereload is probably done more often than upgrading deps
19:16:17 <gour> however, you devs knows better, i'm just noob end-user
19:18:30 <ChrisWarrick> gour: There were quite a handful of bugs that we worked around by rewriting auto on our own
19:19:34 <gour> ChrisWarrick: ok, i just have desire to be able to use 'nikola auto' reliably without using doit_x in two terminal workaround
19:19:56 <ChrisWarrick> There is a secret project on my task list for a third iteration of auto that might just be better
19:21:45 <ChrisWarrick> I don’t promise anything, I haven’t written a single line of code. Perhaps the biggest problem with auto is the fact that is not reliably unreliable
19:22:07 <gour> ok, i'll continue with Nikola (and putting Hugo on the side) and do some theming and trying to fix emoji plugin...Nikola has nicer solution(s) for (local) search and, in general, i like it more than Hugo
19:22:45 <ChrisWarrick> have fun!
19:23:32 <gour> that also includes learning some more python and forget about (Golang) for the foreseeable future
19:23:38 <ChrisWarrick> (also, nitpick: you don’t need two terminals, `nikola serve -d; nikola doit_auto; kill $(cat nikolaserve.pid)
19:23:44 <ChrisWarrick> `)
19:24:07 <gour> hmm..interesting
19:24:34 <gour> still, one would expect that 'nikola auto' should be enough ;)
19:25:26 <gour> however '-d' for serve is new to me :-)
19:29:05 <gour> in Hugo, livereload works very well
19:51:49 <ChrisWarrick> Go is perfect for concurrency. It's famous for that, in fact
19:52:27 <ChrisWarrick> Python isn't as good, but there are ways to get it done. The current one is quite messy, though
20:01:11 <gour> ok, let's hope for the best ;)
20:46:53 <elnuno> ChrisWarrick: can you point me to the posts equivalent to nikola/plugins/task/page_index.py?
20:51:00 <elnuno> oh, I think I found it nikola/plugins/task/indexes.py
21:46:24 <elnuno> Bwahaha, I managed to get a single index page with both posts and pages. 
22:01:48 -travis-ci:#nikola- getnikola/nikola#8484 (master - 3ae6e54 : Chris Warrick): The build passed.
22:01:49 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/f044b692b6a2...3ae6e541c67d
22:01:49 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/215277033
22:04:46 -travis-ci:#nikola- getnikola/nikola#8484 (master - 3ae6e54 : Chris Warrick): The build passed.
22:04:47 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/f044b692b6a2...3ae6e541c67d
22:04:48 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/215277033
22:12:36 <elnuno> Bwahaha, a custom theme should've been easier than subclassing PageIndex
22:12:44 <elnuno> bbl