mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
doc: copy edits in the developer reference
Signed-off-by: Benjamin Fitch <benjamin.fitch@intel.com>
This commit is contained in:
@@ -5,13 +5,13 @@ Drawings Using Graphviz
|
||||
|
||||
We support using the Sphinx `graphviz extension`_ for creating simple
|
||||
graphs and line drawings using the dot language. The advantage of using
|
||||
graphviz for drawings is that source for a drawing is a text file that
|
||||
graphviz for drawings is that the source for a drawing is a text file that
|
||||
can be edited and maintained in the repo along with the documentation.
|
||||
|
||||
.. _graphviz extension: http://graphviz.gitlab.io
|
||||
|
||||
These source ``.dot`` files are generally kept separate from the document itself,
|
||||
and included by using a graphviz directive:
|
||||
These source ``.dot`` files are generally kept separate from the document
|
||||
itself, and included by using a graphviz directive:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
@@ -20,7 +20,7 @@ and included by using a graphviz directive:
|
||||
:align: center
|
||||
:caption: ACRN Hypervisor Boot Flow
|
||||
|
||||
Where the boot-flow.dot file contains the drawing commands:
|
||||
where the boot-flow.dot file contains the drawing commands:
|
||||
|
||||
.. literalinclude:: images/boot-flow.dot
|
||||
|
||||
@@ -32,16 +32,15 @@ and the generated output would appear as this:
|
||||
:caption: ACRN Hypervisor Boot Flow
|
||||
|
||||
|
||||
Let's look at some more examples and then we'll get into more details
|
||||
about the dot language and drawing options.
|
||||
Let's look at some more examples and then we'll get into more details about
|
||||
the dot language and drawing options.
|
||||
|
||||
Simple Directed Graph
|
||||
*********************
|
||||
|
||||
For simple drawings with shapes and lines, you can put the graphviz
|
||||
commands in the content block for the directive. For example, for a
|
||||
simple directed graph (digraph) with two nodes connected by an arrow,
|
||||
you can write:
|
||||
For simple drawings with shapes and lines, you can put the graphviz commands
|
||||
in the content block for the directive. For example, for a simple directed
|
||||
graph (digraph) with two nodes connected by an arrow, you can write:
|
||||
|
||||
|
||||
.. code-block:: none
|
||||
@@ -71,8 +70,8 @@ image placement on the page (centered):
|
||||
.. graphviz:: images/circle-square.dot
|
||||
:align: center
|
||||
|
||||
You can use the `standard HTML color names`_ or use RGB values for
|
||||
colors, as shown.
|
||||
You can use the `standard HTML color names`_ or use RGB values for colors,
|
||||
as shown.
|
||||
|
||||
.. _standard HTML color names:
|
||||
https://www.w3schools.com/colors/colors_hex.asp
|
||||
@@ -80,9 +79,9 @@ colors, as shown.
|
||||
Adding Edge Labels
|
||||
******************
|
||||
|
||||
Here's an example of a drawing with labels on the edges (arrows)
|
||||
between nodes. We also show how to change the default attributes for all
|
||||
nodes and edges within this graph:
|
||||
Here's an example of a drawing with labels on the edges (arrows) between
|
||||
nodes. We also show how to change the default attributes for all nodes and
|
||||
edges within this graph:
|
||||
|
||||
.. literalinclude:: images/node-shape-edges.dot
|
||||
|
||||
@@ -103,8 +102,8 @@ column) or a new column (if you're in a row). For example:
|
||||
:align: center
|
||||
|
||||
Note that you can also specify the horizontal alignment of text using escape
|
||||
sequences ``\n``, ``\l`` and ``\r`` that divide the label into lines, centered,
|
||||
left-justified, and right-justified, respectively.
|
||||
sequences ``\n``, ``\l``, and ``\r``, which divide the label into lines that
|
||||
are centered, left-justified, and right-justified, respectively.
|
||||
|
||||
Finite-State Machine
|
||||
********************
|
||||
|
||||
Reference in New Issue
Block a user