Logs for #nikola for 2015-05-27

00:23:23 <polyzen> great
00:23:28 <polyzen> woops, wrong channel
02:02:29 <polyzen> could i also disable the rss feed, archive, and categories?
02:43:18 <ralsina> sure
02:43:26 <ralsina> disable the respective plugins
02:43:45 <ralsina> caveat: some plugins have never been disabled by anyone :-)
02:46:52 <ralsina> polyzen:  
02:46:59 <ralsina> I meant, polyzen see above :-)
03:00:26 <polyzen> haha
05:05:02 <gour> morning
08:22:52 <gour> the theme with which i played in hugo (https://github.com/gour/sshq) had the feature to display recent tweets in the site's sidebar by using the following JS code: https://github.com/jasonmayes/Twitter-Post-Fetcher
08:24:29 <gour> not being familiar with twitter's api i wonder whether you consider it's better option than using twitter API? what do you think about adding support for it to nikola (similar to twitter cards) or is it better suited for plugin or just theme-wise?
08:25:06 <gour> i also added support for piwik to that theme and have same questions: does it suit plugin or theme better?
08:25:53 <gour> imho, some things like comments' system, twitter cards etc. could be maybe moved from the core into 'core-plugins' or just external plugins?
09:03:46 <Aeyoun> STOP DRILLING! ITS BEEN THREE HOURS!! HOW BIG A WHOLE DO YOU NEED!?!!
09:04:16 <Aeyoun> Sorry, that was for my upstairs neighbor. :P Focused on the wrong window.
10:10:25 <Aeyoun> Do you guys read your blog posts aloud before publishing? Thinking of doing a plug-in that reads aloud the changes when you save. Similar to `nikola auto`.
10:11:12 <gour> Aeyoun: interesting one 
10:11:40 <Aeyoun> It’s the best way to hear weird sentences and spelling mistakes.
10:53:46 <ralsina> gour: I think that's just a theme thing
10:54:04 <ralsina> gour: some themes should allow the user to add "blocks" for that kind of thing, maybe
11:45:04 <gour> ralsina: ok. ack-ed
12:48:26 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to new-auto: http://git.io/vkqop
12:48:26 -GitHub[nikola]:#nikola- nikola/new-auto ee3e113 Roberto Alsina: Merge branch 'master' into new-auto
12:52:07 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to new-auto: http://git.io/vkq60
12:52:07 -GitHub[nikola]:#nikola- nikola/new-auto 972d67d Roberto Alsina: Handle robots.tt as suggested in #1757 (untested)
12:57:48 <ralsina> Aeyoun: special handling for paths is another of the things we can't really do with python-livereload, I did a quick one for new-auto (untested because I am working)
13:03:11 -travis-ci:#nikola- getnikola/nikola#5183 (new-auto - ee3e113 : Roberto Alsina): The build was fixed.
13:03:12 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/00d22835102d...ee3e11306dfb
13:03:12 -travis-ci:#nikola- Build details: http://travis-ci.org/getnikola/nikola/builds/64247566
13:09:16 -travis-ci:#nikola- getnikola/nikola#5184 (new-auto - 972d67d : Roberto Alsina): The build is still failing.
13:09:17 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/ee3e11306dfb...972d67d44d80
13:09:17 -travis-ci:#nikola- Build details: http://travis-ci.org/getnikola/nikola/builds/64247896
13:24:37 <ChrisWarrick> gour: about the bug: I’ll try to fix it tomorrow, need to catch up with 59 emails.  about twitter: just use the real api which is guaranteed to work always and is 100% legal
13:34:46 <ralsina> gour: example: http://getnikola.com (click on "what people are saying", it works today!)
13:38:37 <ralsina> ChrisWarrick: gratipay seems to have radically shifted goals and all previous commitments disappeared
13:38:55 <ralsina> ChrisWarrick: since it never amounted to more than a cup of coffee, ok with you if I remove them from our site?
13:39:45 <ChrisWarrick> ralsina: I’d say, remove the big widget on the home page but throw in a link somewhere
13:40:20 <ralsina> Noone will ever find anything smaller than that. And even when they found it noone ever donated anything.
13:40:44 <ralsina> Also, there's some bureaucracy involved if you want it to keep working after august which I don't want to do :-(
13:41:22 <ChrisWarrick> drop it then
13:42:06 <ralsina> ok
13:42:28 <ralsina> ChrisWarrick: feel free to apply for it and re-add it whenever/if you want
13:51:23 -GitHub[site]:#nikola- [nikola-site] ralsina pushed 1 new commit to master: http://git.io/vkmJh
13:51:23 -GitHub[site]:#nikola- nikola-site/master f137c40 Roberto Alsina: removed gratipay
13:55:55 <gour> ChrisWarrick: thanks * 2
13:55:58 <gour> ralsina: :-)
14:06:29 <gour> ChrisWarrick: which API lib/wrapper to use?
14:06:43 <ChrisWarrick> gour: widgets from twitter.com
14:07:39 <gour> ChrisWarrick: it's all possible with them?
14:07:45 <ChrisWarrick> gour: probably
14:23:09 <ralsina> Looks like Nikola got an interesting review in russan here http://blog.superhosting.bg/nikola-python-blog-site-generator.html
14:25:04 <ralsina> Aeyoun, ChrisWarrick how do you feel about making nikola's site more like http://mistlab.ca/
14:25:13 <ralsina> it's even done with Nikola and it's so much prettier
14:25:26 <ChrisWarrick> ralsina: .bg is Bulgaria
14:25:43 <ralsina> ok, so in bulgarian :-)
14:25:57 <ChrisWarrick> ralsina: this does look nie
14:25:58 <ChrisWarrick> nice*
14:26:21 <ralsina> yep, bulgarian
14:28:19 <Aeyoun> ralsina: "more like that site" how? visually? or content vise?
14:29:04 <Aeyoun> I’d like to see a page dedicated to features. Little icons and stuff. Maybe your youTube video on using auto.
14:29:24 <Aeyoun> possibly some featured sites built with nikola or themes too.
14:30:31 <Aeyoun> A download page would be nice. Showing different install options and quick start guide.
14:31:06 <Aeyoun> (pip3 install nikola; nikola init --demo myblog; cd myblog; and you”re done. nikola build and serve blah-blah)
14:31:25 <ralsina> visually, and restructure content into clear pages
14:31:38 <Aeyoun> Content before  beauty. ;)
14:31:40 <ralsina> maybe 3, 4 pages, so front page would be banner, short intro, 4 icons
14:31:57 <ralsina> yes, plan would be to write 4 pages, then theme it :-)
14:36:35 * gour likes the idea
14:37:48 <gour> my suggestion is to put more effort into advertising nikola as site generator and not 'just another blog engine'
14:38:11 <gour> iow. blog is (usually) subset of the site
14:39:10 <Aeyoun> * Features
14:39:10 <Aeyoun> * - Sexy icons and short paragraphs
14:39:10 <Aeyoun> * - Sexy videos
14:39:10 <Aeyoun> * Download
14:39:10 <Aeyoun> * - Install with pip
14:39:11 <Aeyoun> * - Quick start
14:39:11 <Aeyoun> * - Install from source package
14:39:11 <Aeyoun> * - Install from git / other
14:39:12 <Aeyoun> * - Liecnse
14:39:13 <Aeyoun> * Documentation
14:39:13 <Aeyoun> * - Quick start
14:39:13 <Aeyoun> * - Handbook
14:39:40 <Aeyoun> Ouch. Sorry. Forgot that bullet lists and IRC don’t go together. :D
14:39:56 <Aeyoun> ralsina: suggested main sections and structure
14:40:48 <ralsina> Aeyoun: can you do that as a list with checkboxes in an issue?
14:40:54 <ralsina> That way we can tick them as we do them
14:41:02 <Aeyoun> (Yes, quickstart is duoplicated. The quicker people start; the faster they’re hooked/committed.)
14:41:35 <gour> ahh...have to go out, afk
14:44:20 <ChrisWarrick> * a big call to action
14:46:58 <ralsina> Yeah, I am not going to be in this awesome machine-like feature-pumping-bug-crushing mode more than a couple weeks more :-)
14:47:04 * ralsina kids
14:47:10 <Aeyoun> https://github.com/getnikola/nikola-site/issues/20
14:47:39 <ralsina> awe-some
14:48:04 <ralsina> OTOH is winter here
14:48:10 <ralsina> winter is coming, at least
14:50:42 <Aeyoun> Probably still warmer than Norwegian summer.
14:51:29 <ralsina> Aeyoun: hey, it snowed here. Once. Twice if you count the last 90 years.
14:55:53 <Aeyoun> That sounds like summers in Oslo.
14:57:04 <Aeyoun> To be fair, it’s a whopping 17°C and sunny today.
14:58:06 <ralsina> Exactly the same here, actually.
15:00:41 <Aeyoun> Was 9°C and rainy yesterday. My upstairs neighbor celebrated the nice weather today by drilling constantly between 08 and 16. I hope his intestines got dislocated from all the vibrations. (Concrete building so this probably lowered the  life expectancy on all my spinning harddrives.)
15:14:01 <Aeyoun> Do disagree and pick at the "content plan" bug. My thinking is not necessarily the best thinking. Better to bring up issues early before committing to anything and only then figuring out its all wrong.
15:46:08 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to new-auto: http://git.io/vkmhF
15:46:08 -GitHub[nikola]:#nikola- nikola/new-auto fa3a89a Roberto Alsina: typpo
16:00:01 -travis-ci:#nikola- getnikola/nikola#5186 (new-auto - fa3a89a : Roberto Alsina): The build was fixed.
16:00:02 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/972d67d44d80...fa3a89a907bd
16:00:02 -travis-ci:#nikola- Build details: http://travis-ci.org/getnikola/nikola/builds/64275750
16:04:27 -GitHub[plugins]:#nikola- [plugins] Aeyoun pushed 2 new commits to master: http://git.io/vkYLR
16:04:27 -GitHub[plugins]:#nikola- plugins/master 3b1e79b Daniel Aleksandersen: Skip scheduled posts and drafts
16:04:27 -GitHub[plugins]:#nikola- plugins/master 910f8b8 Daniel Aleksandersen: Dead URL fix
16:20:05 -travis-ci:#nikola- [PLUGINS] getnikola/plugins#648 (master - 910f8b8 : Daniel Aleksandersen): The build passed.
16:20:06 -travis-ci:#nikola- [PLUGINS] Change view: https://github.com/getnikola/plugins/compare/1a816033a48d...910f8b8b6a35
16:20:06 -travis-ci:#nikola- [PLUGINS] Build details: http://travis-ci.org/getnikola/plugins/builds/64278503
19:43:58 -GitHub[nikola]:#nikola- [nikola] ralsina created smarter-check (+1 new commit): http://git.io/vkOHN
19:43:58 -GitHub[nikola]:#nikola- nikola/smarter-check 63e1c5e Roberto Alsina: this makes check -f work
19:48:44 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to smarter-check: http://git.io/vkO79
19:48:44 -GitHub[nikola]:#nikola- nikola/smarter-check c85eddb Roberto Alsina: and this makes check -l work
19:49:42 -GitHub[nikola]:#nikola- [nikola] ralsina opened pull request #1759: Smarter check (master...smarter-check) http://git.io/vkO5v
19:52:23 -travis-ci:#nikola- getnikola/nikola#5188 (smarter-check - 63e1c5e : Roberto Alsina): The build failed.
19:52:24 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/commit/63e1c5ed221c
19:52:24 -travis-ci:#nikola- Build details: http://travis-ci.org/getnikola/nikola/builds/64311098
19:58:39 -travis-ci:#nikola- getnikola/nikola#5189 (smarter-check - c85eddb : Roberto Alsina): The build failed.
19:58:40 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/63e1c5ed221c...c85eddb642ab
19:58:41 -travis-ci:#nikola- Build details: http://travis-ci.org/getnikola/nikola/builds/64311767
19:59:23 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to smarter-check: http://git.io/vkObX
19:59:23 -GitHub[nikola]:#nikola- nikola/smarter-check 2b2d34b Roberto Alsina: flake8
20:27:40 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to smarter-check: http://git.io/vk3Uy
20:27:40 -GitHub[nikola]:#nikola- nikola/smarter-check cf265ca Roberto Alsina: hey, the check command is so good it found a broken link it didn't use to find
21:08:06 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 3 new commits to smarter-check: http://git.io/vk3C4
21:08:06 -GitHub[nikola]:#nikola- nikola/smarter-check 90b20b8 Roberto Alsina: fix orphans plugin
21:08:06 -GitHub[nikola]:#nikola- nikola/smarter-check 8ec121f Roberto Alsina: fix github_deploy plugin
21:08:06 -GitHub[nikola]:#nikola- nikola/smarter-check ab77056 Roberto Alsina: stricter checks
21:24:35 -travis-ci:#nikola- getnikola/nikola#5195 (smarter-check - ab77056 : Roberto Alsina): The build is still failing.
21:24:36 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/cf265caef7d6...ab770569896d
21:24:36 -travis-ci:#nikola- Build details: http://travis-ci.org/getnikola/nikola/builds/64322954
21:31:29 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to smarter-check: http://git.io/vk3EF
21:31:29 -GitHub[nikola]:#nikola- nikola/smarter-check 64f5d0b Roberto Alsina: fix --find-sources
21:51:13 -travis-ci:#nikola- getnikola/nikola#5197 (smarter-check - 64f5d0b : Roberto Alsina): The build is still failing.
21:51:14 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/ab770569896d...64f5d0baa463
21:51:14 -travis-ci:#nikola- Build details: http://travis-ci.org/getnikola/nikola/builds/64326284
22:21:35 <polyzen> how long should i be waiting for `nikola auto` to notice a change in a file o.o
22:29:41 <Aeyoun> polyzen: check command output. Any sign of trouble?
22:34:01 <polyzen> nope
22:34:06 <polyzen> just tornnado serving up stuff
22:39:13 <ralsina> polyzen: you probably want to check out the "new-auto" branch
22:39:23 <ralsina> python-livereload is brokish
22:39:38 <ralsina> also: it stops noticing changes if you close the browser or the browser disconnects from the server
22:41:45 <polyzen> accessing it through a port forward
22:41:57 <polyzen> erm, not that. a tunnel
22:42:07 <polyzen> i see
22:43:10 <polyzen> ralsina, Aeyoun, should i be able to get a plain nikola site if i just do `nikola init; nikola build; nikola server`?
22:43:20 <polyzen> doesn't seem to be the case
22:43:31 <polyzen> trying to find out where index.html is sourced from in the demo
22:43:40 <polyzen> i get a directory listing
22:43:55 <polyzen> if i click on, say, archive.html from there, it looks good
22:44:58 <polyzen> i created a page called welcome.txt. tried changing the slug to index
22:45:15 <Aeyoun> polyzen: nikola init --demo folder
22:45:16 <polyzen> the handbook says to do new_post, but i'm not trying to setup a blog
22:45:22 <polyzen> Aeyoun, that one works
22:45:22 <Aeyoun> Have a look at a working example.
22:45:40 <polyzen> like i said, i don't know where the index.html for that is sourced
22:46:51 <polyzen> ah, i think it's from categories
22:47:16 <polyzen> nope
22:48:00 <Aeyoun> polyzen: output.html is a list of POSTS
22:48:17 <Aeyoun> polyzen: you want to use PAGES and remove POSTS
22:48:44 <Aeyoun> ralsina: we should have a non-blog demo page too.
22:49:10 <polyzen> 18:44 <polyzen> i created a page called welcome.txt. tried changing the slug to index
22:49:17 <polyzen> i've followed said page
22:49:29 <polyzen> and i didn't mention output.html :p
22:53:41 <polyzen> the non-blog page shows the index.html being sent straight to output, not output/stories
22:54:41 <Aeyoun> https://github.com/getnikola/nikola/issues/1760
22:56:27 <polyzen> works when i move the index.html from output/stories to output/
22:57:08 <Aeyoun> polyzen: PAGES = ( ("content/about/*.html", "about", "story.tmpl") )
22:57:25 <Aeyoun> puts eg. content/daniel.html into output/about/daniel.html
22:57:45 <Aeyoun> so PAGES = ( ("content/index.html", ".", "story.tmpl") ) should do what you want
22:59:06 <Aeyoun> change INDEX_FILE = "notwhatiwant.html" or remove POSTS
22:59:21 <Aeyoun> or is it STORY_INDEX = True you're looking for?
22:59:47 <Aeyoun> (does any of this make sense?)   :-)
23:00:06 <polyzen> o.o
23:01:42 <polyzen> Aeyoun> puts eg. content/daniel.html into output/about/daniel.html
23:01:49 <polyzen> wouldn't that be 
23:02:06 <polyzen> yeah i don't get it
23:02:22 <polyzen> Aeyoun, any idea where output/index.html is sourced from for the demo?
23:02:42 <Aeyoun> yes, POSTS + INDEX_FILE
23:03:38 <Aeyoun> It comes from the base.tmpl + index.tmpl in your theme.
23:03:55 <Aeyoun> filled with a list o POSTS and named by INDEX_FILE
23:04:13 <Aeyoun> removing POSTS stop it from being generated, allowing you to supplement your own PAGES
23:04:26 <Aeyoun> Remove POSTS. Add PAGES = ( ( "your-index.html", ".", "story.html") )
23:04:45 <Aeyoun> format is PAGE = ( ( source-file, destination-relative-to-output, template-file ) )
23:04:52 <Aeyoun> *PAGES
23:06:00 <Aeyoun> It’s not really all that user-friendly or non-blog usecases.
23:06:07 <Aeyoun> I intend to make skeletons you can generate from `init` for websites without blog stuff (so just PAGES and no POSTS) so this will be easier to start a non blog website. Tracked in https://github.com/getnikola/nikola/issues/1760
23:06:32 <Aeyoun> ralsina ChrisWarrick: check out this when you guys have time.
23:06:56 <polyzen> now i see
23:07:06 <polyzen> i didn't changes PAGES properly
23:07:16 <polyzen> sorry about that
23:07:29 <polyzen> this shows POSTS still there, but empty
23:07:31 <polyzen> https://getnikola.com/creating-a-site-not-a-blog-with-nikola.html
23:07:38 <polyzen> so that's how i have that :p
23:07:52 <polyzen> now to re-read all you've said :p
23:07:58 <polyzen> Aeyoun, thank you
23:08:19 <Aeyoun> That document says to use:
23:08:24 <Aeyoun> POSTS = []
23:08:24 <Aeyoun> PAGES = [("pages/*.txt", "", "story.tmpl")]
23:08:55 <Aeyoun> So no POSTS, and pages. that empty string as the second argument in PAGES means "root relative to output/". :)
23:09:49 <Aeyoun> It’s very magical. I’m hoping starter-skeletons/examples will make this less frustrating. :P Hope I’ll have time to make it happen this weekend. Sounds very interesting to work on. :D
23:10:27 <polyzen> still have no clue how the demo has an output/index.html based on its conf.py. maybe it there pre-build
23:11:29 <Aeyoun> the index.html in demo is based on the entries in POSTS. Nikola auto-magically generates lists of POSTS in indexes. They get  the name index.html (index-1.html, etc.) from INDEX_FILE. This is also very magical.
23:12:13 <Aeyoun> polyzen: Nikola is a very good site generator. However, the documentation is …a bit … lacking.
23:12:36 <Aeyoun> polyzen: fortunately you found your way here and found help.
23:20:08 <polyzen> Aeyoun, but the source for index.html is apparently called 1.rst
23:20:29 <polyzen> and apparently nikola renders it to welcome-to-nikola.html
23:25:06 <Aeyoun> that would be the slug metadata inside 1.rst
23:27:41 <polyzen> right
23:36:45 <polyzen> Aeyoun, i'm saying, the demo's INDEX_FILE is set to index.html, but it seems to copy output/posts/welcome-to-nikola.html to output/index.html
23:40:19 <polyzen> i suppose, in the case there isn't an index.html, it'll grab whatever .html file is available?
23:43:34 <polyzen> i think i understand now
23:44:43 <Aeyoun> polyzen: no, it just lists all posts (including content unless index_tease (can't remember the setting name) is enabled. with that setting it will only show previews. if you add more posts, it will push older posts further down the index page.
23:44:50 <Aeyoun> like a wordpress blog when you add more blog posts.
23:45:50 <polyzen> gotchaa
23:51:46 <polyzen> how do i go about disabling plugins >.>
23:51:56 <polyzen> like archive, rss, categories
23:52:03 <polyzen> whatever else i don't need for not-a-blog
23:55:37 <ralsina> polyzen: DISABLED_PLUGINS :-)
23:56:11 <polyzen> dur
23:56:14 <polyzen> thank you
23:56:29 <ralsina> actually there is a demo of a "site, not a blog" here: https://github.com/getnikola/nikola-event-kit
23:56:33 <polyzen> need to make vim's search case insensitive or something...
23:56:41 <ralsina> sadly 1.5 years untouched
23:57:00 <ralsina> polyzen: blame pep8 :-)
23:57:10 <ralsina> "module-level constants should be upper case"
23:57:22 <polyzen> ah
23:57:32 <ralsina> I am seriously considering supporting a config file in a sane format
23:57:39 <ralsina> like yaml
23:57:55 <ralsina> and then have people complain that the config parsing fails with obscure errors when parsing yaml :-)
23:58:01 <polyzen> heh
23:58:27 <polyzen> ralsina, and where do i find the name of plugins?
23:58:45 <polyzen> are they just called "rss, archive, etc."?
23:59:16 <ralsina> nikola list --all | cut -d: -f1 | sort |uniq
23:59:36 * ralsina adds a "nikola plugin --list-available" to his todo