Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Hi,
Ascidoc command line instruction allows/supports to provide location of the asciidoc conf file. Can we do that with asciidoctor ? Asciidoc example --> asciidoc -f common/conf/html5.conf -b html5 Cheers, Charles
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist Twitter : @cmoulliard |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
|
The asciidoc.conf file is not supported in Asciidoctor. We've taken a more flexible, API-driven approach to customization and extensions in Asciidoctor. There are still some gaps to fill, but we've got coverage of the most important two features: templates and extension points. What are you looking to configure? On Mon, Nov 18, 2013 at 2:15 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote: Hi, -- Dan Allen | http://google.com/profiles/dan.j.allen |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
The html5.conf file used by RedHat GPE Training team contains a banner.html and footer.html which is included by asciidoc during rendering process of each asciidoc file (see end of the gist file where you will see include::../banner.html and include::../footer.html)
By example, Banner.txt (=asciidoc) corresponds to the following syntax : :data-uri: image::../common/images/rhheader.png[width=1024,height=152,align="center"]
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist Twitter : @cmoulliard |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Administrator
|
In order to include custom header and footer HTML, you need to override the document template. You can do this by 1. Grabbing one of the document templates from the asciidoctor-backends repository: haml: https://github.com/asciidoctor/asciidoctor-backends/blob/master/haml/html5/document.html.haml
slim: https://github.com/asciidoctor/asciidoctor-backends/blob/master/slim/html5/document.html.slim 2. Save the file to a custom backends directory of your choice 3. Modifying the template however you want 4. Specifying the location of the custom backends directory when you run Asciidoctor asciidoctor -T /path/to/backends file.adoc If calling Asciidoctor via the API, use the option :templates_dir => '/path/to/backends' Note that you can also use the docinfo footer file to include custom HTML, but you are limited to where Asciidoctor places it by default (unless you also modify the document template). On Mon, Nov 18, 2013 at 3:51 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote: The html5.conf file used by RedHat GPE Training team contains a banner.html and footer.html which is included by asciidoc during rendering process of each asciidoc file (see end of the gist file where you will see include::../banner.html and include::../footer.html) ... [show rest of quote] -- Dan Allen | http://google.com/profiles/dan.j.allen |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
This is finally what I have done. Customising the backend file (HTML5 HAML file).
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist Twitter : @cmoulliard |
Free forum by Nabble | Edit this page |