api
generator.ch
Declarations in generator.ch
1 declarationsdocgen
Declarations
Public only
docgen#
Publicnamespace
namespace docgen
HtmlGenerator#
Publicstruct
struct HtmlGenerator {
var config : *DocConfig
var summary : *Summary
var search_index : string
var generated_urls : vector<string>
var pages : vector<*SummaryItem>
}
delete#
function
func delete(self : *HtmlGenerator) : void
highlight_wrapper#
function
replace_extension#
function
strip_tags#
function
Helper to strip HTML tags for search index
escape_json_string#
function
Helper to escape JSON string
render_sidebar_item#
function
Recursively render sidebar
str_vec_contains#
function
is_server_side_supported#
function
func is_server_side_supported(lang : string_view) : bool
build_toc#
function
Build an on-this-page list from h2/h3 headings in rendered content.
pager_html#
function
Prev/Next pager from the flat reading order
collect_pages#
function
Flatten the summary tree into an ordered list of pages (for prev/next)
page_position#
function
Find a page's position in the flat reading order; -1 if not a page
breadcrumb_html#
function
Breadcrumb trail (Home / Section / Page) for the current page
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, page_item : *SummaryItem) : void
process_item#
functionExtension