From adb1b2f3f6ad54b346348ec6e5b8d96f2f7ba0a6 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 21 Jan 2021 12:33:27 +0100 Subject: interpreter: accept external programs and dependencies for summary --- docs/markdown/Reference-manual.md | 6 +++++- docs/markdown/snippets/summary_prog_dep.md | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 docs/markdown/snippets/summary_prog_dep.md (limited to 'docs/markdown') diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 802002b6f..cb8347a2e 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1313,7 +1313,11 @@ The content is a series of key/value pairs grouped into sections. If the section keyword argument is omitted, those key/value pairs are implicitly grouped into a section with no title. key/value pairs can optionally be grouped into a dictionary, but keep in mind that dictionaries does not guarantee ordering. `key` must be string, -`value` can only be integer, boolean, string, or a list of those. +`value` can be: + +- an integer, boolean or string +- *since 0.57.0* an external program or a dependency +- a list of those. `summary()` can be called multiple times as long as the same section/key pair doesn't appear twice. All sections will be collected and printed at diff --git a/docs/markdown/snippets/summary_prog_dep.md b/docs/markdown/snippets/summary_prog_dep.md new file mode 100644 index 000000000..6f0262f2d --- /dev/null +++ b/docs/markdown/snippets/summary_prog_dep.md @@ -0,0 +1,4 @@ +## `summary()` accepts external programs or dependencies + +External program objects and dependency objects can be passed to +`summary()` as the value to be printed. -- cgit v1.2.3