02:53:09 <chronodekar> is there any build-in mechanism with nikola to insert graphs/flowcharts into a post or page? 06:25:22 <gour> morning 06:27:16 <Disconsented> chronodekar> https://getnikola.com/handbook.html#chart 06:28:33 <gour> i've converted all (>200) posts from PHP CMS and. extra images are referenced in rst (converted from pandoc) as: image:: /images/pic.png so wonder where shoud i create that 'images' folder? 06:35:11 <[Tritium]> gour, there is an option to define extra paths to be copied into your output. You could just create images as a sub-directory of files, or you could configure any location 06:35:42 <chronodekar> @Disconsented: Thanks, but that only gives me bar charts. A flow chart or block diagram is a bit different, and does not appear to be a feature of that library. 06:36:34 <Disconsented> http://pygal.org/en/stable/documentation/types/index.html well it supports everything there 06:43:02 <[Tritium]> there is a graphviz plugin which would allow you to make flowcharts. 06:43:47 <[Tritium]> You are literally writing dot indented 3 spaces at that point, though 06:48:20 <ChrisWarrick> gour: there should be an images folder in your nikola site already 06:56:56 <gour> ChrisWarrick: it is, let me check how to reference stuff from there 06:57:27 <ChrisWarrick> gour: the way your importer did 06:57:38 <ChrisWarrick> or with the thumbnail directive if you want thumbnails 06:58:12 <gour> well, i haven't used importer but converted manually via pandoc 06:58:52 <ChrisWarrick> it managed to get everytghing right 07:19:46 <gour> i've post named znati-kada-stati.rst and source file shows: <p><img alt="plakat" src="posts/znati-kada-stati/znati_kada_stati.jpg"></p>, but it's not rendered. conf.py has: IMAGE_FOLDERS = {'images': 'images'}. so what do you recommend to put for IMAGE_FOLDERS in case when i want to have image along with the post and separate image folders for common stuff like emojis etc.? 07:43:53 <ChrisWarrick> gour: IMAGE_FOLDERS = {'images': ''} and make your own directory tree there 07:45:25 <gour> ChrisWarrick: can IMAGE_FOLDERS dictionary have more than one item? 07:45:40 <ChrisWarrick> yes, that's why it's a dictionary 08:48:11 <gour> has something changed in Nikola? iirc, having image along the post (in the folder named post/image.jpg) worked with IMAGE_FOLDERS = {'images': ''}, but now it does not? named 08:49:29 <ChrisWarrick> gour: the left side is source directory 08:49:45 <ChrisWarrick> try {'posts': 'posts'} or whatever 08:50:24 <gour> ahh, that's it, thanks! 08:50:48 * gour was using {'blog':'blog'} in the past 08:52:27 <gour> is there some option to resize images in nikola? 08:54:43 <ChrisWarrick> define "resize"? 08:56:44 <ChrisWarrick> gour: If you want thumbnails, IMAGE_FOLDERS do that by default. If you want to limit maximum image size, you could use a filter for that. 08:58:30 <ChrisWarrick> gour: If you want thumbnails, IMAGE_FOLDERS do that by default. If you want to limit maximum image size, you could use a filter for that. 09:00:54 <gour> ChanServ: e.g. in old CMS, having image of 720x450px, one can say: image.png?resize=550 and get image resized to 550px*344px 09:01:06 <gour> ChrisWarrick: ^^^ 09:01:14 <ChrisWarrick> gour: can't do that with a static website 09:01:37 <gour> i've tried with :scale:, but it does not work 09:02:05 <ChrisWarrick> reST has :width: and :height: IIRC but those affect display 09:03:21 <gour> http://docutils.sourceforge.net/docs/ref/rst/directives.html#image 09:04:25 <gour> ok, when i define width/height, then scale does work :-) 09:08:34 <gour> cool, using :class: works as well ;) 09:13:10 <[Tritium]> ...i can think of ways to make that work on a static site, but it uses a ton of bandwidth and taxes the user's CPU 09:13:48 <[Tritium]> kind of defeats the purpose though 09:15:01 <gour> i agree 09:38:57 <gour> isn't typogrify supposed to convert stuff like: '...', '--', '---' ? 09:42:50 <gour> hmm, it looks that the font is a bit strange 10:22:20 <gour> just tried one Asciidoc post and <!-- TEASER_END --> does not work...it looks as rst is (still) the best option within Nikola... 10:25:47 <ChrisWarrick> gour: Or maybe this isn't asciidoc comment syntax... 10:27:56 <gour> its syntax is: // 10:31:37 <ChrisWarrick> then use that? 10:32:27 <ChrisWarrick> What you need to do, no matter what your input format is, is to get the literal string <!-- TEASER_END --> into the output HTML. 10:36:10 <gour> in any case, it seems better to focus on rst... 10:38:13 <ChrisWarrick> shortcodes should bridge at least part of the gap 10:39:42 <gour> yeah, "part of" ;) 11:30:25 * gour is (fully) back on rst... 11:32:27 <gour> what is the usage of recently adding support for TOML in Nikola? 11:35:17 <ChrisWarrick> gour: https://docs.getnikola.com/en/latest/manual/#creating-a-blog-post → other metadata fields → data 11:37:37 -GitHub[nikola]:#nikola- [nikola] Kwpolska pushed 1 new commit to master: https://git.io/v6p0V 11:37:37 -GitHub[nikola]:#nikola- nikola/master ac49ce3 Chris Warrick: Fix link in manual... 11:37:53 <ChrisWarrick> gour: there was an idea for a TOML config file, but TOML is apparently too stupid to handle this 11:38:30 <gour> ChrisWarrick: yeah, i saw one comment from ralsina :-) 11:40:28 <gour> ChrisWarrick: so, that's is only relevant if one uses 2-files option - one separate file for meta data, right? 11:40:42 <ChrisWarrick> gour: no? 11:41:30 <ChrisWarrick> gour: this is used to provide any data you want to the context for this post. You can use this like post meta data, but the data infrastructure has typed fields and structures 11:41:48 -travis-ci:#nikola- getnikola/nikola#7510 (master - ac49ce3 : Chris Warrick): The build passed. 11:41:49 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/6f9886c936e9...ac49ce34472b 11:41:49 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/155563759 11:42:39 <ChrisWarrick> gour: https://github.com/up-for-grabs/up-for-grabs.net this jekyll website takes YAML files from _data/projects and uses this to display projects on the website 11:43:53 <gour> so, something like this: http://gohugo.io/extras/datafiles/ 11:44:50 <ChrisWarrick> gour: sort of, ours is per-post 11:45:22 <gour> ok, so far i don't think i've a use-case for it, but who knows... 11:46:20 <ChrisWarrick> https://github.com/getnikola/nikola/issues/2450 12:36:01 <chronodekar> is it possible for Nikola to preserve folder structure when generating a site? Assume I have a post in location posts/2016/mypost.rst when the site is generated, is it possible to get something like output/posts/2016/mypost.html generated? i.e. Nikola sees the 2016 folder and creates it in the output ? 13:34:27 <ChrisWarrick> chronodekar: yes 13:34:41 <ChrisWarrick> this is default behavior you can't even disable 13:54:56 <chronodekar> wait, what? 13:55:02 <chronodekar> I need to check this again... 14:01:44 <chronodekar> ChrisWarrick: You're right! My apologies, for some reason I thought it was happening differently. 14:01:58 <chronodekar> might have got mixed up with something else. 15:05:05 <chronodekar> How do you embed an image inside a blogpost (RST-based) ? This - https://getnikola.com/handbook.html#images-and-galleries explains about image galleries, but I that's not what I'm looking for. Does anyone have any example I could look at? 15:06:19 <ChrisWarrick> .. image:: /path/to/image.jpg 15:06:27 <ChrisWarrick> .. thumbnail:: /path/to/image.jpg 15:15:53 <chronodekar> ChrisWarrick: That doesn't quite work for me. At least, here's what I'm doing. I have an image inside my images folder. It's located at - images/heiji-detective-conan.jpg After 'nikola build' this gets copied to output/images/heiji-dective-conan.jpg But inside my RST post, I'm trying .. image:: images/heiji-detective-conan.jpg and it doesn't come up. 15:16:08 <chronodekar> Is there something I'm mis-understanding? 15:16:15 <ChrisWarrick> you need a slash in front of your path 15:16:22 <ChrisWarrick> /images/heiji-detective-conan.jpg 15:16:28 <chronodekar> let me try that 15:17:26 <chronodekar> ChrisWarrick: It's working now. Thanks! :) 15:17:37 <ChrisWarrick> you're welcome 15:24:13 <chronodekar> I was just trying to figure out how caption my image. the image function(?) doesn't have it, but switching to figure give it to me! http://docutils.sourceforge.net/docs/ref/rst/directives.html#figure :) 16:53:59 <chronodekar> I want to play around with custom themes. What I want to do, is make a copy of the base theme inside the 'themes' directory under another name. Have already tried running '$ nikola theme -n theme_test' - this creates a new theme_test directory for me, but (I'm assuming) it imports the base theme. I want a theme without imports. 16:54:06 <chronodekar> Any idea how I can get this? 16:57:12 <chronodekar> Ah, I think I found what I want 16:57:17 <chronodekar> it's was in my VENV folder 16:57:19 <chronodekar> VENV/lib/python3.5/site-packages/nikola/data/themes/base-jinja 18:31:30 <ChrisWarrick> chronodekar: You should have a them that inherits from at least base or base-jinja 18:31:45 <ChrisWarrick> chronodekar: You can then copy files you want to change with nikola theme -c filename.tmpl 22:43:05 <KwBot> [nikola] ralsina opened issue #2477: Global data support https://github.com/getnikola/nikola/issues/2477 23:05:41 -GitHub[nikola]:#nikola- [nikola] ralsina created global-data (+1 new commit): https://git.io/v6htO 23:05:41 -GitHub[nikola]:#nikola- nikola/global-data ee6a182 Roberto Alsina: global data (Issue #2477) 23:06:18 -GitHub[nikola]:#nikola- [nikola] ralsina opened pull request #2478: global data (Issue #2477) (master...global-data) https://git.io/v6hts 23:10:05 -travis-ci:#nikola- getnikola/nikola#7511 (global-data - ee6a182 : Roberto Alsina): The build failed. 23:10:06 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/commit/ee6a182777ec 23:10:06 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/155654041 23:27:33 -GitHub[nikola]:#nikola- [nikola] ralsina pushed 1 new commit to global-data: https://git.io/v6hqU 23:27:33 -GitHub[nikola]:#nikola- nikola/global-data 8378474 Roberto Alsina: lint 23:31:56 -travis-ci:#nikola- getnikola/nikola#7513 (global-data - 8378474 : Roberto Alsina): The build was fixed. 23:31:57 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/ee6a182777ec...8378474e8460 23:31:57 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/155655878 23:43:20 -GitHub[nikola]:#nikola- [nikola] ralsina created tempalte-string-deps (+1 new commit): https://git.io/v6hqw 23:43:20 -GitHub[nikola]:#nikola- nikola/tempalte-string-deps 1820b7b Roberto Alsina: Fix #2455 23:44:40 -GitHub[nikola]:#nikola- [nikola] ralsina opened pull request #2479: Fix #2455 (master...tempalte-string-deps) https://git.io/v6hqK 23:48:41 -travis-ci:#nikola- getnikola/nikola#7515 (tempalte-string-deps - 1820b7b : Roberto Alsina): The build passed. 23:48:42 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/commit/1820b7be213d 23:48:42 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/155657427