Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
4 posts
|
Hi guys, I am new to the whole awestruct/asciidoctor thing, and I am starting by setting up some really basic stuff. But it seems that my attribute assignments are being ignored. Here's the relevant .adoc code: = Top header :imagesdir: /asciidoctor/images :awestruct-layout: base :toc: right :toc-title: Sections == Sample header Imagesdir: {imagesdir} {toc} But the output for imagesdir is '/images', and for toc it's blank. The awestruct-layout setting works, however -- but nothing else does. When I compile the sample .adoc file on command line, it processes the attributes correctly (e.g. it properly sets the imagesdir attribute). Can anyone help me figure out what am I doing wrong? My software versions: $ gem list | egrep 'awestruct|asciidoctor'; ruby --version asciidoctor (0.1.4) awestruct (0.5.4.rc3, 0.5.3) ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] And my site.yml asciidoctor section (ripped straight out of a tutorial): asciidoctor: :safe: safe :attributes: sitename: WriteAdapt name: BlahName base_url: '' ctx_path: '' idprefix: '' idseparator: '-' sectanchors: '' icons: fontThanks in advance guys! |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
4 posts
|
By the way, if I set an arbitrary attribute (e.g. 'testvar') it sets just fine -- it's only the standard attributes that I can't set.
Please, can someone give me an idea what I may be doing wrong? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
354 posts
|
First look: Not sure, everything looks like it should be working correctly. On Mon, Mar 17, 2014 at 12:48 PM, vdanilchenko [via Asciidoctor :: Discussion] <[hidden email]> wrote: By the way, if I set an arbitrary attribute (e.g. 'testvar') it sets just fine -- it's only the standard attributes that I can't set. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
4 posts
|
In reply to this post by vdanilchenko
Apparently the order of the variables' assignment also changes everything!
If I assign :awestruct-layout: first, the :toc: and :toc-title: get ignored. If I assign :toc: and :toc-title: first, :awestruct-layout: gets ignored. In this case, ALL assignments after the :toc ones, actually get rendered as HTML text, so I get a line on top of the page with the attribute assignments. The assignments before :toc work. I can also use the {set:attrname:...} syntax, and this works even in the second case (when :toc gets honored but everything after :toc is rendered as text) -- but I still can't use {set:imagesdir:/asciidoctor/images}, the value gets ignored. I am feeling like I am running into a completely random set of problems... it's incredibly frustrating. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
354 posts
|
I would agree that this is a random set of problems. It shouldn't be the case. Here's a list of sites built with awestruct and asciidoctor which should help: On Mon, Mar 17, 2014 at 2:11 PM, vdanilchenko [via Asciidoctor :: Discussion] <[hidden email]> wrote: Apparently the order of the variables' assignment also changes everything! ... [show rest of quote] |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
4 posts
|
In reply to this post by vdanilchenko
Thanks, looking at those sites' code should help.
|
Free forum by Nabble | Edit this page |