[spp] [PATCH 03/11] docs: resize figures of SPP

ogawa.yasufumi at lab.ntt.co.jp ogawa.yasufumi at lab.ntt.co.jp
Fri Aug 31 11:14:33 CEST 2018


From: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>

This patch is for resizing figures in SPP docs for PDF format.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
---
 docs/guides/commands/experimental.rst |  6 +++---
 docs/guides/overview.rst              |  7 ++++---
 docs/guides/setup/use_cases.rst       | 24 ++++++++----------------
 3 files changed, 15 insertions(+), 22 deletions(-)

diff --git a/docs/guides/commands/experimental.rst b/docs/guides/commands/experimental.rst
index 42ba371..81dceac 100644
--- a/docs/guides/commands/experimental.rst
+++ b/docs/guides/commands/experimental.rst
@@ -94,7 +94,7 @@ and save this script as
 .. _figure_topo_term_exp:
 
 .. figure:: ../images/commands/expr/topo_term_exp.*
-   :width: 440 em
+   :width: 67%
 
    topo term example
 
@@ -202,7 +202,7 @@ following.
 .. _figure_topo_subg_before:
 
 .. figure:: ../images/commands/expr/topo_subg_before.*
-   :width: 440 em
+   :width: 67%
 
    Before using topo_subgraph
 
@@ -223,7 +223,7 @@ In this case, add subgraph ``guest_vm`` and includes resoures
 .. _figure_topo_subg_after:
 
 .. figure:: ../images/commands/expr/topo_subg_after.*
-   :width: 440 em
+   :width: 67%
 
    After using topo_subgraph
 
diff --git a/docs/guides/overview.rst b/docs/guides/overview.rst
index fd1415f..9e1c426 100644
--- a/docs/guides/overview.rst
+++ b/docs/guides/overview.rst
@@ -40,9 +40,10 @@ Overview
 functionality for Service Function Chaining in
 NFV (Network Function Virtualization).
 
-.. image:: images/overview/spp_overview.svg
-   :height: 350 em
-   :width: 350 em
+.. figure:: images/overview/spp_overview.*
+    :width: 50%
+
+    SPP overview
 
 With SPP, user is able to configure network easily and dynamically
 via simple patch panel like interface.
diff --git a/docs/guides/setup/use_cases.rst b/docs/guides/setup/use_cases.rst
index 2c83fe0..1e31949 100644
--- a/docs/guides/setup/use_cases.rst
+++ b/docs/guides/setup/use_cases.rst
@@ -86,8 +86,7 @@ Confirm that status of ``sec 1`` is updated.
 .. _figure_spp_nfv_as_l2fwd:
 
 .. figure:: ../images/setup/use_cases/spp_nfv_l2fwd.*
-   :height: 380 em
-   :width: 380 em
+   :width: 52%
 
    spp_nfv as l2fwd
 
@@ -149,8 +148,7 @@ from ``phy:1`` to ``phy:0`` for ``sec 2``.
 .. _figure_spp_two_nfv_as_l2fwd:
 
 .. figure:: ../images/setup/use_cases/spp_two_nfv_l2fwd.*
-   :height: 420 em
-   :width: 420 em
+   :width: 52%
 
    Two spp_nfv as l2fwd
 
@@ -171,8 +169,7 @@ Patch ``phy:0`` to ``phy:0`` for ``sec 1`` and
 .. _figure_spp_two_nfv_loopback:
 
 .. figure:: ../images/setup/use_cases/spp_two_nfv_loopback.*
-   :height: 420 em
-   :width: 420 em
+   :width: 52%
 
    Two spp_nfv for loopback
 
@@ -240,8 +237,7 @@ Then, connect it with ``patch`` subcommand.
 .. _figure_spp_uni_directional_l2fwd:
 
 .. figure:: ../images/setup/use_cases/spp_unidir_l2fwd.*
-   :height: 460 em
-   :width: 460 em
+   :width: 52%
 
    Uni-Directional l2fwd
 
@@ -295,8 +291,7 @@ Then, add ``ring 0`` and ``ring 1`` to ``sec 2``.
 .. _figure_spp_bi_directional_l2fwd:
 
 .. figure:: ../images/setup/use_cases/spp_bidir_l2fwd.*
-   :height: 460 em
-   :width: 460 em
+   :width: 52%
 
    Bi-Directional l2fwd
 
@@ -361,8 +356,7 @@ with ``sec 2``.
 .. _figure_spp_uni_directional_l2fwd_vhost:
 
 .. figure:: ../images/setup/use_cases/spp_unidir_l2fwd_vhost.*
-   :height: 460 em
-   :width: 460 em
+   :width: 52%
 
    Uni-Directional l2fwd with vhost
 
@@ -419,8 +413,7 @@ As the first usecase, add a pcap PMD and capture incoming packets from
 .. _figure_spp_pcap_incoming:
 
 .. figure:: ../images/setup/use_cases/spp_pcap_incoming.*
-   :height: 380 em
-   :width: 380 em
+   :width: 50%
 
    Rapture incoming packets
 
@@ -461,8 +454,7 @@ Then, add pcap PMD to another ``spp_nfv`` with index ``2``.
 .. _figure_spp_pcap_restoring:
 
 .. figure:: ../images/setup/use_cases/spp_pcap_restoring.*
-   :height: 380 em
-   :width: 380 em
+   :width: 52%
 
    Restore dumped packets
 
-- 
2.7.4



More information about the spp mailing list