Logs for #nikola for 2017-01-21

19:46:46 <ToApolytoXaos> ChrisWarrick: has anyone reported any bug around new_post command so far?
19:46:57 <ToApolytoXaos> with the latest nikola release that is
19:46:57 <ChrisWarrick> ToApolytoXaos: ?
19:47:02 <ChrisWarrick> ToApolytoXaos: not yet
19:47:13 <ToApolytoXaos> when I typed nikola new_post, it asked me to insert title
19:47:16 <ChrisWarrick> ToApolytoXaos: the last bug was in new_page not new_post, and caused by a minor oversight
19:47:28 <ToApolytoXaos> I did and successfully created my .rst file with the proper slug name
19:47:50 <ToApolytoXaos> but when I open the generated file to edit it, I cannot see any title set or whatsoever
19:48:15 <ChrisWarrick> cannot reproduce
19:48:40 <ToApolytoXaos> give me a second to try something
19:50:22 <ToApolytoXaos> lol false alarm; it pushes the darn scroll up a bit
19:50:25 <ToApolytoXaos> freaking vim!
19:51:20 <ChrisWarrick> cannot reproduce that either.
19:51:59 <ToApolytoXaos> it's my problem; xfce4 on my system does some weird things
19:52:07 <ToApolytoXaos> it flicks at random moments
19:52:20 <ToApolytoXaos> I don't know whether it's something that has to do with intel driver or not
19:56:54 <ToApolytoXaos> btw, can we customize what meta tag info can be generated inside a new post?
20:00:46 <ChrisWarrick> no
20:01:25 <ChrisWarrick> oh wait, of course there’s a config option for that
20:01:28 <ChrisWarrick> # Additional metadata that is added to a post when creating a new_post
20:01:28 <ChrisWarrick> # ADDITIONAL_METADATA = {}
20:03:47 <ToApolytoXaos> isn't there a way to turn off of certain metadata fields I don't like?
20:04:40 <ChrisWarrick> no
20:04:44 <ToApolytoXaos> bummer :/
20:04:46 <ChrisWarrick> feel free to ignore them
20:04:54 <ToApolytoXaos> oh well
20:06:10 <ToApolytoXaos> I have realized something right now. h1 are not generated
20:06:14 <ToApolytoXaos> nor h2
20:06:17 <ToApolytoXaos> how come?
20:06:22 <ChrisWarrick> DEMOTE_HEADERS
20:06:30 <ToApolytoXaos> is this a new feature?
20:06:34 <ChrisWarrick> ancient
20:06:38 <ToApolytoXaos> no kidding
20:06:41 <ChrisWarrick> <h2> should be generated by default
20:06:51 <ToApolytoXaos> why have I got the impression it worked before?
20:08:45 <ChrisWarrick> ToApolytoXaos: it didn’t. We always demoted headers by one level for most markup formats (excluding HTML, Pandoc and I think Jupyter)
20:09:22 <ToApolytoXaos> OK, if I type Foo ---, shouldn't it generate an h2 as it would be expected?
20:09:55 <ChrisWarrick> In Markdown, Nikola will make it h3 (unless DEMOTE_HEADERS was changed from the default 1)
20:10:05 <ToApolytoXaos> rst
20:10:25 <ChrisWarrick> in reST, that depends on your document
20:10:32 <ToApolytoXaos> meaning?
20:10:50 <ChrisWarrick> --- might mean anything depending on ordering, --- does not always mean h2
20:11:06 <ChrisWarrick> foo === bar --- baz ~~~ foobar ======
20:11:23 <ChrisWarrick> foo ~~~ bar === baz --- foobar ~~~~~~
20:11:44 <ChrisWarrick> In *both* examples: foo and foobar are h1, bar is h2, baz is h3  (outside of Nikola demotion)
20:12:49 <ChrisWarrick> If DEMOTE_HEADERS = 0: foo is h1; if DEMOTE_HEADERS = 1 (default): foo is h2, bar is h3, baz is h4
20:12:52 <ToApolytoXaos> well, I'm reading this http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#sections
20:13:19 <ChrisWarrick> Rather than imposing a fixed number and order of section title adornment styles, the order enforced will be the order as encountered. The first style encountered will be an outermost title (like HTML H1), the second style will be a subtitle, the third will be a subsubtitle, and so on.
20:13:20 <ToApolytoXaos> I'm trying to use the subtitle example and it's not generating it
20:13:47 <ChrisWarrick> we don’t support reST titles and subtitles
20:13:53 <ToApolytoXaos> oh?
20:14:40 <ChrisWarrick> we may or may not succeed at getting the reST title, but please use the meta tag; the subtitles are always ignored though
20:15:06 <ToApolytoXaos> so, how am I supposed to generate a subtitle or a h2?
20:15:15 <ToApolytoXaos> by enabling DEMOTE_HEADERS?
20:22:23 <ToApolytoXaos> can you enlighten me a bit with this code? https://www.getnikola.com/handbook.txt
20:22:37 <ToApolytoXaos> the "All you need to know" section works as expected
20:22:50 <ToApolytoXaos> if I try the same on a new post of mine, it does not work
20:37:15 <ChrisWarrick> ToApolytoXaos: The Nikola Handbook is the first header, so it becomes h1
20:37:40 <ToApolytoXaos> yeah, until you replied, I have figured it out
20:37:46 <ToApolytoXaos> thank you anyway :)
20:38:32 <ChrisWarrick> yw
20:53:15 <ToApolytoXaos> ChrisWarrick: is there a list to see what kind of code styles ".. code::" it supports?
20:53:25 <ToApolytoXaos> text is too dry
21:16:26 <KwBot> [nikola] sebelk opened issue #2643: Problem con plugin ical https://github.com/getnikola/nikola/issues/2643
22:14:20 <ToApolytoXaos> ChrisWarrick: what format do you usually use for your SITE_URL so it can work locally and on a live server, without affecting disqus's behavior?
22:14:34 <ToApolytoXaos> if I go with "/", I face problems
22:14:45 <ToApolytoXaos> if I go with full domain name, it works as expected
22:17:34 <ToApolytoXaos> I mean absolute path