ex_dash v0.1.0 ExDash.Formatter.Injector behaviour
Injector sets Dash Anchors and makes style tweaks to passed ExDoc HTML files.
Dash Anchors are used within Dash to build the Table of Contents per page.
Currently supported:
- Types
- Functions
- Macros
- Callbacks
Style tweaks include hiding the sidebar and padding tweaks to match Dash’s Hex Doc styles.
Summary
Functions
Returns a list of ids for the given selector and parse function
inject_all/1 takes a path to an html file and runs some injections over it
Types
Functions
find_ids_in_list(html_content, list_selector, id_parser)
find_ids_in_list(html_content, String.t, (html_content -> String.t)) :: [id]
Returns a list of ids for the given selector and parse function.
inject_all/1 takes a path to an html file and runs some injections over it.
The updated html is then re-written to the same path.