docs: 4kify images.

These commits were squashed to avoid repo size exploding.

[cherrypick from master]
pull/862/head
David Wilson 6 years ago
parent 2ab6394d1c
commit 71f8e84845

@ -10,3 +10,43 @@ div.figure {
div.body li {
margin-bottom: 0.5em;
}
/*
* Setting :width; on an image causes Sphinx to turn the image into a link, so
* set :Class: instead.
*/
.mitogen-full-width {
width: 100%;
}
.mitogen-right-150 {
float: right;
padding-left: 8px;
width: 150px;
}
.mitogen-right-225 {
float: right;
padding-left: 8px;
width: 225px;
}
.mitogen-right-275 {
float: right;
padding-left: 8px;
width: 275px;
}
.mitogen-right-300 {
float: right;
padding-left: 8px;
width: 300px;
}
.mitogen-right-350 {
float: right;
padding-left: 8px;
width: 350px;
}

@ -1,6 +1,7 @@
.. image:: images/ansible/cell_division.png
:align: right
.. image:: images/ansible/ansible_mitogen.svg
:class: mitogen-right-225
Mitogen for Ansible
===================
@ -211,8 +212,8 @@ New Features & Notes
Connection Delegation
~~~~~~~~~~~~~~~~~~~~~
.. image:: images/jumpbox.png
:align: right
.. image:: images/jumpbox.svg
:class: mitogen-right-275
Included is a preview of **Connection Delegation**, a Mitogen-specific
implementation of `stackable connection plug-ins`_. This enables connections
@ -957,12 +958,12 @@ Sample Profiles
Local VM connection
~~~~~~~~~~~~~~~~~~~
This demonstrates Mitogen vs. connection pipelining to a local VM, executing
the 100 simple repeated steps of ``run_hostname_100_times.yml`` from the
examples directory. Mitogen requires **43x less bandwidth and 4.25x less
time**.
This demonstrates Mitogen vs. connection pipelining to a local VM executing
``bench/loop-100-items.yml``, which simply executes ``hostname`` 100 times.
Mitogen requires **43x less bandwidth and 6.5x less time**.
.. image:: images/ansible/run_hostname_100_times.png
.. image:: images/ansible/run_hostname_100_times_mito.svg
.. image:: images/ansible/run_hostname_100_times_plain.svg
Kathmandu to Paris

@ -71,8 +71,8 @@ mitogen.parent
mitogen.fakessh
---------------
.. image:: images/fakessh.png
:align: right
.. image:: images/fakessh.svg
:class: mitogen-right-300
.. automodule:: mitogen.fakessh
.. currentmodule:: mitogen.fakessh

@ -13,8 +13,8 @@ Liability Waiver
Before proceeding, it is critical you understand what you're involving yourself
and possibly your team and its successors with:
.. image:: images/pandora.jpg
:align: right
.. image:: images/pandora.svg
:class: mitogen-right-350
* Constructing the most fundamental class, :py:class:`Broker
<mitogen.master.Broker>`, causes a new thread to be spawned, exposing a huge
@ -78,7 +78,9 @@ operate across machines and privilege domains:
Broker And Router
-----------------
.. image:: images/layout.png
.. image:: images/layout.svg
:class: mitogen-full-width
.. currentmodule:: mitogen.core
Execution starts when your program constructs a :py:class:`Broker` and

@ -554,7 +554,8 @@ associated with that stream if the stream is disconnected for any reason.
Example
#######
.. image:: images/context-tree.png
.. image:: images/context-tree.svg
:class: mitogen-full-width
In the diagram, when ``node12b`` is creating the ``sudo:node12b:webapp``
context, it must send ``ADD_ROUTE`` messages to ``rack12``, which will
@ -572,7 +573,8 @@ When ``sudo:node22a:webapp`` wants to send a message to
``sudo:node22a:webapp -> node22a -> rack22 -> dc2 -> bastion -> dc1 -> rack12 -> node12b -> sudo:node12b:webapp``
.. image:: images/route.png
.. image:: images/route.svg
:class: mitogen-full-width
.. _source-verification:

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 84 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 88 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 89 KiB

@ -12,8 +12,8 @@ Mitogen is a Python library for writing distributed self-replicating programs.
}
</style>
.. image:: images/cell_division.png
:align: right
.. image:: images/mitogen.svg
:class: mitogen-right-225
There is no requirement for installing packages, copying files around, writing
shell snippets, upfront configuration, or providing any secondary link to a
@ -76,8 +76,8 @@ program's domain of control outward to other machines, enabling your program to
**manipulate machines behind a firewall**, or enable its **data plane to cohere
to your network topology**.
.. image:: images/billing.png
:align: right
.. image:: images/billing.svg
:class: mitogen-right-150
.. code::
@ -158,8 +158,8 @@ Common sources of import latency and bandwidth consumption are mitigated:
SSH Client Emulation
####################
.. image:: images/fakessh.png
:align: right
.. image:: images/fakessh.svg
:class: mitogen-right-300
Support is included for starting subprocesses with a modified environment, that
cause their attempt to use SSH to be redirected back into the host program. In
@ -192,7 +192,8 @@ for example enforce an interactive TTY and account password.
Message Routing
###############
.. image:: images/route.png
.. image:: images/route.svg
:class: mitogen-full-width
Slaves may communicate autonomously without direct interaction with the master,
allowing a wide variety of complex data and control flows to be expressed using
@ -230,7 +231,8 @@ uptime')** without further need to capture or manage output.
Detached Subtrees
#################
.. image:: images/detached-subtree.png
.. image:: images/detached-subtree.svg
:class: mitogen-full-width
Contexts may detach from and outlive the running program, while maintaining
communication with descendents in their subtree. This enables persistent

@ -0,0 +1,13 @@
# Add viewBox attr to SVGs lacking it, so IE scales properly.
import lxml.etree
import glob
for name in glob.glob('images/*.svg') + glob.glob('images/ansible/*.svg'):
doc = lxml.etree.parse(open(name))
svg = doc.getroot()
if 'viewBox' not in svg.attrib:
svg.attrib['viewBox'] = '0 0 %(width)s %(height)s' % svg.attrib
open(name, 'w').write(lxml.etree.tostring(svg, xml_declaration=True, encoding='UTF-8'))
Loading…
Cancel
Save