doc: Fix a problem which causes the SVG to be blurry.
This commit is contained in:
parent
e4b9728260
commit
87a69c4d4d
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
"<object data=\"../images/AUTOGEN${namespace}_${TEST_FILE_NAME}.svg\" alt=\"Usage example\" type=\"image/svg+xml\"></object>\n"
|
||||
"${TEST_DOC_CONTENT}" TEST_DOC_CONTENT ""
|
||||
)
|
||||
else()
|
||||
|
|
|
@ -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) == "<?xml " then
|
||||
o:write('<?xml-stylesheet href="../ldoc.css" type="text/css"?>\n')
|
||||
end
|
||||
|
||||
-- Next line.
|
||||
line = i:read("*line")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue