generator.ch

Declarations

Public Only
docgen
Publicnamespace
namespace docgen
HtmlGenerator
Publicstruct
struct HtmlGenerator { var config : *DocConfig var summary : *Summary var search_index : string }
delete
function
func delete(self : *HtmlGenerator) : void
highlight_wrapper
function
func highlight_wrapper(lang : string_view, code : string_view) : string
replace_extension
function
func replace_extension(path : &string, old_ext : string_view, new_ext : string_view) : string
get_relative_path_to_root
function
func get_relative_path_to_root(depth : int) : string
strip_tags
function
func strip_tags(html : string_view) : string
Helper to strip HTML tags for search index
escape_json_string
function
func escape_json_string(str : string_view) : string
Helper to escape JSON string
render_sidebar_item
function
func render_sidebar_item(item : *SummaryItem, current_path : string_view, depth : int) : string
Recursively render sidebar
str_vec_contains
function
func str_vec_contains(vec : &vector<string>, val : string_view) : bool
is_server_side_supported
function
func is_server_side_supported(lang : string_view) : bool
get_prism_includes
function
func get_prism_includes(config : *DocConfig) : string
generate_page
functionExtension
func generate_page(gen : &HtmlGenerator, title : string_view, content : string_view, output_path : string, relative_depth : int, current_md_path : string_view) : void
process_item
functionExtension
func process_item(gen : &HtmlGenerator, item : *SummaryItem) : void
generate
Publicfunction
func generate(config : DocConfig, summary : *Summary) : void