Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
5 posts
|
Is there any documentation, or is it even possible, to insert another .adoc (or another file type) as a Footer or Header?
|
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
|
Take at look at docinfo files: http://asciidoctor.org/docs/user-manual/#docinfo-file On Mon, Oct 5, 2015 at 9:50 AM, SigmaSquared [via Asciidoctor :: Discussion] <[hidden email]> wrote: Is there any documentation, or is it even possible, to insert another .adoc (or another file type) as a Footer or Header? -- |
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
2681 posts
|
And it's scheduled for 1.5.3 to allow docinfo files to be AsciiDoc. Though it's possible to accomplish with 1.5.2 using the DocinfoProcessor extension point. Cheers, -Dan Le 5 oct. 2015 10:54 AM, "LightGuardjp [via Asciidoctor :: Discussion]" <[hidden email]> a écrit :
... [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 |
126 posts
|
You can also "Include" files, if that's what you meant: http://asciidoctor.org/docs/user-manual/#include-directive
- Ted
@TedAtCIS
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
5 posts
|
In reply to this post by mojavelinux
It appears that this footer & header 'injection' using docinfo, at this point, only works with HTML and docbook as the output file types. Is this also true for DocinfoProcessor?
Unlike the link provided by LightGuardjp, DocinfoProcessor's documentation didn't say what the output file types were. However, ManpageMacro that's used in the example for DocinfoProcessor, references HTML in it's example. I can only guess that the answer is that the output files for both ways, is only for html and docbook, but I want to be sure. Excuse me if i'm not asking the right questions, as i'm just now learning about Asciidoctor. Many thanks. |
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
2681 posts
|
On Mon, Oct 5, 2015 at 9:01 PM, SigmaSquared [via Asciidoctor :: Discussion] <[hidden email]> wrote:
The DocinfoProcessor can do whatever it wants in the process method, but ultimately needs to return an HTML or DocBook string to inject (whatever is appropriate for the current backend). To get that HTML or DocBook, it can run Asciidoctor on other source content. Here's the link to the issue for allowing AsciiDoc content in docinfo files, btw: There's also an example of a DocinfoProcessor linked in that issue. Cheers, |
Free forum by Nabble | Edit this page |