diff --git a/docs/ldoc.css b/docs/ldoc.css index bf0529632..3c4175e50 100644 --- a/docs/ldoc.css +++ b/docs/ldoc.css @@ -569,3 +569,8 @@ pre .url { color: #272fc2; text-decoration: underline; } .summary_row:hover { background-color: #f7fbff; } + +/* CSS for beautiful.fg_normal */ +.svg_stroke, .svg_fill { + color: black; +} diff --git a/tests/examples/CMakeLists.txt b/tests/examples/CMakeLists.txt index af3f28923..f7a9a68c8 100644 --- a/tests/examples/CMakeLists.txt +++ b/tests/examples/CMakeLists.txt @@ -237,7 +237,7 @@ function(run_test test_path namespace escaped_content) set(OUTPUT_RAW_IMAGE_PATH "${RAW_IMAGE_PATH}.svg") set(OUTPUT_IMAGE_PATH "${IMAGE_PATH}.svg") escape_string( - "![Usage example](../images/AUTOGEN${namespace}_${TEST_FILE_NAME}.svg)\n" + "\n" "${TEST_DOC_CONTENT}" TEST_DOC_CONTENT "" ) else() diff --git a/tests/examples/_postprocess.lua b/tests/examples/_postprocess.lua index 9f30166c2..7ba00829b 100755 --- a/tests/examples/_postprocess.lua +++ b/tests/examples/_postprocess.lua @@ -25,6 +25,8 @@ if (not i) or (not o) then return end local line, count = i:read("*line"), 0 +local add_link = false + while line do -- Deduplicate and concatenate the classes. local classes = {} @@ -60,6 +62,13 @@ while line do end o:write(line .. "\n") + + -- Add the stylesheet. + if line:sub(1, 6) == "\n') + end + + -- Next line. line = i:read("*line") end