weston/doc/sphinx/toc/libweston
Pekka Paalanen 9dccfd1ef3 doc: output management sequence diagrams
When we were designing the libweston output API, I wrote a design document
as a Phabricator wiki page. Phabricator is no longer accessible so that
information needs to be migrated to a new place. Here I am converting most of
it into libweston Sphinx documentation, particularly pulling in the sequence
diagrams I drew. This should help people understand how libweston output
configuration works.

The diagrams are committed as both MSC source files and rendered PNG files. I
did not bother tinkering with the build to run mscgen automatically and then
with the CI images to install the tool.

The Sphinx configuration need numref explicitly enabled so that figures are
automatically numbered and can be referenced by their number rather than their
whole caption text(!).

The document structure is changed a little better flowing with Output
Management being the overview page and the Heads and Outputs being the API
pages.

First I wrote the struct weston_output and weston_head descriptions in Doxygen
comments in libweston.h, but then in the API page that text would have been
buried somewhere towards the end of the page. So I put that text in ReST
instead where it comes as first on the pages as it should. The doc for the
structs only contain a link to the top of the page. Yes, the comment style in
libweston.h is a little broken. If I left the asterisk there it would show up
as a bullet point in Sphinx. OTOH putting everything from \rst in a single line
did not produce anything.

Because Sphinx cannot look in two places, the images need to be copied into the
build dir too.

mscgen: http://www.mcternan.me.uk/mscgen/

Fixes: https://gitlab.freedesktop.org/wayland/weston/issues/25

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2020-01-27 12:14:14 +00:00
..
images doc: output management sequence diagrams 2020-01-27 12:14:14 +00:00
compositor.rst compositor: Destroy the compositor before the log scope 2019-07-18 13:34:04 +03:00
head.rst doc: output management sequence diagrams 2020-01-27 12:14:14 +00:00
log.rst doc/sphinx: Add some documentation about timeline points 2019-10-17 21:42:25 +03:00
meson.build doc: output management sequence diagrams 2020-01-27 12:14:14 +00:00
output-management.rst doc: output management sequence diagrams 2020-01-27 12:14:14 +00:00
output.rst doc: output management sequence diagrams 2020-01-27 12:14:14 +00:00