[Rt-commit] rt branch, 4.0/images-in-docs, created. rt-4.0.8-323-g8126c55

Thomas Sibley trs at bestpractical.com
Wed Jan 2 16:19:44 EST 2013

The branch, 4.0/images-in-docs has been created
        at  8126c55507ecb17bbcadacb2b39368fd82e50ca0 (commit)

- Log -----------------------------------------------------------------
commit 89ab6e6c68475bd70bc49003b3445a19f095bdbe
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Jan 2 13:14:51 2013 -0800

    Copy documentation images into the destination directory

diff --git a/devel/tools/rt-static-docs b/devel/tools/rt-static-docs
index 0adb375..1730b83 100755
--- a/devel/tools/rt-static-docs
+++ b/devel/tools/rt-static-docs
@@ -53,6 +53,7 @@ use Getopt::Long;
 use File::Temp;
 use File::Spec;
 use File::Path qw(make_path rmtree);
+use File::Copy qw(copy);
 use HTML::Entities qw(encode_entities);
 use RT::Pod::HTMLBatch;
@@ -153,6 +154,11 @@ for my $file (<README* UPGRADING*>) {
     $converter->note_for_contents_file([$name], $file, $dest);
+# Copy images into place
+copy($_, "$opts{to}/images/")
+    for <docs/images/*.{png,jpeg,jpg,gif}>;
 # Temporarily set executable bits on upgrading doc to work around
 # Pod::Simple::Search limitation/bug:
 #    https://rt.cpan.org/Ticket/Display.html?id=80082

commit 8126c55507ecb17bbcadacb2b39368fd82e50ca0
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Jan 2 13:15:33 2013 -0800

    Correct relative paths to docs/images/ in POD
    Both documents are under docs/customizing/, so the paths were incorrect
    to start with.
    It's worth noting that image paths in POD are relative to the generated
    HTML tree, not the POD document itself.  While docs/ exists at the same
    directory level in both source and destination, bin/, sbin/, etc/, and
    lib/ are all one level closer to the images directory once turned into

diff --git a/docs/customizing/lifecycles.pod b/docs/customizing/lifecycles.pod
index acaf50b..9a6f38b 100644
--- a/docs/customizing/lifecycles.pod
+++ b/docs/customizing/lifecycles.pod
@@ -79,7 +79,7 @@ approvals queue, and should not be changed or used by other queues. Do
 not modify the approvals lifecycle unless you fully understand how RT
 approvals work.
-=for html <img alt="Lifecycle choices" src="images/lifecycle-choices.png">
+=for html <img alt="Lifecycle choices" src="../images/lifecycle-choices.png">
 =for :text [Lifecycle choices F<docs/images/lifecycle-choices.png>]
@@ -193,7 +193,7 @@ server), they can be assigned in the web UI to groups, queues, and users.
 The rights show up on the rights pages in a Status tab alongside the
 standard RT rights tabs.
-=for html <img alt="Lifecycle group rights" src="images/global-lifecycle-group-rights.png">
+=for html <img alt="Lifecycle group rights" src="../images/global-lifecycle-group-rights.png">
 =for :text [Lifecycle group rights F<docs/images/global-lifecycle-group-rights.png>]
@@ -281,7 +281,7 @@ in their Actions menu if a ticket has a pending status. The
 L</"Full Configuration"> at the end shows other action entries that
 make the Decline option available in more cases.
-=for html <img alt="Action menu decline" src="images/action-decline.png">
+=for html <img alt="Action menu decline" src="../images/action-decline.png">
 =for :text [Action menu decline F<docs/images/action-decline.png>]
@@ -441,7 +441,7 @@ to experiment.
 Here is an example history of a ticket following this lifecycle:
-=for html <img alt="Lifecycle history" src="images/order-history-example.png">
+=for html <img alt="Lifecycle history" src="../images/order-history-example.png">
 =for :text [Lifecycle history F<docs/images/order-history-example.png>]
diff --git a/docs/customizing/styling_rt.pod b/docs/customizing/styling_rt.pod
index 14bbfd7..c5802a8 100644
--- a/docs/customizing/styling_rt.pod
+++ b/docs/customizing/styling_rt.pod
@@ -41,7 +41,7 @@ RT has some built-in controls to manage the look of the theme you select.
 To use the Theme Editor, log in as a SuperUser (like root), and navigate
 to Tools -> Configuration -> Tools -> Theme.
-=for html <img alt="RT theme editor, defaults" src="images/theme_editor_defaults.png">
+=for html <img alt="RT theme editor, defaults" src="../images/theme_editor_defaults.png">
 =for :text [RT theme editor image at F<docs/images/theme_editor_defaults.png>]


More information about the Rt-commit mailing list