From 861be2e3de9a0e55ea940ea942d6ac6d6ccc4243 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 25 Nov 2018 18:33:31 +0000 Subject: [PATCH] docs: wrap text around logos --- docs/_static/style.css | 13 +++++++++++++ docs/ansible.rst | 7 +++---- docs/index.rst | 6 +++--- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/docs/_static/style.css b/docs/_static/style.css index 2ca15e1d..0bfe6ba6 100644 --- a/docs/_static/style.css +++ b/docs/_static/style.css @@ -27,6 +27,12 @@ div.body li { width: 150px; } +.mitogen-right-200 { + float: right; + padding-left: 8px; + width: 200px; +} + .mitogen-right-225 { float: right; padding-left: 8px; @@ -50,3 +56,10 @@ div.body li { padding-left: 8px; width: 350px; } + +.mitogen-logo-wrap { + shape-margin: 8px; + shape-outside: polygon( + 100% 0, 50% 10%, 24% 24%, 0% 50%, 24% 75%, 50% 90%, 100% 100% + ); +} diff --git a/docs/ansible.rst b/docs/ansible.rst index 3430712e..c8b0d12f 100644 --- a/docs/ansible.rst +++ b/docs/ansible.rst @@ -1,11 +1,10 @@ -.. image:: images/ansible/ansible_mitogen.svg - :class: mitogen-right-225 - - Mitogen for Ansible =================== +.. image:: images/ansible/ansible_mitogen.svg + :class: mitogen-right-200 mitogen-logo-wrap + An extension to `Ansible`_ is included that implements connections over Mitogen, replacing embedded shell invocations with pure-Python equivalents invoked via highly efficient remote procedure calls to persistent interpreters diff --git a/docs/index.rst b/docs/index.rst index 913c91d4..87c73377 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,8 +2,6 @@ Mitogen ======= -Mitogen is a Python library for writing distributed self-replicating programs. - .. raw:: html .. image:: images/mitogen.svg - :class: mitogen-right-225 + :class: mitogen-right-200 mitogen-logo-wrap + +Mitogen is a Python library for writing distributed self-replicating programs. There is no requirement for installing packages, copying files around, writing shell snippets, upfront configuration, or providing any secondary link to a