Note
This version of the guide covers the new PHP-based rendering of Documentation with the TYPO3 Documentation theme.
If the project you are looking at has a file Documentation/guides.xml it is using the new rendering.
Otherwise, consider to migrate the Documentation or head over to the legacy version of this guide: How to document, Sphinx based.
PlantUML diagrams
In order to render diagrams in the TYPO3 documentation, PlantUML is integrated into the rendering process.
Embedded UML diagrams
Simple diagrams can be embedded directly into the reStructuredText markup:
.. uml::
:caption: Some Caption
class -> otherClass : message
Copied!
This will be rendered as:
Include a PlantUML file
.. uml:: _complex_uml.plantuml
:align: center
:caption: Figure 1-1: Application flow
:width: 1000
Copied!
This will be rendered as:
Put a file called _complex_
in the same directory as
the reST file:
enum FeedFormat {
ATOM
JSON
RSS
}
interface AuthorInterface
interface CategoryInterface
interface FeedInterface
interface FeedFormatAwareInterface
interface ImageInterface
interface ItemInterface
interface RequestAwareInterface
class Author
class Image
class Item
class YourFeed
note left: This is your feed implementation class
YourFeed -[hidden]> FeedFormat
Author <|.. AuthorInterface
Category <|.. CategoryInterface
Image <|.. ImageInterface
Item <|.. ItemInterface
FeedInterface ..|> YourFeed : required
FeedFormatAwareInterface ..|> YourFeed : optional
RequestAwareInterface ..|> YourFeed : optional
Item "1" *-- "0 .. n" Author : contains
YourFeed "1" *-- "0 .. n" Author : contains
YourFeed "1" *-- "0 .. n" Category : contains
YourFeed "1" *-- "0 .. 1" Image : contains
YourFeed "1" *-- "0 .. n" Item : contains
YourFeed .. FeedFormat : used in attributes