Logs for #nikola for 2016-02-15

05:45:36 -GitHub[plugins]:#nikola- [plugins] xuhdev pushed 1 new commit to master: https://git.io/vgSNV
05:45:36 -GitHub[plugins]:#nikola- plugins/master cf78680 Hong Xu: publication_list: updated the example.
05:50:40 -travis-ci:#nikola- [PLUGINS] getnikola/plugins#862 (master - cf78680 : Hong Xu): The build passed.
05:50:41 -travis-ci:#nikola- [PLUGINS] Change view: https://github.com/getnikola/plugins/compare/07ffbe8103d5...cf786809ed5f
05:50:42 -travis-ci:#nikola- [PLUGINS] Build details: https://travis-ci.org/getnikola/plugins/builds/109277001
06:34:36 -GitHub[plugins]:#nikola- [plugins] xuhdev pushed 1 new commit to master: https://git.io/vgSpY
06:34:36 -GitHub[plugins]:#nikola- plugins/master 99ea083 Hong Xu: publication_list: <br/> --> <br>
06:38:56 -travis-ci:#nikola- [PLUGINS] getnikola/plugins#863 (master - 99ea083 : Hong Xu): The build passed.
06:38:57 -travis-ci:#nikola- [PLUGINS] Change view: https://github.com/getnikola/plugins/compare/cf786809ed5f...99ea083899b1
06:38:57 -travis-ci:#nikola- [PLUGINS] Build details: https://travis-ci.org/getnikola/plugins/builds/109281219
06:48:54 -GitHub[plugins]:#nikola- [plugins] xuhdev pushed 1 new commit to master: https://git.io/vgShk
06:48:54 -GitHub[plugins]:#nikola- plugins/master bf8989e Hong Xu: publication_list: process some bibtex strings before passing them to the template....
06:53:05 -travis-ci:#nikola- [PLUGINS] getnikola/plugins#864 (master - bf8989e : Hong Xu): The build passed.
06:53:06 -travis-ci:#nikola- [PLUGINS] Change view: https://github.com/getnikola/plugins/compare/99ea083899b1...bf8989ee2dae
06:53:06 -travis-ci:#nikola- [PLUGINS] Build details: https://travis-ci.org/getnikola/plugins/builds/109282680
14:29:11 <gour>  /close
14:36:47 <ChrisWarrick> KwBot: ping
14:36:47 <KwBot> ChrisWarrick: pong
16:24:53 <KwBot> [nikola] Kwpolska opened issue #2249: Support easy customization of index page https://github.com/getnikola/nikola/issues/2249
16:28:06 <rye> Hi, question about the tags, description in rst files - these are .. - comments, right? Is there any way to make multiline comment for e.g. description - the last time I tried the simple newline/space it did not work, cutting the line.
16:33:36 <ChrisWarrick> rye: single-line only, sorry
16:37:17 <ChrisWarrick> rye: that said, the description tag should generally be short (rule of thumb: under 250 characters)
16:38:47 <rye> ChrisWarrick: yup, but when editor is set to wrap automaticaly at 80 characters it makes it noticeable. Anyway, that's a good thing to know. Same for the tags - got a "draft" on the next line and the post got published :)
16:39:22 <rye> what happens to these "next' lines anyway? they are not present in the output as text
16:39:43 <ChrisWarrick> rye: we cut out everything before the first empty line
16:39:53 <rye> OOOH
16:40:02 <rye> ChrisWarrick: makes sense now, thank you!
16:40:33 <ChrisWarrick> rye: that said, you should make extra sure your editor doesn’t damage your things, and for text files, you might want to disable wrapping using \n.
16:44:02 <rye> ChrisWarrick: while I am at it, I noticed that atom feeds generated for the site never have the name of the site, since they get overwritten in the code with "Posts". I was wondering whether this is expected, as I see there is an atom feed for every index page, every category/tag, so it's not exactly corresponding to the RSS feed.
16:44:18 <ChrisWarrick> rye: probably not
16:44:37 <ChrisWarrick> rye: report a bug and we’ll fix it, or try to contribute a fix on your own
16:45:40 <rye> ChrisWarrick: yup, will look into that then (i was at some point allowed to be a member of nikola team).
16:46:00 <ChrisWarrick> rye: everyone can send a PR
16:46:12 <ChrisWarrick> rye: (and I accepted your users.getnikola.com request a little earlier)
16:46:25 <rye> ChrisWarrick: last question - I have several fixups to the base-jinja theme that span several files, is it ok to make a single PR with explanations rather than creating a bug per every missing space?
16:47:09 <ChrisWarrick> rye: You should not edit the base-jinja theme by hand. If those issues don’t exist in base, you would need to patch scripts/jinjify.py.  Otherwise, one PR is much better than a 10 PR mess
16:47:32 <rye> ChrisWarrick: perfect, thank you!
16:47:51 <rye> also thanks for jinjify
20:13:03 <KwBot> [nikola-themes] fccoelho opened issue #72: Latest release broke Octopress theme for github_deploy https://github.com/getnikola/nikola-themes/issues/72
21:26:21 <benaiah> I'm trying to figure out how to give a menu item a class when one of the items in its submenu is the active link. I'm currently using the same menu logic as base-jinja2. Suggestions?
21:26:48 <benaiah> I'm don't typically write python, and I'm not terribly familiar with jinja, so apologies if I'm missing something obvious
21:31:27 <KwBot> [nikola] humitos opened issue #2250: web ui as lektor https://github.com/getnikola/nikola/issues/2250
22:17:13 <benaiah> I've figured out a way to do it, but I need to call a custom python function from jinja to do so, and I can't figure out how to do that in nikola. does anyone know?
22:21:07 <ralsina> benaiah: add the function to the GLOBAL_CONTEXT
22:22:02 <ralsina> benaiah: or, maybe add them to the TEMPLATE_FILTERS options
22:22:31 <benaiah> ralsina: would this be in conf.py?
22:22:36 <ralsina> benaiah: yes
22:23:14 <ralsina> benaiah: here's jinja's docs on custom filters http://jinja.pocoo.org/docs/dev/api/#writing-filters
22:38:26 <benaiah> ralsina: ok, so I have this in conf.py: https://bpaste.net/show/afff7381eb47
22:38:46 -GitHub[plugins]:#nikola- [plugins] xuhdev pushed 1 new commit to master: https://git.io/vgQ84
22:38:46 -GitHub[plugins]:#nikola- plugins/master 8741729 Hong Xu: publication_list: correct the directive name in README
22:39:55 <ralsina> benaiah: ool does it work? :-)
22:40:21 <benaiah> ralsina: no
22:40:27 <ralsina> benaiah: how?
22:40:27 <benaiah> I'm calling it like so: https://bpaste.net/show/ffde0e33b53c
22:40:47 <benaiah> and it's saying "jinja2.exceptions.UndefinedError: 'submenu_parent_class' is undefined"
22:41:25 <benaiah> The function was called when I added it to the global context instead, but it wasn't outputting anything to the page
22:41:30 <ralsina> benaiah: if it's a filter you are supposed to call it like {{ something | custom_filter}}
22:42:55 <benaiah> ralsina: ok, got it working. the function isn't working correctly, but it's being called and outputting things finally
22:43:05 <ralsina> benaiah: awesome!
22:43:19 <benaiah> ralsina: one last question: do you have any suggestions on how to avoid passing rel_link in as an argument to the function?
22:43:34 -travis-ci:#nikola- [PLUGINS] getnikola/plugins#865 (master - 8741729 : Hong Xu): The build passed.
22:43:35 -travis-ci:#nikola- [PLUGINS] Change view: https://github.com/getnikola/plugins/compare/bf8989ee2dae...8741729a2709
22:43:35 -travis-ci:#nikola- [PLUGINS] Build details: https://travis-ci.org/getnikola/plugins/builds/109474163
22:43:43 <ralsina> benaiah: if you feel tis is a generally useful feature, you could help document it :-)
22:44:02 <ralsina> benaiah: why avoid it?
22:44:39 <ralsina> benaiah: in any case, I think what jijna calls a "context filter" would not need that
22:44:52 <ralsina> http://jinja.pocoo.org/docs/dev/api/#jinja2.contextfilter
22:45:11 <benaiah> ralsina: I think I will do some docs work - I like nikola a lot and the docs are definitely the weakest part
22:45:37 <benaiah> ralsina: how do output to the "nikola auto" stdout, btw? print("yada") isn't doing it
22:45:38 <ralsina> benaiah: we tried our best, but yes, they are quite in need of improvement
22:45:50 <ralsina> use a logger
22:49:41 <benaiah> ralsina: awesome, got it working. thanks so much!
22:49:51 <ralsina> benaiah: you're welcome
23:37:00 <KwBot> [nikola] roman-yepishev opened issue #2251: RSS Enclosure size is always 0 https://github.com/getnikola/nikola/issues/2251