Is there a way to add a banner / footer to a group of asciidoc

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there a way to add a banner / footer to a group of asciidoc

ch007m
Hi,

Is there an option to add a banner and/or footer  (= HTML page containing logo and generated from asciidoc - include image) to a list/group of asciidoc processed ?

Example

page1.adoc
page2.doc
page3.doc

After rendering

page1.html should start with banner followed by HTML of page1 and pages3 should finish with footer

Regards,

Charles
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to add a banner / footer to a group of asciidoc

LightGuardjp
Administrator


On Mon, Nov 18, 2013 at 11:23 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

Is there an option to add a banner and/or footer  (= HTML page containing logo and generated from asciidoc - include image) to a list/group of asciidoc processed ?

Example

page1.adoc
page2.doc
page3.doc

After rendering

page1.html should start with banner followed by HTML of page1 and pages3 should finish with footer

Regards,

Charles


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-there-a-way-to-add-a-banner-footer-to-a-group-of-asciidoc-tp1012.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to add a banner / footer to a group of asciidoc

ch007m
I tried to use what is described in the ticket without success. So, until now, I have modified the HTML5 document.html.haml file to include header and footer

Header

   - unless noheader
      -# AsciiDoc leaves an empty header div even if there's no doctitle
      #header
        - # Include Image
        %img{:src => 'images/Image.png', :width => '1024', :height => '152', :align => 'center'}


Footer

    #footer
      - # Include  Image
      .footer-image
        %img{:src => 'images/rhImage.png', :width => '597', :height => '77'}
      #footer-text




On Thu, Nov 21, 2013 at 8:41 PM, LightGuardjp [via Asciidoctor :: Discussion] <[hidden email]> wrote:


On Mon, Nov 18, 2013 at 11:23 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

Is there an option to add a banner and/or footer  (= HTML page containing logo and generated from asciidoc - include image) to a list/group of asciidoc processed ?

Example

page1.adoc
page2.doc
page3.doc

After rendering

page1.html should start with banner followed by HTML of page1 and pages3 should finish with footer

Regards,

Charles


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-there-a-way-to-add-a-banner-footer-to-a-group-of-asciidoc-tp1012.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-there-a-way-to-add-a-banner-footer-to-a-group-of-asciidoc-tp1012p1045.html
To unsubscribe from Is there a way to add a banner / footer to a group of asciidoc, click here.
NAML



--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to add a banner / footer to a group of asciidoc

mojavelinux
Administrator
Charles,

For what you are trying to do, modifying the document template is the right way to go.

-Dan


On Fri, Nov 22, 2013 at 1:03 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I tried to use what is described in the ticket without success. So, until now, I have modified the HTML5 document.html.haml file to include header and footer

Header

   - unless noheader
      -# AsciiDoc leaves an empty header div even if there's no doctitle
      #header
        - # Include Image
        %img{:src => 'images/Image.png', :width => '1024', :height => '152', :align => 'center'}


Footer

    #footer
      - # Include  Image
      .footer-image
        %img{:src => 'images/rhImage.png', :width => '597', :height => '77'}
      #footer-text




On Thu, Nov 21, 2013 at 8:41 PM, LightGuardjp [via Asciidoctor :: Discussion] <[hidden email]> wrote:


On Mon, Nov 18, 2013 at 11:23 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

Is there an option to add a banner and/or footer  (= HTML page containing logo and generated from asciidoc - include image) to a list/group of asciidoc processed ?

Example

page1.adoc
page2.doc
page3.doc

After rendering

page1.html should start with banner followed by HTML of page1 and pages3 should finish with footer

Regards,

Charles


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-there-a-way-to-add-a-banner-footer-to-a-group-of-asciidoc-tp1012.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-there-a-way-to-add-a-banner-footer-to-a-group-of-asciidoc-tp1012p1045.html
To unsubscribe from Is there a way to add a banner / footer to a group of asciidoc, click here.
NAML



--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-there-a-way-to-add-a-banner-footer-to-a-group-of-asciidoc-tp1012p1048.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Is there a way to add a banner / footer to a group of asciidoc

ch007m
This is what I have done and I'm thinking to propose to add new attributes that everyone could use to add a footer or header image to the document template. Does it make sense ?

footer-image::
src
src[alt, width, height, position]
header-image::src[alt, width, height, position]

where css looks like

/* Define New image */
.footer-image .header-image {
    margin:auto;
    text-align:center; // Should correspond to the position selected
}

Until now, I'm not sure (using less, sass) if it could be possible to pass the position as a variable @position to text-align ?


On Sun, Nov 24, 2013 at 11:53 PM, mojavelinux [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Charles,

For what you are trying to do, modifying the document template is the right way to go.

-Dan


On Fri, Nov 22, 2013 at 1:03 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I tried to use what is described in the ticket without success. So, until now, I have modified the HTML5 document.html.haml file to include header and footer

Header

   - unless noheader
      -# AsciiDoc leaves an empty header div even if there's no doctitle
      #header
        - # Include Image
        %img{:src => 'images/Image.png', :width => '1024', :height => '152', :align => 'center'}


Footer

    #footer
      - # Include  Image
      .footer-image
        %img{:src => 'images/rhImage.png', :width => '597', :height => '77'}
      #footer-text




On Thu, Nov 21, 2013 at 8:41 PM, LightGuardjp [via Asciidoctor :: Discussion] <[hidden email]> wrote:


On Mon, Nov 18, 2013 at 11:23 AM, ch007m [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi,

Is there an option to add a banner and/or footer  (= HTML page containing logo and generated from asciidoc - include image) to a list/group of asciidoc processed ?

Example

page1.adoc
page2.doc
page3.doc

After rendering

page1.html should start with banner followed by HTML of page1 and pages3 should finish with footer

Regards,

Charles


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-there-a-way-to-add-a-banner-footer-to-a-group-of-asciidoc-tp1012.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-there-a-way-to-add-a-banner-footer-to-a-group-of-asciidoc-tp1012p1045.html
To unsubscribe from Is there a way to add a banner / footer to a group of asciidoc, click here.
NAML



--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io




If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-there-a-way-to-add-a-banner-footer-to-a-group-of-asciidoc-tp1012p1048.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-there-a-way-to-add-a-banner-footer-to-a-group-of-asciidoc-tp1012p1075.html
To unsubscribe from Is there a way to add a banner / footer to a group of asciidoc, click here.
NAML



--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard