doc: Fix the UML template svg generation.
It was mixing the actual HTML relative path with the build directory path. This doesn't work universally. It didn't work on `awesome-www` builder.
This commit is contained in:
parent
bcceab439a
commit
6b4b09adc5
|
@ -6,7 +6,7 @@ local wibox = require("wibox")
|
||||||
local beautiful = require("beautiful")
|
local beautiful = require("beautiful")
|
||||||
|
|
||||||
-- Make the path relative.
|
-- Make the path relative.
|
||||||
image_path = "../" .. image_path:match("/(images/[^/]+)$")
|
local relative_image_path = "../" .. image_path:match("/(images/[^/]+)$")
|
||||||
|
|
||||||
-- This template generates an HTML table with how other classes are associated
|
-- This template generates an HTML table with how other classes are associated
|
||||||
-- with a given class.
|
-- with a given class.
|
||||||
|
@ -204,9 +204,10 @@ function module.generate_nav_table(t)
|
||||||
assert(entry.class)
|
assert(entry.class)
|
||||||
assert(entry.left.msg and entry.left.card)
|
assert(entry.left.msg and entry.left.card)
|
||||||
assert(entry.right.msg and entry.right.card)
|
assert(entry.right.msg and entry.right.card)
|
||||||
local path = image_path..counter..".svg"
|
local path = relative_image_path..counter..".svg"
|
||||||
|
local fpath = image_path..counter..".svg"
|
||||||
local widget = gen_table_uml(entry, t.class, entry.class, false)
|
local widget = gen_table_uml(entry, t.class, entry.class, false)
|
||||||
wibox.widget.draw_to_svg_file(widget, path, 320, 50)
|
wibox.widget.draw_to_svg_file(widget, fpath, 320, 50)
|
||||||
get_table_row(path, entry.class, entry[tab.."_property"])
|
get_table_row(path, entry.class, entry[tab.."_property"])
|
||||||
counter = counter + 1
|
counter = counter + 1
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue