Merge pull request #2273 from Elv13/fix_doc_signals

Fix doc signals
This commit is contained in:
Emmanuel Lepage Vallée 2018-05-28 20:56:17 -04:00 committed by GitHub
commit 7e529eeab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 42 additions and 22 deletions

View File

@ -132,4 +132,19 @@ file = {
}
}
custom_display_name_handler = function(item, default_handler)
-- Remove the "namespace" from the signals and properties
if item.type == "property" or item.type == "signal" then
local name = item.name:match("%.([^.]+)$")
return name ~= "" and name or item.name
end
if item.type == "deprecated" then
return default_handler(item) .. "</a> <i class=\"deprecated_label\">[deprecated]</i><a>"
end
return default_handler(item)
end
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

View File

@ -277,6 +277,11 @@ ul.nowrap {
padding-right: 15px;
}
.deprecated_label {
color: #9db9f3;
font-weight: normal;
}
/* stop sublists from having initial vertical space */
ul ul { margin-top: 0px; }
ol ul { margin-top: 0px; }

View File

@ -1238,7 +1238,7 @@ end
-- @tparam[opt=nil] table hints Some hints.
--- The client marked signal (deprecated).
-- @signal .marked
-- @signal marked
--- The client unmarked signal (deprecated).
-- @signal unmarked

View File

@ -72,13 +72,13 @@ local protected_call = require("gears.protected_call")
-- @table timer
--- When the timer is started.
-- @signal .start
-- @signal start
--- When the timer is stopped.
-- @signal .stop
-- @signal stop
--- When the timer had a timeout event.
-- @signal .timeout
-- @signal timeout
local timer = { mt = {} }

View File

@ -60,7 +60,7 @@
/** When bound mouse button + modifiers are pressed.
* @param ... One or more arguments are possible
* @signal .press
* @signal press
*/
/** When property changes.
@ -73,7 +73,7 @@
/** When bound mouse button + modifiers are pressed.
* @param ... One or more arguments are possible
* @signal .release
* @signal release
*/
/** Create a new mouse button bindings.

View File

@ -112,21 +112,21 @@
*/
/** When a client gains focus.
* @signal .focus
* @signal focus
*/
/** Before manage, after unmanage, and when clients swap.
* @signal .list
* @signal list
*/
/** When 2 clients are swapped
* @tparam client client The other client
* @tparam boolean is_source If self is the source or the destination of the swap
* @signal .swapped
* @signal swapped
*/
/** When a new client appears and gets managed by Awesome.
* @signal .manage
* @signal manage
*/
/**
@ -207,29 +207,29 @@
*/
/** When a client gets tagged.
* @signal .tagged
* @signal tagged
* @tag t The tag object.
*/
/** When a client gets unfocused.
* @signal .unfocus
* @signal unfocus
*/
/**
* @signal .unmanage
* @signal unmanage
*/
/** When a client gets untagged.
* @signal .untagged
* @signal untagged
* @tag t The tag object.
*/
/**
* @signal .raised
* @signal raised
*/
/**
* @signal .lowered
* @signal lowered
*/
/**

View File

@ -56,7 +56,7 @@
*/
/**
* @signal .press
* @signal press
*/
/**
@ -68,7 +68,7 @@
*/
/**
* @signal .release
* @signal release
*/
/** Get the number of instances.

View File

@ -71,12 +71,12 @@
*/
/**
* @signal .primary_changed
* @signal primary_changed
*/
/**
* This signal is emitted when a new screen is added to the current setup.
* @signal .added
* @signal added
*/
/**
@ -85,13 +85,13 @@
*/
/** This signal is emitted when the list of available screens changes.
* @signal .list
* @signal list
*/
/** When 2 screens are swapped
* @tparam screen screen The other screen
* @tparam boolean is_source If self is the source or the destination of the swap
* @signal .swapped
* @signal swapped
*/
/**