generator.ch

Declarations

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