doc: Fix links in the "AwesomeWM widget system" page.

The URLs just changed again.
This commit is contained in:
Emmanuel Lepage Vallee 2019-07-09 17:00:48 -04:00
parent 8038f8124e
commit bd5e557a60
1 changed files with 6 additions and 1 deletions

View File

@ -4,11 +4,16 @@
# Ldoc wont parse the HTML content and discount tables are disabled, so here is
# some raw HTML
function(add_to_table name namespace group current_table new_table)
set(URI_PATH "${group}")
if(NOT ${URI_PATH} STREQUAL "widget")
set(URI_PATH "widget_${group}")
endif()
set(${new_table} "${current_table}\n\
<tr>\n\
<td>
<a href='../classes/${namespace}${name}.html'>${namespace}${name}</a>
<a href='../${URI_PATH}s/${namespace}${name}.html'>${namespace}${name}</a>
</td>\n\
<td><img src='../images/AUTOGEN_wibox_${group}_defaults_${name}.svg' /></td>\n\
</tr>\n\