08:34:46 <KwBot> [nikola] mckobe23 opened issue #2300: why almost throw this excetpino? by version 7.7.7 https://github.com/getnikola/nikola/issues/2300 13:40:13 <azazel> anyone knows how to use jquery in a .html source if jquery is late-loaded at the end of the page? 13:45:49 <SteveDrees> late load your jquery after jquery was late loaded. 13:47:17 <ChrisWarrick> azazel: use a non jquery equivalent of document.ready 14:29:58 <KwBot> [nikola] Kwpolska closed issue #2300: why almost throw this excetpino? by version 7.7.7 https://github.com/getnikola/nikola/issues/2300 18:22:57 <polz> hi! 18:23:10 <polz> has anyone here tested the gallery support for .svg files? 18:29:03 <ChrisWarrick> polz: Do you have any issues with that? 18:30:01 <polz> ChrisWarrick: yes. It does not work. And since AFAIK PIL has never supported SVG, I'm guessing it has never worked 18:30:20 <polz> now the problem might lay in the fact that I'm using Debian's version of Nikola 18:30:20 <ChrisWarrick> polz: Then report a bug, I guess? 18:30:44 <polz> yeah, that might work... but I'd rather first check if this has ever worked for anyone here 18:31:09 <polz> I'm working on a better gallery for Nikola anyway... 18:31:38 <polz> so I'll probably just work around that. 18:32:06 <ChrisWarrick> polz: Our resizing thing has special svg support, actually. 18:32:18 <ChrisWarrick> polz: (and we’d love you to contribute that gallery upstream!) 18:33:23 <polz> OK, so it's probably just a problem with the version in Debian 18:33:31 <polz> I have to clean it up a bit 18:34:10 <polz> and the problem with my version of the gallery is that it requires some small changes to the theme :( 18:35:27 <polz> btw, can anyone suggest a way to get a unique id for each post from within a rest or markdown extension? 18:35:49 <polz> I've created something slightly better (IMO) than the gallery_directive plugin... 18:35:59 <ChrisWarrick> anything is better than gallery_directive 18:36:30 <polz> but there's a problem - if more than one post includes the same gallery, the javascript doesn't work the way it's supposed to 18:36:46 <polz> ChrisWarrick: so, what do you use for including galleries within posts? 18:36:59 <ChrisWarrick> I don’t do that 18:37:23 <ChrisWarrick> we use post.base_path for something unique (eg. for DISQUS) 18:37:35 <polz> is there anything better than gallery_directive which will let me do something like that? 18:37:50 <ChrisWarrick> no 18:37:55 <ChrisWarrick> gallery_directive is a really ugly hack 18:38:08 <polz> how is post.base_path accessible from within a markdown extension? 18:38:51 <polz> I know, I've read it. Parsing the html to get the image array is... interesting :) 18:39:25 <ChrisWarrick> ah, a markdown extension probably can’t get the post object 18:39:52 <polz> so how do I get a unique ID from within the extension? 18:40:18 <ChrisWarrick> How unique does it need to be? 18:41:48 <polz> well, each div containing a gallery should have a different id so the javascript can replace it with a bunch of images 18:42:08 <ChrisWarrick> meh, talk to uuid 18:42:09 <polz> currently, I'm just using the gallery name 18:42:27 <ChrisWarrick> I think we have some typical code for that somewhere 18:42:38 <polz> but that breaks if more than one post on the same page includes the same gallery 18:43:07 <ChrisWarrick> polz: look at nikola/plugins/compile/rest/listing.py lines 106–109 18:43:31 <polz> justasec 18:44:51 <ChrisWarrick> And how broken is the svg support in galleries on your side? I got an encoding error I think I know how to fix. They look a bit ugly here though. 18:44:56 <polz> what's the site.invariant supposed to be? 18:45:24 <polz> well, I've created a copy of the gallery plugin 18:45:41 <polz> and it dies when it tries to do something with a .svg 18:45:54 <polz> I haven't even checked how and why 18:46:03 <ChrisWarrick> site.invariant disables random things so we can ensure there are no sudden changes in nikola’s output 18:46:24 <ChrisWarrick> just copy over that bit (change the rest_code string) and it will work. 18:46:34 <ChrisWarrick> polz: ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. 18:47:49 <polz> here, the problem is that the image is not in one of the recognized formats 18:48:02 <polz> I've removed .svg from the list of known image endings 18:48:15 <polz> since I'm trying to get my site to build at least once 18:48:42 <polz> and I might check it out a bit later 18:51:41 <ChrisWarrick> polz: https://github.com/getnikola/nikola/pull/2301 18:51:41 -GitHub[nikola]:#nikola- [nikola] Kwpolska created fix-svg-unicode (+1 new commit): https://git.io/vaiJ8 18:51:41 -GitHub[nikola]:#nikola- nikola/fix-svg-unicode a3e05ca Chris Warrick: Use bytes for .svg(z) files in thumbnail generation... 18:51:51 -GitHub[nikola]:#nikola- [nikola] Kwpolska opened pull request #2301: Use bytes for .svg(z) files in thumbnail generation (master...fix-svg-unicode) https://git.io/vaiJ4 18:52:04 <polz> wow, that was fast :) 18:56:50 -travis-ci:#nikola- getnikola/nikola#7019 (fix-svg-unicode - a3e05ca : Chris Warrick): The build passed. 18:56:51 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/commit/a3e05ca343e8 18:56:51 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/116980315 21:55:53 -GitHub[nikola]:#nikola- [nikola] Kwpolska created requires-io-master from master (+0 new commits): https://git.io/Sm_jqQ 22:00:59 -travis-ci:#nikola- getnikola/nikola#7020 (requires-io-master - 8c4ecf4 : Roberto Alsina): The build passed. 22:01:00 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/requires-io-master 22:01:01 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/117019447 22:05:24 -travis-ci:#nikola- getnikola/nikola#7021 (requires-io-master - a6504f3 : requires.io): The build passed. 22:05:25 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/8c4ecf47a48d...a6504f396805 22:05:25 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/117019460