diff mbox

doc: guides: embed icons and images in html

Message ID 1449261988-3720-1-git-send-email-mike.holmes@linaro.org
State Accepted
Commit a4f8caf51f5b33d63c70dd42ed92c8fbc73c8c1d
Headers show

Commit Message

Mike Holmes Dec. 4, 2015, 8:46 p.m. UTC
The icons in the generated guide have a system dependent location.
If the system used to view the docs does not have asciidoc installed
no icons will be displayed.

Embed the images so that the output is self-contained.

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 doc/implementers-guide/Makefile.am | 2 +-
 doc/users-guide/Makefile.am        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Bill Fischofer Dec. 5, 2015, 2:24 a.m. UTC | #1
On Fri, Dec 4, 2015 at 2:46 PM, Mike Holmes <mike.holmes@linaro.org> wrote:

> The icons in the generated guide have a system dependent location.

> If the system used to view the docs does not have asciidoc installed

> no icons will be displayed.

>

> Embed the images so that the output is self-contained.

>

> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>

>


Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>



> ---

>  doc/implementers-guide/Makefile.am | 2 +-

>  doc/users-guide/Makefile.am        | 2 +-

>  2 files changed, 2 insertions(+), 2 deletions(-)

>

> diff --git a/doc/implementers-guide/Makefile.am

> b/doc/implementers-guide/Makefile.am

> index d653968..f0832f1 100644

> --- a/doc/implementers-guide/Makefile.am

> +++ b/doc/implementers-guide/Makefile.am

> @@ -6,7 +6,7 @@ all-local: $(TARGET)

>

>  $(TARGET): implementers-guide.adoc

>         @mkdir -p $(top_srcdir)/doc/output

> -       asciidoc -b html5  -a icons -a toc2  -a max-width=55em

> --out-file=$@ $<

> +       asciidoc -a data-uri -b html5  -a icons -a toc2  -a max-width=55em

> --out-file=$@ $<

>

>  clean-local:

>         rm -f $(TARGET)

> diff --git a/doc/users-guide/Makefile.am b/doc/users-guide/Makefile.am

> index 8e60312..383894a 100644

> --- a/doc/users-guide/Makefile.am

> +++ b/doc/users-guide/Makefile.am

> @@ -6,7 +6,7 @@ all-local: $(TARGET)

>

>  $(TARGET): users-guide.adoc

>         @mkdir -p $(top_srcdir)/doc/output

> -       asciidoc -b html5  -a icons -a toc2  -a max-width=55em

> --out-file=$@ $<

> +       asciidoc -a data-uri -b html5  -a icons -a toc2  -a max-width=55em

> --out-file=$@ $<

>

>  clean-local:

>         rm -f $(TARGET)

> --

> 2.5.0

>

> _______________________________________________

> lng-odp mailing list

> lng-odp@lists.linaro.org

> https://lists.linaro.org/mailman/listinfo/lng-odp

>
Maxim Uvarov Dec. 7, 2015, 12:31 p.m. UTC | #2
Merged,
Maxim.

On 12/05/2015 05:24, Bill Fischofer wrote:
>
>
> On Fri, Dec 4, 2015 at 2:46 PM, Mike Holmes <mike.holmes@linaro.org 
> <mailto:mike.holmes@linaro.org>> wrote:
>
>     The icons in the generated guide have a system dependent location.
>     If the system used to view the docs does not have asciidoc installed
>     no icons will be displayed.
>
>     Embed the images so that the output is self-contained.
>
>     Signed-off-by: Mike Holmes <mike.holmes@linaro.org
>     <mailto:mike.holmes@linaro.org>>
>
>
> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org 
> <mailto:bill.fischofer@linaro.org>>
>
>     ---
>      doc/implementers-guide/Makefile.am | 2 +-
>      doc/users-guide/Makefile.am        | 2 +-
>      2 files changed, 2 insertions(+), 2 deletions(-)
>
>     diff --git a/doc/implementers-guide/Makefile.am
>     b/doc/implementers-guide/Makefile.am
>     index d653968..f0832f1 100644
>     --- a/doc/implementers-guide/Makefile.am
>     +++ b/doc/implementers-guide/Makefile.am
>     @@ -6,7 +6,7 @@ all-local: $(TARGET)
>
>      $(TARGET): implementers-guide.adoc
>             @mkdir -p $(top_srcdir)/doc/output
>     -       asciidoc -b html5  -a icons -a toc2  -a max-width=55em
>     --out-file=$@ $<
>     +       asciidoc -a data-uri -b html5  -a icons -a toc2 -a
>     max-width=55em --out-file=$@ $<
>
>      clean-local:
>             rm -f $(TARGET)
>     diff --git a/doc/users-guide/Makefile.am b/doc/users-guide/Makefile.am
>     index 8e60312..383894a 100644
>     --- a/doc/users-guide/Makefile.am
>     +++ b/doc/users-guide/Makefile.am
>     @@ -6,7 +6,7 @@ all-local: $(TARGET)
>
>      $(TARGET): users-guide.adoc
>             @mkdir -p $(top_srcdir)/doc/output
>     -       asciidoc -b html5  -a icons -a toc2  -a max-width=55em
>     --out-file=$@ $<
>     +       asciidoc -a data-uri -b html5  -a icons -a toc2 -a
>     max-width=55em --out-file=$@ $<
>
>      clean-local:
>             rm -f $(TARGET)
>     --
>     2.5.0
>
>     _______________________________________________
>     lng-odp mailing list
>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
>     https://lists.linaro.org/mailman/listinfo/lng-odp
>
>
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp
diff mbox

Patch

diff --git a/doc/implementers-guide/Makefile.am b/doc/implementers-guide/Makefile.am
index d653968..f0832f1 100644
--- a/doc/implementers-guide/Makefile.am
+++ b/doc/implementers-guide/Makefile.am
@@ -6,7 +6,7 @@  all-local: $(TARGET)
 
 $(TARGET): implementers-guide.adoc
 	@mkdir -p $(top_srcdir)/doc/output
-	asciidoc -b html5  -a icons -a toc2  -a max-width=55em --out-file=$@ $<
+	asciidoc -a data-uri -b html5  -a icons -a toc2  -a max-width=55em --out-file=$@ $<
 
 clean-local:
 	rm -f $(TARGET)
diff --git a/doc/users-guide/Makefile.am b/doc/users-guide/Makefile.am
index 8e60312..383894a 100644
--- a/doc/users-guide/Makefile.am
+++ b/doc/users-guide/Makefile.am
@@ -6,7 +6,7 @@  all-local: $(TARGET)
 
 $(TARGET): users-guide.adoc
 	@mkdir -p $(top_srcdir)/doc/output
-	asciidoc -b html5  -a icons -a toc2  -a max-width=55em --out-file=$@ $<
+	asciidoc -a data-uri -b html5  -a icons -a toc2  -a max-width=55em --out-file=$@ $<
 
 clean-local:
 	rm -f $(TARGET)