From 654eecd40d70d9a5aac0cd20fb4f237631d913c6 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 24 Jul 2018 14:12:44 +0200 Subject: [PATCH] tests/examples: Explicitly mark tests generating an image This allows to figure out if a test will generate an image without having to run it. The long term plan for this is to run the tests during compiling ("make") and not during configuring ("cmake"). Since the list of files to e.g. install needs to be known during configuring, this commit is a necessary step in that direction. Signed-off-by: Uli Schlachter --- tests/examples/CMakeLists.txt | 4 ++-- tests/examples/awful/mouse/coords.lua | 1 + tests/examples/awful/placement/align.lua | 1 + tests/examples/awful/placement/bottom.lua | 1 + tests/examples/awful/placement/bottom_left.lua | 1 + tests/examples/awful/placement/bottom_right.lua | 1 + tests/examples/awful/placement/center_horizontal.lua | 1 + tests/examples/awful/placement/center_vertical.lua | 1 + tests/examples/awful/placement/centered.lua | 1 + tests/examples/awful/placement/closest_mouse.lua | 1 + tests/examples/awful/placement/compose.lua | 1 + tests/examples/awful/placement/compose2.lua | 1 + tests/examples/awful/placement/left.lua | 1 + tests/examples/awful/placement/maximize.lua | 1 + tests/examples/awful/placement/maximize_horizontally.lua | 1 + tests/examples/awful/placement/maximize_vertically.lua | 1 + tests/examples/awful/placement/next_to_mouse.lua | 1 + tests/examples/awful/placement/no_offscreen.lua | 1 + tests/examples/awful/placement/no_overlap.lua | 1 + tests/examples/awful/placement/resize_to_mouse.lua | 1 + tests/examples/awful/placement/right.lua | 1 + tests/examples/awful/placement/stretch.lua | 1 + tests/examples/awful/placement/stretch_down.lua | 1 + tests/examples/awful/placement/stretch_left.lua | 1 + tests/examples/awful/placement/stretch_right.lua | 1 + tests/examples/awful/placement/stretch_up.lua | 1 + tests/examples/awful/placement/top.lua | 1 + tests/examples/awful/placement/top_left.lua | 1 + tests/examples/awful/placement/top_right.lua | 1 + tests/examples/awful/placement/under_mouse.lua | 1 + tests/examples/awful/titlebar/default.lua | 1 + tests/examples/gears/shape/arc.lua | 1 + tests/examples/gears/shape/arrow.lua | 1 + tests/examples/gears/shape/circle.lua | 1 + tests/examples/gears/shape/cross.lua | 1 + tests/examples/gears/shape/hexagon.lua | 1 + tests/examples/gears/shape/infobubble.lua | 1 + tests/examples/gears/shape/isosceles_triangle.lua | 1 + tests/examples/gears/shape/losange.lua | 1 + tests/examples/gears/shape/octogon.lua | 1 + tests/examples/gears/shape/parallelogram.lua | 1 + tests/examples/gears/shape/partially_rounded_rect.lua | 1 + tests/examples/gears/shape/pie.lua | 1 + tests/examples/gears/shape/powerline.lua | 1 + tests/examples/gears/shape/radial_progress.lua | 1 + tests/examples/gears/shape/rectangle.lua | 1 + tests/examples/gears/shape/rectangular_tag.lua | 1 + tests/examples/gears/shape/rounded_bar.lua | 1 + tests/examples/gears/shape/rounded_rect.lua | 1 + tests/examples/wibox/awidget/defaults/prompt.lua | 1 + tests/examples/wibox/awidget/prompt/highlight.lua | 1 + tests/examples/wibox/awidget/prompt/hooks.lua | 1 + tests/examples/wibox/awidget/prompt/keypress.lua | 1 + tests/examples/wibox/awidget/prompt/simple.lua | 1 + tests/examples/wibox/awidget/prompt/vilike.lua | 1 + tests/examples/wibox/awidget/taglist/indexed.lua | 1 + tests/examples/wibox/awidget/tasklist/rounded.lua | 1 + tests/examples/wibox/awidget/tasklist/windows10.lua | 1 + tests/examples/wibox/container/arcchart/bg.lua | 1 + tests/examples/wibox/container/arcchart/border_width.lua | 1 + tests/examples/wibox/container/arcchart/paddings.lua | 1 + tests/examples/wibox/container/arcchart/rounded_edge.lua | 1 + tests/examples/wibox/container/arcchart/start_angle.lua | 1 + tests/examples/wibox/container/arcchart/thickness.lua | 1 + tests/examples/wibox/container/arcchart/value.lua | 1 + tests/examples/wibox/container/background/bg.lua | 1 + tests/examples/wibox/container/background/clip.lua | 1 + tests/examples/wibox/container/background/fg.lua | 1 + tests/examples/wibox/container/background/shape.lua | 1 + tests/examples/wibox/container/defaults/arcchart.lua | 1 + tests/examples/wibox/container/defaults/background.lua | 1 + tests/examples/wibox/container/defaults/constraint.lua | 1 + tests/examples/wibox/container/defaults/margin.lua | 1 + tests/examples/wibox/container/defaults/mirror.lua | 1 + tests/examples/wibox/container/defaults/only_on_screen.lua | 1 + tests/examples/wibox/container/defaults/place.lua | 1 + tests/examples/wibox/container/defaults/radialprogressbar.lua | 1 + tests/examples/wibox/container/defaults/rotate.lua | 1 + tests/examples/wibox/container/defaults/scroll.lua | 1 + .../wibox/container/radialprogressbar/border_color.lua | 1 + .../wibox/container/radialprogressbar/border_width.lua | 1 + tests/examples/wibox/container/radialprogressbar/color.lua | 1 + tests/examples/wibox/container/radialprogressbar/padding.lua | 1 + tests/examples/wibox/container/radialprogressbar/value.lua | 1 + tests/examples/wibox/container/rotate/angle.lua | 1 + tests/examples/wibox/layout/defaults/align.lua | 1 + tests/examples/wibox/layout/defaults/fixed.lua | 1 + tests/examples/wibox/layout/defaults/flex.lua | 1 + tests/examples/wibox/layout/defaults/grid.lua | 1 + tests/examples/wibox/layout/defaults/manual.lua | 1 + tests/examples/wibox/layout/defaults/ratio.lua | 1 + tests/examples/wibox/layout/defaults/stack.lua | 1 + tests/examples/wibox/layout/fixed/spacing.lua | 1 + tests/examples/wibox/layout/fixed/spacing_widget.lua | 1 + tests/examples/wibox/layout/flex/spacing.lua | 1 + tests/examples/wibox/layout/flex/spacing_widget.lua | 1 + tests/examples/wibox/layout/grid/add.lua | 1 + tests/examples/wibox/layout/grid/expand.lua | 1 + tests/examples/wibox/layout/grid/extend_column.lua | 1 + tests/examples/wibox/layout/grid/imperative.lua | 1 + tests/examples/wibox/layout/grid/insert_column.lua | 1 + tests/examples/wibox/layout/grid/min_size.lua | 1 + tests/examples/wibox/layout/grid/orientation.lua | 1 + tests/examples/wibox/layout/grid/remove.lua | 1 + tests/examples/wibox/layout/grid/remove_column.lua | 1 + tests/examples/wibox/layout/grid/spacing.lua | 1 + tests/examples/wibox/layout/grid/superpose.lua | 1 + tests/examples/wibox/layout/manual/add_at.lua | 1 + tests/examples/wibox/layout/manual/move_widget.lua | 1 + tests/examples/wibox/layout/ratio/ajust_ratio.lua | 1 + tests/examples/wibox/layout/ratio/inc_ratio.lua | 1 + tests/examples/wibox/layout/ratio/spacing.lua | 1 + tests/examples/wibox/layout/ratio/spacing_widget.lua | 1 + tests/examples/wibox/layout/ratio/strategy.lua | 1 + tests/examples/wibox/layout/stack/offset.lua | 1 + tests/examples/wibox/layout/stack/spacing.lua | 1 + tests/examples/wibox/logo/logo.lua | 1 + tests/examples/wibox/logo/logo_and_name.lua | 1 + tests/examples/wibox/widget/calendar/fn_embed_cell.lua | 1 + tests/examples/wibox/widget/calendar/font.lua | 1 + tests/examples/wibox/widget/calendar/long_weekdays.lua | 1 + tests/examples/wibox/widget/calendar/month.lua | 1 + tests/examples/wibox/widget/calendar/start_sunday.lua | 1 + tests/examples/wibox/widget/calendar/week_numbers.lua | 1 + tests/examples/wibox/widget/calendar/year.lua | 1 + tests/examples/wibox/widget/checkbox/bg.lua | 1 + tests/examples/wibox/widget/checkbox/check_shape.lua | 1 + tests/examples/wibox/widget/checkbox/custom.lua | 1 + tests/examples/wibox/widget/checkbox/shape.lua | 1 + tests/examples/wibox/widget/defaults/calendar.lua | 1 + tests/examples/wibox/widget/defaults/checkbox.lua | 1 + tests/examples/wibox/widget/defaults/graph.lua | 1 + tests/examples/wibox/widget/defaults/imagebox.lua | 1 + tests/examples/wibox/widget/defaults/piechart.lua | 1 + tests/examples/wibox/widget/defaults/progressbar.lua | 1 + tests/examples/wibox/widget/defaults/separator.lua | 1 + tests/examples/wibox/widget/defaults/slider.lua | 1 + tests/examples/wibox/widget/defaults/textbox.lua | 1 + tests/examples/wibox/widget/graph/step.lua | 1 + tests/examples/wibox/widget/piechart/border_color.lua | 1 + tests/examples/wibox/widget/piechart/border_width.lua | 1 + tests/examples/wibox/widget/piechart/label.lua | 1 + tests/examples/wibox/widget/progressbar/bar_shape.lua | 1 + tests/examples/wibox/widget/progressbar/clip.lua | 1 + tests/examples/wibox/widget/progressbar/encapsulation.lua | 1 + tests/examples/wibox/widget/progressbar/shape.lua | 1 + tests/examples/wibox/widget/progressbar/text.lua | 1 + tests/examples/wibox/widget/progressbar/vertical.lua | 1 + tests/examples/wibox/widget/separator/border_color.lua | 1 + tests/examples/wibox/widget/separator/orientation.lua | 1 + tests/examples/wibox/widget/separator/shape.lua | 1 + tests/examples/wibox/widget/slider/bar_border.lua | 1 + tests/examples/wibox/widget/slider/bar_color.lua | 1 + tests/examples/wibox/widget/slider/bar_height.lua | 1 + tests/examples/wibox/widget/slider/bar_margins.lua | 1 + tests/examples/wibox/widget/slider/bar_shape.lua | 1 + tests/examples/wibox/widget/slider/handle_border.lua | 1 + tests/examples/wibox/widget/slider/handle_color.lua | 1 + tests/examples/wibox/widget/slider/handle_margins.lua | 1 + tests/examples/wibox/widget/slider/handle_shape.lua | 1 + tests/examples/wibox/widget/slider/handle_width.lua | 1 + tests/examples/wibox/widget/slider/value.lua | 1 + 162 files changed, 163 insertions(+), 2 deletions(-) diff --git a/tests/examples/CMakeLists.txt b/tests/examples/CMakeLists.txt index e8619bcb..7ff30c30 100644 --- a/tests/examples/CMakeLists.txt +++ b/tests/examples/CMakeLists.txt @@ -215,8 +215,8 @@ function(run_test test_path namespace escaped_content) # Build the documentation. set(TEST_DOC_CONTENT "${TEST_PRE_HEADER}") - # If the image has been created, then add it. - if(EXISTS "${IMAGE_PATH}.svg") + # Does the test generate an output image? + if(tmp_content MATCHES "--DOC_GEN_IMAGE") set(OUTPUT_IMAGE_PATH "${IMAGE_PATH}.svg") escape_string( "![Usage example](../images/AUTOGEN${namespace}_${TEST_FILE_NAME}.svg)\n" diff --git a/tests/examples/awful/mouse/coords.lua b/tests/examples/awful/mouse/coords.lua index 3a42faa3..237b8548 100644 --- a/tests/examples/awful/mouse/coords.lua +++ b/tests/examples/awful/mouse/coords.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE screen[1]._resize {x = 175, width = 128, height = 96} --DOC_HIDE mouse.coords {x=175+60,y=60} --DOC_HIDE diff --git a/tests/examples/awful/placement/align.lua b/tests/examples/awful/placement/align.lua index 6aa158a0..24a64410 100644 --- a/tests/examples/awful/placement/align.lua +++ b/tests/examples/awful/placement/align.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local placement = require("awful.placement") screen[1]._resize {x= 50} for _, pos in ipairs{ diff --git a/tests/examples/awful/placement/bottom.lua b/tests/examples/awful/placement/bottom.lua index b997028c..75ae8ff9 100644 --- a/tests/examples/awful/placement/bottom.lua +++ b/tests/examples/awful/placement/bottom.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Align a client to the bottom of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client`, `mouse` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/bottom_left.lua b/tests/examples/awful/placement/bottom_left.lua index 7ca40b3b..f4704947 100644 --- a/tests/examples/awful/placement/bottom_left.lua +++ b/tests/examples/awful/placement/bottom_left.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Align a client to the bottom left of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client`, `mouse` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/bottom_right.lua b/tests/examples/awful/placement/bottom_right.lua index 1503a929..2c00137e 100644 --- a/tests/examples/awful/placement/bottom_right.lua +++ b/tests/examples/awful/placement/bottom_right.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Align a client to the bottom right of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client`, `mouse` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/center_horizontal.lua b/tests/examples/awful/placement/center_horizontal.lua index 5ee87c67..44f81b7a 100644 --- a/tests/examples/awful/placement/center_horizontal.lua +++ b/tests/examples/awful/placement/center_horizontal.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Align a client to the horizontal center left of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client`, `mouse` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/center_vertical.lua b/tests/examples/awful/placement/center_vertical.lua index dea446ad..8e71e770 100644 --- a/tests/examples/awful/placement/center_vertical.lua +++ b/tests/examples/awful/placement/center_vertical.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Align a client to the vertical center of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client`, `mouse` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/centered.lua b/tests/examples/awful/placement/centered.lua index 796494db..be9fa5be 100644 --- a/tests/examples/awful/placement/centered.lua +++ b/tests/examples/awful/placement/centered.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Align a client to the center of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client`, `mouse` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/closest_mouse.lua b/tests/examples/awful/placement/closest_mouse.lua index f6232450..005a575a 100644 --- a/tests/examples/awful/placement/closest_mouse.lua +++ b/tests/examples/awful/placement/closest_mouse.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local awful = {placement = require("awful.placement")} --DOC_HIDE local c = client.gen_fake {x = 20, y = 20, width= 280, height=200, screen =screen[1]} --DOC_HIDE diff --git a/tests/examples/awful/placement/compose.lua b/tests/examples/awful/placement/compose.lua index 54641a88..750afb29 100644 --- a/tests/examples/awful/placement/compose.lua +++ b/tests/examples/awful/placement/compose.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE screen[1]._resize {x = 175, width = 128, height = 96} --DOC_NO_USAGE --DOC_HIDE local awful = {placement = require("awful.placement")} --DOC_HIDE local c = client.gen_fake {x = 220, y = 35, width=40, height=30} --DOC_HIDE diff --git a/tests/examples/awful/placement/compose2.lua b/tests/examples/awful/placement/compose2.lua index f1574c48..b0112684 100644 --- a/tests/examples/awful/placement/compose2.lua +++ b/tests/examples/awful/placement/compose2.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE screen[1]._resize {x = 175, width = 128, height = 96} --DOC_NO_USAGE --DOC_HIDE local awful = {placement = require("awful.placement")} --DOC_HIDE local c = client.gen_fake {x = 220, y = 35, width=40, height=30} --DOC_HIDE diff --git a/tests/examples/awful/placement/left.lua b/tests/examples/awful/placement/left.lua index 9d680e10..a916b63b 100644 --- a/tests/examples/awful/placement/left.lua +++ b/tests/examples/awful/placement/left.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Align a client to the left of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client`, `mouse` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/maximize.lua b/tests/examples/awful/placement/maximize.lua index f7063e52..494ff3c6 100644 --- a/tests/examples/awful/placement/maximize.lua +++ b/tests/examples/awful/placement/maximize.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE screen[1]._resize {width = 128, height = 96} --DOC_HIDE screen._add_screen {x = 140, y = 0, width = 128, height = 96} --DOC_HIDE screen._add_screen {x = 280, y = 0, width = 128, height = 96} --DOC_HIDE diff --git a/tests/examples/awful/placement/maximize_horizontally.lua b/tests/examples/awful/placement/maximize_horizontally.lua index d77bb8bf..b862e816 100644 --- a/tests/examples/awful/placement/maximize_horizontally.lua +++ b/tests/examples/awful/placement/maximize_horizontally.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Horizontally maximize the drawable in the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/maximize_vertically.lua b/tests/examples/awful/placement/maximize_vertically.lua index 18fa914e..a8b177bc 100644 --- a/tests/examples/awful/placement/maximize_vertically.lua +++ b/tests/examples/awful/placement/maximize_vertically.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Vetically maximize the drawable in the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/next_to_mouse.lua b/tests/examples/awful/placement/next_to_mouse.lua index c5e94054..2e34e0ad 100644 --- a/tests/examples/awful/placement/next_to_mouse.lua +++ b/tests/examples/awful/placement/next_to_mouse.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE screen[1]._resize {width = 128, height = 96} --DOC_HIDE local awful = {placement = require("awful.placement")} --DOC_HIDE client.gen_fake {x = 10, y = 10, width=40, height=30} --DOC_HIDE diff --git a/tests/examples/awful/placement/no_offscreen.lua b/tests/examples/awful/placement/no_offscreen.lua index b596ab26..5bfe2d07 100644 --- a/tests/examples/awful/placement/no_offscreen.lua +++ b/tests/examples/awful/placement/no_offscreen.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local awful = {placement = require("awful.placement")} --DOC_HIDE local c = client.gen_fake {x = -30, y = -30, width= 100, height=100} --DOC_HIDE diff --git a/tests/examples/awful/placement/no_overlap.lua b/tests/examples/awful/placement/no_overlap.lua index 9faf08b6..d0fe9b1f 100644 --- a/tests/examples/awful/placement/no_overlap.lua +++ b/tests/examples/awful/placement/no_overlap.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE screen[1]._resize {width = 128, height = 96} --DOC_HIDE screen._add_screen {x = 140, y = 0 , width = 128, height = 96} --DOC_HIDE screen._add_screen {x = 0 , y = 110, width = 128, height = 96} --DOC_HIDE diff --git a/tests/examples/awful/placement/resize_to_mouse.lua b/tests/examples/awful/placement/resize_to_mouse.lua index db561fd0..01cf6416 100644 --- a/tests/examples/awful/placement/resize_to_mouse.lua +++ b/tests/examples/awful/placement/resize_to_mouse.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local awful = {placement = require("awful.placement")} local unpack = unpack or table.unpack -- luacheck: globals unpack (compatibility with Lua 5.1) diff --git a/tests/examples/awful/placement/right.lua b/tests/examples/awful/placement/right.lua index 0aa7ad48..40c33484 100644 --- a/tests/examples/awful/placement/right.lua +++ b/tests/examples/awful/placement/right.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Align a client to the right of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client`, `mouse` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/stretch.lua b/tests/examples/awful/placement/stretch.lua index c80e0bd1..69698114 100644 --- a/tests/examples/awful/placement/stretch.lua +++ b/tests/examples/awful/placement/stretch.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE screen[1]._resize {width = 128, height = 96} screen._add_screen {x = 140, y = 0 , width = 128, height = 96} screen._add_screen {x = 0 , y = 110, width = 128, height = 96} diff --git a/tests/examples/awful/placement/stretch_down.lua b/tests/examples/awful/placement/stretch_down.lua index 5f2b510e..76101bae 100644 --- a/tests/examples/awful/placement/stretch_down.lua +++ b/tests/examples/awful/placement/stretch_down.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Stretch the drawable to the bottom of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments --DOC_HEADER diff --git a/tests/examples/awful/placement/stretch_left.lua b/tests/examples/awful/placement/stretch_left.lua index 5de1bee6..d00d511e 100644 --- a/tests/examples/awful/placement/stretch_left.lua +++ b/tests/examples/awful/placement/stretch_left.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Stretch the drawable to the left of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments --DOC_HEADER diff --git a/tests/examples/awful/placement/stretch_right.lua b/tests/examples/awful/placement/stretch_right.lua index e8046d47..963f67f0 100644 --- a/tests/examples/awful/placement/stretch_right.lua +++ b/tests/examples/awful/placement/stretch_right.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Stretch the drawable to the right of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments --DOC_HEADER diff --git a/tests/examples/awful/placement/stretch_up.lua b/tests/examples/awful/placement/stretch_up.lua index 455909ae..6cf4f1cb 100644 --- a/tests/examples/awful/placement/stretch_up.lua +++ b/tests/examples/awful/placement/stretch_up.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Stretch the drawable to the top of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments --DOC_HEADER diff --git a/tests/examples/awful/placement/top.lua b/tests/examples/awful/placement/top.lua index 30e8535d..4d8f9d38 100644 --- a/tests/examples/awful/placement/top.lua +++ b/tests/examples/awful/placement/top.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Align a client to the top of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client`, `mouse` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/top_left.lua b/tests/examples/awful/placement/top_left.lua index aa56268a..87ae8472 100644 --- a/tests/examples/awful/placement/top_left.lua +++ b/tests/examples/awful/placement/top_left.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Align a client to the top left of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client`, `mouse` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/top_right.lua b/tests/examples/awful/placement/top_right.lua index a8599a30..952bdfd2 100644 --- a/tests/examples/awful/placement/top_right.lua +++ b/tests/examples/awful/placement/top_right.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE -- Align a client to the top right of the parent area. --DOC_HEADER -- @tparam drawable d A drawable (like `client`, `mouse` or `wibox`) --DOC_HEADER -- @tparam[opt={}] table args Other arguments") --DOC_HEADER diff --git a/tests/examples/awful/placement/under_mouse.lua b/tests/examples/awful/placement/under_mouse.lua index 9b910f11..13c03404 100644 --- a/tests/examples/awful/placement/under_mouse.lua +++ b/tests/examples/awful/placement/under_mouse.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE screen[1]._resize {width = 128, height = 96} --DOC_HIDE local awful = {placement = require("awful.placement")} --DOC_HIDE client.gen_fake {x = 10, y = 10, width=40, height=30} --DOC_HIDE diff --git a/tests/examples/awful/titlebar/default.lua b/tests/examples/awful/titlebar/default.lua index b82cba68..eaffd68c 100644 --- a/tests/examples/awful/titlebar/default.lua +++ b/tests/examples/awful/titlebar/default.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE --DOC_NO_USAGE local place = require("awful.placement") --DOC_HIDE local awful = { titlebar = require("awful.titlebar"), --DOC_HIDE diff --git a/tests/examples/gears/shape/arc.lua b/tests/examples/gears/shape/arc.lua index 3aaddd64..fc68228d 100644 --- a/tests/examples/gears/shape/arc.lua +++ b/tests/examples/gears/shape/arc.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.arc(cr,70,70, 10) diff --git a/tests/examples/gears/shape/arrow.lua b/tests/examples/gears/shape/arrow.lua index 3e1a2d24..702881f5 100644 --- a/tests/examples/gears/shape/arrow.lua +++ b/tests/examples/gears/shape/arrow.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.arrow(cr, 70, 70) diff --git a/tests/examples/gears/shape/circle.lua b/tests/examples/gears/shape/circle.lua index d01ae82a..07ec747e 100644 --- a/tests/examples/gears/shape/circle.lua +++ b/tests/examples/gears/shape/circle.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.circle(cr, 70, 70) diff --git a/tests/examples/gears/shape/cross.lua b/tests/examples/gears/shape/cross.lua index 1dc9024b..ae2a76ce 100644 --- a/tests/examples/gears/shape/cross.lua +++ b/tests/examples/gears/shape/cross.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.cross(cr, 70, 70) diff --git a/tests/examples/gears/shape/hexagon.lua b/tests/examples/gears/shape/hexagon.lua index 8d5155eb..5d62528f 100644 --- a/tests/examples/gears/shape/hexagon.lua +++ b/tests/examples/gears/shape/hexagon.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.hexagon(cr, 70, 70) diff --git a/tests/examples/gears/shape/infobubble.lua b/tests/examples/gears/shape/infobubble.lua index ad3d30dd..79380bbb 100644 --- a/tests/examples/gears/shape/infobubble.lua +++ b/tests/examples/gears/shape/infobubble.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.infobubble(cr, 70, 70) diff --git a/tests/examples/gears/shape/isosceles_triangle.lua b/tests/examples/gears/shape/isosceles_triangle.lua index 59fe7212..bdb998a6 100644 --- a/tests/examples/gears/shape/isosceles_triangle.lua +++ b/tests/examples/gears/shape/isosceles_triangle.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.isosceles_triangle(cr, 70, 70) diff --git a/tests/examples/gears/shape/losange.lua b/tests/examples/gears/shape/losange.lua index babf8a36..e3f20620 100644 --- a/tests/examples/gears/shape/losange.lua +++ b/tests/examples/gears/shape/losange.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.losange(cr, 70, 70) diff --git a/tests/examples/gears/shape/octogon.lua b/tests/examples/gears/shape/octogon.lua index fbf75b23..77093482 100644 --- a/tests/examples/gears/shape/octogon.lua +++ b/tests/examples/gears/shape/octogon.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.octogon(cr, 70, 70) diff --git a/tests/examples/gears/shape/parallelogram.lua b/tests/examples/gears/shape/parallelogram.lua index 81ce5372..588321d4 100644 --- a/tests/examples/gears/shape/parallelogram.lua +++ b/tests/examples/gears/shape/parallelogram.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.parallelogram(cr, 70, 70) diff --git a/tests/examples/gears/shape/partially_rounded_rect.lua b/tests/examples/gears/shape/partially_rounded_rect.lua index 0cf7a61a..1fa3acd5 100644 --- a/tests/examples/gears/shape/partially_rounded_rect.lua +++ b/tests/examples/gears/shape/partially_rounded_rect.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.partially_rounded_rect(cr, 70, 70) diff --git a/tests/examples/gears/shape/pie.lua b/tests/examples/gears/shape/pie.lua index 638ed056..7005ba24 100644 --- a/tests/examples/gears/shape/pie.lua +++ b/tests/examples/gears/shape/pie.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.pie(cr, 70, 70) diff --git a/tests/examples/gears/shape/powerline.lua b/tests/examples/gears/shape/powerline.lua index e43e5887..717a32d7 100644 --- a/tests/examples/gears/shape/powerline.lua +++ b/tests/examples/gears/shape/powerline.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.powerline(cr, 70, 70) diff --git a/tests/examples/gears/shape/radial_progress.lua b/tests/examples/gears/shape/radial_progress.lua index ba6d8666..5752eeaf 100644 --- a/tests/examples/gears/shape/radial_progress.lua +++ b/tests/examples/gears/shape/radial_progress.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.radial_progress(cr, 70, 20, .3) diff --git a/tests/examples/gears/shape/rectangle.lua b/tests/examples/gears/shape/rectangle.lua index a03255f8..faa70704 100644 --- a/tests/examples/gears/shape/rectangle.lua +++ b/tests/examples/gears/shape/rectangle.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.rectangle(cr, 70, 70) diff --git a/tests/examples/gears/shape/rectangular_tag.lua b/tests/examples/gears/shape/rectangular_tag.lua index cf7e45a4..cff33851 100644 --- a/tests/examples/gears/shape/rectangular_tag.lua +++ b/tests/examples/gears/shape/rectangular_tag.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.rectangular_tag(cr, 70, 70) diff --git a/tests/examples/gears/shape/rounded_bar.lua b/tests/examples/gears/shape/rounded_bar.lua index 5f929963..314349a3 100644 --- a/tests/examples/gears/shape/rounded_bar.lua +++ b/tests/examples/gears/shape/rounded_bar.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.rounded_bar(cr, 70, 70) diff --git a/tests/examples/gears/shape/rounded_rect.lua b/tests/examples/gears/shape/rounded_rect.lua index 642ce08f..6db19aeb 100644 --- a/tests/examples/gears/shape/rounded_rect.lua +++ b/tests/examples/gears/shape/rounded_rect.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local shape,cr,show = ... --DOC_HIDE shape.rounded_rect(cr, 70, 70, 10) diff --git a/tests/examples/wibox/awidget/defaults/prompt.lua b/tests/examples/wibox/awidget/defaults/prompt.lua index 12b7f8ab..01afa1ef 100644 --- a/tests/examples/wibox/awidget/defaults/prompt.lua +++ b/tests/examples/wibox/awidget/defaults/prompt.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local awful = { widget = { --DOC_HIDE prompt = require("awful.widget.prompt")}}--DOC_HIDE diff --git a/tests/examples/wibox/awidget/prompt/highlight.lua b/tests/examples/wibox/awidget/prompt/highlight.lua index 1c273d80..8fdd0af1 100644 --- a/tests/examples/wibox/awidget/prompt/highlight.lua +++ b/tests/examples/wibox/awidget/prompt/highlight.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local awful = { prompt = require("awful.prompt") }--DOC_HIDE diff --git a/tests/examples/wibox/awidget/prompt/hooks.lua b/tests/examples/wibox/awidget/prompt/hooks.lua index 70940681..553fb77c 100644 --- a/tests/examples/wibox/awidget/prompt/hooks.lua +++ b/tests/examples/wibox/awidget/prompt/hooks.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local awful = { prompt = require("awful.prompt"),--DOC_HIDE diff --git a/tests/examples/wibox/awidget/prompt/keypress.lua b/tests/examples/wibox/awidget/prompt/keypress.lua index 26a105d2..50fc5634 100644 --- a/tests/examples/wibox/awidget/prompt/keypress.lua +++ b/tests/examples/wibox/awidget/prompt/keypress.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local awful = { prompt = require("awful.prompt"),--DOC_HIDE diff --git a/tests/examples/wibox/awidget/prompt/simple.lua b/tests/examples/wibox/awidget/prompt/simple.lua index f2bb0b01..bdf98a36 100644 --- a/tests/examples/wibox/awidget/prompt/simple.lua +++ b/tests/examples/wibox/awidget/prompt/simple.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local awful = { prompt = require("awful.prompt") }--DOC_HIDE diff --git a/tests/examples/wibox/awidget/prompt/vilike.lua b/tests/examples/wibox/awidget/prompt/vilike.lua index 445d74f5..0eb6f372 100644 --- a/tests/examples/wibox/awidget/prompt/vilike.lua +++ b/tests/examples/wibox/awidget/prompt/vilike.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local awful = { prompt = require("awful.prompt"),--DOC_HIDE diff --git a/tests/examples/wibox/awidget/taglist/indexed.lua b/tests/examples/wibox/awidget/taglist/indexed.lua index d4c5daff..6263b086 100644 --- a/tests/examples/wibox/awidget/taglist/indexed.lua +++ b/tests/examples/wibox/awidget/taglist/indexed.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local awful = { --DOC_HIDE tag = require("awful.tag"), --DOC_HIDE diff --git a/tests/examples/wibox/awidget/tasklist/rounded.lua b/tests/examples/wibox/awidget/tasklist/rounded.lua index 2ab339ff..df75ecf1 100644 --- a/tests/examples/wibox/awidget/tasklist/rounded.lua +++ b/tests/examples/wibox/awidget/tasklist/rounded.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local awful = { --DOC_HIDE tag = require("awful.tag"), --DOC_HIDE diff --git a/tests/examples/wibox/awidget/tasklist/windows10.lua b/tests/examples/wibox/awidget/tasklist/windows10.lua index e51e117d..8ba40c9b 100644 --- a/tests/examples/wibox/awidget/tasklist/windows10.lua +++ b/tests/examples/wibox/awidget/tasklist/windows10.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local awful = { --DOC_HIDE tag = require("awful.tag"), --DOC_HIDE diff --git a/tests/examples/wibox/container/arcchart/bg.lua b/tests/examples/wibox/container/arcchart/bg.lua index 36d4c624..bb3c4655 100644 --- a/tests/examples/wibox/container/arcchart/bg.lua +++ b/tests/examples/wibox/container/arcchart/bg.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) diff --git a/tests/examples/wibox/container/arcchart/border_width.lua b/tests/examples/wibox/container/arcchart/border_width.lua index 10f2fd5b..ffe863b4 100644 --- a/tests/examples/wibox/container/arcchart/border_width.lua +++ b/tests/examples/wibox/container/arcchart/border_width.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) diff --git a/tests/examples/wibox/container/arcchart/paddings.lua b/tests/examples/wibox/container/arcchart/paddings.lua index 3c8bf419..d8b70489 100644 --- a/tests/examples/wibox/container/arcchart/paddings.lua +++ b/tests/examples/wibox/container/arcchart/paddings.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) diff --git a/tests/examples/wibox/container/arcchart/rounded_edge.lua b/tests/examples/wibox/container/arcchart/rounded_edge.lua index 86f01ab0..94872933 100644 --- a/tests/examples/wibox/container/arcchart/rounded_edge.lua +++ b/tests/examples/wibox/container/arcchart/rounded_edge.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) diff --git a/tests/examples/wibox/container/arcchart/start_angle.lua b/tests/examples/wibox/container/arcchart/start_angle.lua index 71fbfc3f..65c15dad 100644 --- a/tests/examples/wibox/container/arcchart/start_angle.lua +++ b/tests/examples/wibox/container/arcchart/start_angle.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) diff --git a/tests/examples/wibox/container/arcchart/thickness.lua b/tests/examples/wibox/container/arcchart/thickness.lua index 428096e5..8d8ba0d5 100644 --- a/tests/examples/wibox/container/arcchart/thickness.lua +++ b/tests/examples/wibox/container/arcchart/thickness.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) diff --git a/tests/examples/wibox/container/arcchart/value.lua b/tests/examples/wibox/container/arcchart/value.lua index ba5dfd42..56cfb15d 100644 --- a/tests/examples/wibox/container/arcchart/value.lua +++ b/tests/examples/wibox/container/arcchart/value.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) diff --git a/tests/examples/wibox/container/background/bg.lua b/tests/examples/wibox/container/background/bg.lua index 83cc20d2..6eca4df6 100644 --- a/tests/examples/wibox/container/background/bg.lua +++ b/tests/examples/wibox/container/background/bg.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/container/background/clip.lua b/tests/examples/wibox/container/background/clip.lua index 93fab52b..0e7d84c7 100644 --- a/tests/examples/wibox/container/background/clip.lua +++ b/tests/examples/wibox/container/background/clip.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape")} --DOC_HIDE diff --git a/tests/examples/wibox/container/background/fg.lua b/tests/examples/wibox/container/background/fg.lua index 15d58a49..19c339f4 100644 --- a/tests/examples/wibox/container/background/fg.lua +++ b/tests/examples/wibox/container/background/fg.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/container/background/shape.lua b/tests/examples/wibox/container/background/shape.lua index e912f965..f4556dcf 100644 --- a/tests/examples/wibox/container/background/shape.lua +++ b/tests/examples/wibox/container/background/shape.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape")} --DOC_HIDE diff --git a/tests/examples/wibox/container/defaults/arcchart.lua b/tests/examples/wibox/container/defaults/arcchart.lua index be3f6376..93d82aa8 100644 --- a/tests/examples/wibox/container/defaults/arcchart.lua +++ b/tests/examples/wibox/container/defaults/arcchart.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local wibox = require("wibox") local beautiful = require("beautiful") diff --git a/tests/examples/wibox/container/defaults/background.lua b/tests/examples/wibox/container/defaults/background.lua index 7296560b..858f00a1 100644 --- a/tests/examples/wibox/container/defaults/background.lua +++ b/tests/examples/wibox/container/defaults/background.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local wibox = require("wibox") local gears = {shape = require("gears.shape")} local beautiful = require("beautiful") diff --git a/tests/examples/wibox/container/defaults/constraint.lua b/tests/examples/wibox/container/defaults/constraint.lua index 91383e57..4eb13db3 100644 --- a/tests/examples/wibox/container/defaults/constraint.lua +++ b/tests/examples/wibox/container/defaults/constraint.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local wibox = require("wibox") return { diff --git a/tests/examples/wibox/container/defaults/margin.lua b/tests/examples/wibox/container/defaults/margin.lua index 89cf5207..80dd72c4 100644 --- a/tests/examples/wibox/container/defaults/margin.lua +++ b/tests/examples/wibox/container/defaults/margin.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local wibox = require("wibox") local beautiful = require("beautiful") diff --git a/tests/examples/wibox/container/defaults/mirror.lua b/tests/examples/wibox/container/defaults/mirror.lua index 99cb78ac..63770b40 100644 --- a/tests/examples/wibox/container/defaults/mirror.lua +++ b/tests/examples/wibox/container/defaults/mirror.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local wibox = require("wibox") return { diff --git a/tests/examples/wibox/container/defaults/only_on_screen.lua b/tests/examples/wibox/container/defaults/only_on_screen.lua index 10e1b3f5..b7de1528 100644 --- a/tests/examples/wibox/container/defaults/only_on_screen.lua +++ b/tests/examples/wibox/container/defaults/only_on_screen.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local wibox = require("wibox") local awful = { widget = { only_on_screen = require("awful.widget.only_on_screen") } } diff --git a/tests/examples/wibox/container/defaults/place.lua b/tests/examples/wibox/container/defaults/place.lua index aa5269a7..2b1f4aa4 100644 --- a/tests/examples/wibox/container/defaults/place.lua +++ b/tests/examples/wibox/container/defaults/place.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local wibox = require("wibox") return { diff --git a/tests/examples/wibox/container/defaults/radialprogressbar.lua b/tests/examples/wibox/container/defaults/radialprogressbar.lua index 602f0fac..6d59a891 100644 --- a/tests/examples/wibox/container/defaults/radialprogressbar.lua +++ b/tests/examples/wibox/container/defaults/radialprogressbar.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local wibox = require("wibox") return { diff --git a/tests/examples/wibox/container/defaults/rotate.lua b/tests/examples/wibox/container/defaults/rotate.lua index 61fc370c..b489ce65 100644 --- a/tests/examples/wibox/container/defaults/rotate.lua +++ b/tests/examples/wibox/container/defaults/rotate.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local wibox = require("wibox") return { diff --git a/tests/examples/wibox/container/defaults/scroll.lua b/tests/examples/wibox/container/defaults/scroll.lua index a7f8b413..c191dd5d 100644 --- a/tests/examples/wibox/container/defaults/scroll.lua +++ b/tests/examples/wibox/container/defaults/scroll.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local wibox = require("wibox") return { diff --git a/tests/examples/wibox/container/radialprogressbar/border_color.lua b/tests/examples/wibox/container/radialprogressbar/border_color.lua index 93b6ca90..07dab067 100644 --- a/tests/examples/wibox/container/radialprogressbar/border_color.lua +++ b/tests/examples/wibox/container/radialprogressbar/border_color.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") diff --git a/tests/examples/wibox/container/radialprogressbar/border_width.lua b/tests/examples/wibox/container/radialprogressbar/border_width.lua index 71222c77..b7db0b6e 100644 --- a/tests/examples/wibox/container/radialprogressbar/border_width.lua +++ b/tests/examples/wibox/container/radialprogressbar/border_width.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") diff --git a/tests/examples/wibox/container/radialprogressbar/color.lua b/tests/examples/wibox/container/radialprogressbar/color.lua index f7738f5a..a387d2d8 100644 --- a/tests/examples/wibox/container/radialprogressbar/color.lua +++ b/tests/examples/wibox/container/radialprogressbar/color.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") diff --git a/tests/examples/wibox/container/radialprogressbar/padding.lua b/tests/examples/wibox/container/radialprogressbar/padding.lua index 6af415e0..e120bdda 100644 --- a/tests/examples/wibox/container/radialprogressbar/padding.lua +++ b/tests/examples/wibox/container/radialprogressbar/padding.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") local beautiful = require("beautiful") diff --git a/tests/examples/wibox/container/radialprogressbar/value.lua b/tests/examples/wibox/container/radialprogressbar/value.lua index 24c20aef..932ab074 100644 --- a/tests/examples/wibox/container/radialprogressbar/value.lua +++ b/tests/examples/wibox/container/radialprogressbar/value.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") diff --git a/tests/examples/wibox/container/rotate/angle.lua b/tests/examples/wibox/container/rotate/angle.lua index 92807497..b6e71946 100644 --- a/tests/examples/wibox/container/rotate/angle.lua +++ b/tests/examples/wibox/container/rotate/angle.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape")} --DOC_HIDE diff --git a/tests/examples/wibox/layout/defaults/align.lua b/tests/examples/wibox/layout/defaults/align.lua index ee0e73ef..7e8ec5f2 100644 --- a/tests/examples/wibox/layout/defaults/align.lua +++ b/tests/examples/wibox/layout/defaults/align.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/defaults/fixed.lua b/tests/examples/wibox/layout/defaults/fixed.lua index 28c1fc8f..d10514c7 100644 --- a/tests/examples/wibox/layout/defaults/fixed.lua +++ b/tests/examples/wibox/layout/defaults/fixed.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/defaults/flex.lua b/tests/examples/wibox/layout/defaults/flex.lua index 14bbd4b4..bc9ec6e6 100644 --- a/tests/examples/wibox/layout/defaults/flex.lua +++ b/tests/examples/wibox/layout/defaults/flex.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/defaults/grid.lua b/tests/examples/wibox/layout/defaults/grid.lua index 8c7dc36c..1e381343 100644 --- a/tests/examples/wibox/layout/defaults/grid.lua +++ b/tests/examples/wibox/layout/defaults/grid.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/defaults/manual.lua b/tests/examples/wibox/layout/defaults/manual.lua index 9f72920c..46fedfa5 100644 --- a/tests/examples/wibox/layout/defaults/manual.lua +++ b/tests/examples/wibox/layout/defaults/manual.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/defaults/ratio.lua b/tests/examples/wibox/layout/defaults/ratio.lua index 46674700..04779b7c 100644 --- a/tests/examples/wibox/layout/defaults/ratio.lua +++ b/tests/examples/wibox/layout/defaults/ratio.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/defaults/stack.lua b/tests/examples/wibox/layout/defaults/stack.lua index 5ccca04f..35518a46 100644 --- a/tests/examples/wibox/layout/defaults/stack.lua +++ b/tests/examples/wibox/layout/defaults/stack.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/fixed/spacing.lua b/tests/examples/wibox/layout/fixed/spacing.lua index a5e4abc1..d53d78db 100644 --- a/tests/examples/wibox/layout/fixed/spacing.lua +++ b/tests/examples/wibox/layout/fixed/spacing.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/fixed/spacing_widget.lua b/tests/examples/wibox/layout/fixed/spacing_widget.lua index d1531e0f..a61ab56c 100644 --- a/tests/examples/wibox/layout/fixed/spacing_widget.lua +++ b/tests/examples/wibox/layout/fixed/spacing_widget.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape")}--DOC_HIDE diff --git a/tests/examples/wibox/layout/flex/spacing.lua b/tests/examples/wibox/layout/flex/spacing.lua index f771d914..e6e839e3 100644 --- a/tests/examples/wibox/layout/flex/spacing.lua +++ b/tests/examples/wibox/layout/flex/spacing.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/flex/spacing_widget.lua b/tests/examples/wibox/layout/flex/spacing_widget.lua index e9586e02..2e54f768 100644 --- a/tests/examples/wibox/layout/flex/spacing_widget.lua +++ b/tests/examples/wibox/layout/flex/spacing_widget.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape")}--DOC_HIDE diff --git a/tests/examples/wibox/layout/grid/add.lua b/tests/examples/wibox/layout/grid/add.lua index 83fbcc2f..789d8e29 100644 --- a/tests/examples/wibox/layout/grid/add.lua +++ b/tests/examples/wibox/layout/grid/add.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE local generic_widget, generic_before_after = ... --DOC_HIDE_ALL local wibox = require("wibox") --DOC_HIDE local beautiful = require("beautiful") --DOC_HIDE diff --git a/tests/examples/wibox/layout/grid/expand.lua b/tests/examples/wibox/layout/grid/expand.lua index fa103f60..c83e8995 100644 --- a/tests/examples/wibox/layout/grid/expand.lua +++ b/tests/examples/wibox/layout/grid/expand.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE local generic_widget = ... --DOC_HIDE_ALL local wibox = require("wibox") local beautiful = require("beautiful") diff --git a/tests/examples/wibox/layout/grid/extend_column.lua b/tests/examples/wibox/layout/grid/extend_column.lua index 019efbc9..b189b971 100644 --- a/tests/examples/wibox/layout/grid/extend_column.lua +++ b/tests/examples/wibox/layout/grid/extend_column.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE local _, generic_before_after = ... --DOC_HIDE_ALL local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/grid/imperative.lua b/tests/examples/wibox/layout/grid/imperative.lua index d1fa1f95..a6f8a465 100644 --- a/tests/examples/wibox/layout/grid/imperative.lua +++ b/tests/examples/wibox/layout/grid/imperative.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE local generic_widget = ... --DOC_NO_USAGE --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/grid/insert_column.lua b/tests/examples/wibox/layout/grid/insert_column.lua index 83e014f6..3709e91d 100644 --- a/tests/examples/wibox/layout/grid/insert_column.lua +++ b/tests/examples/wibox/layout/grid/insert_column.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE local _, generic_before_after = ... --DOC_HIDE_ALL local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/grid/min_size.lua b/tests/examples/wibox/layout/grid/min_size.lua index 3a6eb7f2..fbd73618 100644 --- a/tests/examples/wibox/layout/grid/min_size.lua +++ b/tests/examples/wibox/layout/grid/min_size.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE local generic_widget = ... --DOC_HIDE_ALL local wibox = require("wibox") --DOC_HIDE local beautiful = require("beautiful") --DOC_HIDE diff --git a/tests/examples/wibox/layout/grid/orientation.lua b/tests/examples/wibox/layout/grid/orientation.lua index 823f94f7..827b8904 100644 --- a/tests/examples/wibox/layout/grid/orientation.lua +++ b/tests/examples/wibox/layout/grid/orientation.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE local generic_widget = ... --DOC_HIDE_ALL local wibox = require("wibox") --DOC_HIDE local beautiful = require("beautiful") --DOC_HIDE diff --git a/tests/examples/wibox/layout/grid/remove.lua b/tests/examples/wibox/layout/grid/remove.lua index bd67c663..1ed02743 100644 --- a/tests/examples/wibox/layout/grid/remove.lua +++ b/tests/examples/wibox/layout/grid/remove.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE local _, generic_before_after = ... --DOC_HIDE_ALL local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/grid/remove_column.lua b/tests/examples/wibox/layout/grid/remove_column.lua index 2a184d2f..1217a1ec 100644 --- a/tests/examples/wibox/layout/grid/remove_column.lua +++ b/tests/examples/wibox/layout/grid/remove_column.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE local _, generic_before_after = ... --DOC_HIDE_ALL local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/grid/spacing.lua b/tests/examples/wibox/layout/grid/spacing.lua index 99695d5d..750e4c79 100644 --- a/tests/examples/wibox/layout/grid/spacing.lua +++ b/tests/examples/wibox/layout/grid/spacing.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE local generic_widget = ... --DOC_HIDE_ALL local wibox = require("wibox") --DOC_HIDE local beautiful = require("beautiful") --DOC_HIDE diff --git a/tests/examples/wibox/layout/grid/superpose.lua b/tests/examples/wibox/layout/grid/superpose.lua index bd9cd0f1..7036882b 100644 --- a/tests/examples/wibox/layout/grid/superpose.lua +++ b/tests/examples/wibox/layout/grid/superpose.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE local generic_widget = ... --DOC_HIDE_ALL local wibox = require("wibox") local beautiful = require("beautiful") diff --git a/tests/examples/wibox/layout/manual/add_at.lua b/tests/examples/wibox/layout/manual/add_at.lua index ba5dbcb3..6217753b 100644 --- a/tests/examples/wibox/layout/manual/add_at.lua +++ b/tests/examples/wibox/layout/manual/add_at.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local awful = {placement = require("awful.placement")} --DOC_HIDE diff --git a/tests/examples/wibox/layout/manual/move_widget.lua b/tests/examples/wibox/layout/manual/move_widget.lua index 7f329aca..176dcfa3 100644 --- a/tests/examples/wibox/layout/manual/move_widget.lua +++ b/tests/examples/wibox/layout/manual/move_widget.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local awful = {placement = require("awful.placement")} --DOC_HIDE diff --git a/tests/examples/wibox/layout/ratio/ajust_ratio.lua b/tests/examples/wibox/layout/ratio/ajust_ratio.lua index 4e18ef8b..f51188b9 100644 --- a/tests/examples/wibox/layout/ratio/ajust_ratio.lua +++ b/tests/examples/wibox/layout/ratio/ajust_ratio.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local unpack = unpack or table.unpack -- luacheck: globals unpack (compatibility with Lua 5.1) --DOC_HIDE diff --git a/tests/examples/wibox/layout/ratio/inc_ratio.lua b/tests/examples/wibox/layout/ratio/inc_ratio.lua index f430eab4..6ce179d8 100644 --- a/tests/examples/wibox/layout/ratio/inc_ratio.lua +++ b/tests/examples/wibox/layout/ratio/inc_ratio.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/ratio/spacing.lua b/tests/examples/wibox/layout/ratio/spacing.lua index 6c1304d8..29d85863 100644 --- a/tests/examples/wibox/layout/ratio/spacing.lua +++ b/tests/examples/wibox/layout/ratio/spacing.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/ratio/spacing_widget.lua b/tests/examples/wibox/layout/ratio/spacing_widget.lua index 1fea3bd9..dbdb0c3e 100644 --- a/tests/examples/wibox/layout/ratio/spacing_widget.lua +++ b/tests/examples/wibox/layout/ratio/spacing_widget.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape")}--DOC_HIDE diff --git a/tests/examples/wibox/layout/ratio/strategy.lua b/tests/examples/wibox/layout/ratio/strategy.lua index 3079b585..1cef8d66 100644 --- a/tests/examples/wibox/layout/ratio/strategy.lua +++ b/tests/examples/wibox/layout/ratio/strategy.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE local generic_widget = ... --DOC_HIDE_ALL local wibox = require("wibox") diff --git a/tests/examples/wibox/layout/stack/offset.lua b/tests/examples/wibox/layout/stack/offset.lua index e1ef3a5e..bd64203d 100644 --- a/tests/examples/wibox/layout/stack/offset.lua +++ b/tests/examples/wibox/layout/stack/offset.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/layout/stack/spacing.lua b/tests/examples/wibox/layout/stack/spacing.lua index a0a99c45..d698fc19 100644 --- a/tests/examples/wibox/layout/stack/spacing.lua +++ b/tests/examples/wibox/layout/stack/spacing.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local generic_widget = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/logo/logo.lua b/tests/examples/wibox/logo/logo.lua index 432caf96..4aaa9833 100644 --- a/tests/examples/wibox/logo/logo.lua +++ b/tests/examples/wibox/logo/logo.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local assets = require( "beautiful.theme_assets" ) --DOC_HIDE diff --git a/tests/examples/wibox/logo/logo_and_name.lua b/tests/examples/wibox/logo/logo_and_name.lua index e3186682..3581e326 100644 --- a/tests/examples/wibox/logo/logo_and_name.lua +++ b/tests/examples/wibox/logo/logo_and_name.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local assets = require( "beautiful.theme_assets" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/calendar/fn_embed_cell.lua b/tests/examples/wibox/widget/calendar/fn_embed_cell.lua index 0a56d3c0..a3eb9997 100644 --- a/tests/examples/wibox/widget/calendar/fn_embed_cell.lua +++ b/tests/examples/wibox/widget/calendar/fn_embed_cell.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = require("gears") --DOC_HIDE diff --git a/tests/examples/wibox/widget/calendar/font.lua b/tests/examples/wibox/widget/calendar/font.lua index 35542121..cff8a4bd 100644 --- a/tests/examples/wibox/widget/calendar/font.lua +++ b/tests/examples/wibox/widget/calendar/font.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/calendar/long_weekdays.lua b/tests/examples/wibox/widget/calendar/long_weekdays.lua index cad855c8..6c8bf0a7 100644 --- a/tests/examples/wibox/widget/calendar/long_weekdays.lua +++ b/tests/examples/wibox/widget/calendar/long_weekdays.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/calendar/month.lua b/tests/examples/wibox/widget/calendar/month.lua index 0a77a343..60162b44 100644 --- a/tests/examples/wibox/widget/calendar/month.lua +++ b/tests/examples/wibox/widget/calendar/month.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE_ALL local wibox = require("wibox") --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/calendar/start_sunday.lua b/tests/examples/wibox/widget/calendar/start_sunday.lua index 3f21ee6e..6614d7c8 100644 --- a/tests/examples/wibox/widget/calendar/start_sunday.lua +++ b/tests/examples/wibox/widget/calendar/start_sunday.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/calendar/week_numbers.lua b/tests/examples/wibox/widget/calendar/week_numbers.lua index 5d4a163a..4e242642 100644 --- a/tests/examples/wibox/widget/calendar/week_numbers.lua +++ b/tests/examples/wibox/widget/calendar/week_numbers.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/calendar/year.lua b/tests/examples/wibox/widget/calendar/year.lua index dbb5a8a1..723653f0 100644 --- a/tests/examples/wibox/widget/calendar/year.lua +++ b/tests/examples/wibox/widget/calendar/year.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/checkbox/bg.lua b/tests/examples/wibox/widget/checkbox/bg.lua index 74ef65d1..529ae54a 100644 --- a/tests/examples/wibox/widget/checkbox/bg.lua +++ b/tests/examples/wibox/widget/checkbox/bg.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/checkbox/check_shape.lua b/tests/examples/wibox/widget/checkbox/check_shape.lua index 9c93b2ca..6ce711fe 100644 --- a/tests/examples/wibox/widget/checkbox/check_shape.lua +++ b/tests/examples/wibox/widget/checkbox/check_shape.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/checkbox/custom.lua b/tests/examples/wibox/widget/checkbox/custom.lua index fe1ed686..0743e5a6 100644 --- a/tests/examples/wibox/widget/checkbox/custom.lua +++ b/tests/examples/wibox/widget/checkbox/custom.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/checkbox/shape.lua b/tests/examples/wibox/widget/checkbox/shape.lua index 7df1e58e..a597f4b8 100644 --- a/tests/examples/wibox/widget/checkbox/shape.lua +++ b/tests/examples/wibox/widget/checkbox/shape.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/defaults/calendar.lua b/tests/examples/wibox/widget/defaults/calendar.lua index 67e8b487..45b966b0 100644 --- a/tests/examples/wibox/widget/defaults/calendar.lua +++ b/tests/examples/wibox/widget/defaults/calendar.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/defaults/checkbox.lua b/tests/examples/wibox/widget/defaults/checkbox.lua index 903d0525..bd1b52d8 100644 --- a/tests/examples/wibox/widget/defaults/checkbox.lua +++ b/tests/examples/wibox/widget/defaults/checkbox.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/defaults/graph.lua b/tests/examples/wibox/widget/defaults/graph.lua index cd514585..c4847189 100644 --- a/tests/examples/wibox/widget/defaults/graph.lua +++ b/tests/examples/wibox/widget/defaults/graph.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/widget/defaults/imagebox.lua b/tests/examples/wibox/widget/defaults/imagebox.lua index cb2c23a3..33eec9f1 100644 --- a/tests/examples/wibox/widget/defaults/imagebox.lua +++ b/tests/examples/wibox/widget/defaults/imagebox.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/defaults/piechart.lua b/tests/examples/wibox/widget/defaults/piechart.lua index bea77c00..46f1544c 100644 --- a/tests/examples/wibox/widget/defaults/piechart.lua +++ b/tests/examples/wibox/widget/defaults/piechart.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/defaults/progressbar.lua b/tests/examples/wibox/widget/defaults/progressbar.lua index c54e46f8..7a8c131c 100644 --- a/tests/examples/wibox/widget/defaults/progressbar.lua +++ b/tests/examples/wibox/widget/defaults/progressbar.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape") } --DOC_HIDE diff --git a/tests/examples/wibox/widget/defaults/separator.lua b/tests/examples/wibox/widget/defaults/separator.lua index 6580e059..29859048 100644 --- a/tests/examples/wibox/widget/defaults/separator.lua +++ b/tests/examples/wibox/widget/defaults/separator.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/defaults/slider.lua b/tests/examples/wibox/widget/defaults/slider.lua index e3995a0a..94c3012e 100644 --- a/tests/examples/wibox/widget/defaults/slider.lua +++ b/tests/examples/wibox/widget/defaults/slider.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require( "wibox" ) --DOC_HIDE local beautiful = require( "beautiful" ) --DOC_HIDE diff --git a/tests/examples/wibox/widget/defaults/textbox.lua b/tests/examples/wibox/widget/defaults/textbox.lua index 9aaff04e..99311fa7 100644 --- a/tests/examples/wibox/widget/defaults/textbox.lua +++ b/tests/examples/wibox/widget/defaults/textbox.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/widget/graph/step.lua b/tests/examples/wibox/widget/graph/step.lua index bc3603e9..823ff57a 100644 --- a/tests/examples/wibox/widget/graph/step.lua +++ b/tests/examples/wibox/widget/graph/step.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape")} --DOC_HIDE diff --git a/tests/examples/wibox/widget/piechart/border_color.lua b/tests/examples/wibox/widget/piechart/border_color.lua index 4bbbf9e9..a0603b5b 100644 --- a/tests/examples/wibox/widget/piechart/border_color.lua +++ b/tests/examples/wibox/widget/piechart/border_color.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) diff --git a/tests/examples/wibox/widget/piechart/border_width.lua b/tests/examples/wibox/widget/piechart/border_width.lua index 40cb8dee..dd426934 100644 --- a/tests/examples/wibox/widget/piechart/border_width.lua +++ b/tests/examples/wibox/widget/piechart/border_width.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) diff --git a/tests/examples/wibox/widget/piechart/label.lua b/tests/examples/wibox/widget/piechart/label.lua index a994281b..61b137c0 100644 --- a/tests/examples/wibox/widget/piechart/label.lua +++ b/tests/examples/wibox/widget/piechart/label.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require( "wibox" ) local beautiful = require( "beautiful" ) diff --git a/tests/examples/wibox/widget/progressbar/bar_shape.lua b/tests/examples/wibox/widget/progressbar/bar_shape.lua index 4d5d9e93..2742bed1 100644 --- a/tests/examples/wibox/widget/progressbar/bar_shape.lua +++ b/tests/examples/wibox/widget/progressbar/bar_shape.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape") } --DOC_HIDE diff --git a/tests/examples/wibox/widget/progressbar/clip.lua b/tests/examples/wibox/widget/progressbar/clip.lua index bd272271..b9d84a73 100644 --- a/tests/examples/wibox/widget/progressbar/clip.lua +++ b/tests/examples/wibox/widget/progressbar/clip.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape") } --DOC_HIDE diff --git a/tests/examples/wibox/widget/progressbar/encapsulation.lua b/tests/examples/wibox/widget/progressbar/encapsulation.lua index 8ad14b9f..b727ed7d 100644 --- a/tests/examples/wibox/widget/progressbar/encapsulation.lua +++ b/tests/examples/wibox/widget/progressbar/encapsulation.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_NO_DASH --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local color = require("gears.color") --DOC_HIDE diff --git a/tests/examples/wibox/widget/progressbar/shape.lua b/tests/examples/wibox/widget/progressbar/shape.lua index bcaec4d0..15024fee 100644 --- a/tests/examples/wibox/widget/progressbar/shape.lua +++ b/tests/examples/wibox/widget/progressbar/shape.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape") } --DOC_HIDE diff --git a/tests/examples/wibox/widget/progressbar/text.lua b/tests/examples/wibox/widget/progressbar/text.lua index 59cc4f46..c1f6ca91 100644 --- a/tests/examples/wibox/widget/progressbar/text.lua +++ b/tests/examples/wibox/widget/progressbar/text.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local beautiful = require("beautiful") --DOC_HIDE diff --git a/tests/examples/wibox/widget/progressbar/vertical.lua b/tests/examples/wibox/widget/progressbar/vertical.lua index 09014e9e..6d826736 100644 --- a/tests/examples/wibox/widget/progressbar/vertical.lua +++ b/tests/examples/wibox/widget/progressbar/vertical.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_NO_USAGE --DOC_HIDE local wibox = require("wibox") --DOC_HIDE diff --git a/tests/examples/wibox/widget/separator/border_color.lua b/tests/examples/wibox/widget/separator/border_color.lua index 3228a1bf..787d91cb 100644 --- a/tests/examples/wibox/widget/separator/border_color.lua +++ b/tests/examples/wibox/widget/separator/border_color.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape")}--DOC_HIDE diff --git a/tests/examples/wibox/widget/separator/orientation.lua b/tests/examples/wibox/widget/separator/orientation.lua index eb42f8fd..b050ddef 100644 --- a/tests/examples/wibox/widget/separator/orientation.lua +++ b/tests/examples/wibox/widget/separator/orientation.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE_ALL local wibox = require("wibox") diff --git a/tests/examples/wibox/widget/separator/shape.lua b/tests/examples/wibox/widget/separator/shape.lua index 823701dd..8ff84b2f 100644 --- a/tests/examples/wibox/widget/separator/shape.lua +++ b/tests/examples/wibox/widget/separator/shape.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE local parent = ... --DOC_HIDE local wibox = require("wibox") --DOC_HIDE local gears = {shape = require("gears.shape")}--DOC_HIDE diff --git a/tests/examples/wibox/widget/slider/bar_border.lua b/tests/examples/wibox/widget/slider/bar_border.lua index 4d201aac..84572d3c 100644 --- a/tests/examples/wibox/widget/slider/bar_border.lua +++ b/tests/examples/wibox/widget/slider/bar_border.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") local beautiful = require("beautiful") diff --git a/tests/examples/wibox/widget/slider/bar_color.lua b/tests/examples/wibox/widget/slider/bar_color.lua index de385980..607b7a01 100644 --- a/tests/examples/wibox/widget/slider/bar_color.lua +++ b/tests/examples/wibox/widget/slider/bar_color.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") local beautiful = require("beautiful") diff --git a/tests/examples/wibox/widget/slider/bar_height.lua b/tests/examples/wibox/widget/slider/bar_height.lua index 58fad90a..4ab6db3d 100644 --- a/tests/examples/wibox/widget/slider/bar_height.lua +++ b/tests/examples/wibox/widget/slider/bar_height.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") local beautiful = require("beautiful") diff --git a/tests/examples/wibox/widget/slider/bar_margins.lua b/tests/examples/wibox/widget/slider/bar_margins.lua index 9b4f4ceb..7d5b2157 100644 --- a/tests/examples/wibox/widget/slider/bar_margins.lua +++ b/tests/examples/wibox/widget/slider/bar_margins.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") local beautiful = require("beautiful") diff --git a/tests/examples/wibox/widget/slider/bar_shape.lua b/tests/examples/wibox/widget/slider/bar_shape.lua index f285e425..a4dac87d 100644 --- a/tests/examples/wibox/widget/slider/bar_shape.lua +++ b/tests/examples/wibox/widget/slider/bar_shape.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") local gears = {shape = require("gears.shape")} diff --git a/tests/examples/wibox/widget/slider/handle_border.lua b/tests/examples/wibox/widget/slider/handle_border.lua index 4f20c326..531da03f 100644 --- a/tests/examples/wibox/widget/slider/handle_border.lua +++ b/tests/examples/wibox/widget/slider/handle_border.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") local beautiful = require("beautiful") diff --git a/tests/examples/wibox/widget/slider/handle_color.lua b/tests/examples/wibox/widget/slider/handle_color.lua index ab9a88fb..449b7adc 100644 --- a/tests/examples/wibox/widget/slider/handle_color.lua +++ b/tests/examples/wibox/widget/slider/handle_color.lua @@ -1,3 +1,4 @@ +--DOC_GEN_IMAGE --DOC_HIDE_ALL local parent = ... local wibox = require("wibox") diff --git a/tests/examples/wibox/widget/slider/handle_margins.lua b/tests/examples/wibox/widget/slider/handle_margins.lua index 7e4e2762..cc91c93f 100644 --- a/tests/examples/wibox/widget/slider/handle_margins.lua +++ b/tests/examples/wibox/widget/slider/handle_margins.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") local beautiful = require("beautiful") diff --git a/tests/examples/wibox/widget/slider/handle_shape.lua b/tests/examples/wibox/widget/slider/handle_shape.lua index 7a21342b..64fe6de4 100644 --- a/tests/examples/wibox/widget/slider/handle_shape.lua +++ b/tests/examples/wibox/widget/slider/handle_shape.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") local gears = {shape = require("gears.shape")} diff --git a/tests/examples/wibox/widget/slider/handle_width.lua b/tests/examples/wibox/widget/slider/handle_width.lua index a74e8db5..a02463e3 100644 --- a/tests/examples/wibox/widget/slider/handle_width.lua +++ b/tests/examples/wibox/widget/slider/handle_width.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") local beautiful = require("beautiful") diff --git a/tests/examples/wibox/widget/slider/value.lua b/tests/examples/wibox/widget/slider/value.lua index 801218d5..799efe8b 100644 --- a/tests/examples/wibox/widget/slider/value.lua +++ b/tests/examples/wibox/widget/slider/value.lua @@ -1,4 +1,5 @@ --DOC_HIDE_ALL +--DOC_GEN_IMAGE local parent = ... local wibox = require("wibox") local beautiful = require("beautiful")