feat(scraper): move "Signals" to AST
This commit is contained in:
parent
09181259e1
commit
eaf31b2f16
|
@ -190,18 +190,18 @@ local function extract_section_variables(dl: string): { Node }, { string }
|
|||
return variables, signals
|
||||
end
|
||||
|
||||
-- local function extract_section_signal(dl: string): { string }
|
||||
-- local selector = "dt strong"
|
||||
local function extract_section_signal(dl: string): { string }
|
||||
local selector = "dt strong"
|
||||
|
||||
-- return scraper_utils.scrape(dl, selector, extract_node_text)
|
||||
-- end
|
||||
return scraper_utils.scrape(dl, selector, extract_node_text)
|
||||
end
|
||||
|
||||
local enum Section
|
||||
-- "Constructors"
|
||||
-- "Static module functions"
|
||||
"Object properties"
|
||||
-- "Object methods"
|
||||
-- "Signals"
|
||||
"Signals"
|
||||
end
|
||||
|
||||
-- returns
|
||||
|
@ -228,9 +228,10 @@ local section_scrapers <total>: { Section : function(html: string): { Node }, {
|
|||
-- end
|
||||
-- )
|
||||
-- end,
|
||||
-- ["Signals"] = function(html: string, module_doc: Module_Doc.Module_Doc)
|
||||
-- module_doc.signals = List(extract_section_signal(html))
|
||||
-- end,
|
||||
["Signals"] = function(html: string): { Node }, { Node }, { string }
|
||||
local signals = extract_section_signal(html)
|
||||
return {}, {}, signals
|
||||
end,
|
||||
}
|
||||
|
||||
-- local function extract_node_module_name(node: Node): string
|
||||
|
|
Loading…
Reference in New Issue