generate_doc_accordion_panels: generate_doc_accordion_panels() Create HTML...

View source: R/fct_helpers.R

generate_doc_accordion_panelsR Documentation

generate_doc_accordion_panels() Create HTML 'bslib::accordion_panel()' items for each dataset documented in ./data-doc. These are then used and spliced as arguments inside a 'bslib::accordion()' item. Each markdown h2 heading is used as a 'title' argument for 'accordion_panel()' and each paragraph (i.e. not a h2 header) is used as content to fill the 'accordion_panel()'.

Description

generate_doc_accordion_panels() Create HTML 'bslib::accordion_panel()' items for each dataset documented in ./data-doc. These are then used and spliced as arguments inside a 'bslib::accordion()' item. Each markdown h2 heading is used as a 'title' argument for 'accordion_panel()' and each paragraph (i.e. not a h2 header) is used as content to fill the 'accordion_panel()'.

Usage

generate_doc_accordion_panels(md_file)

Arguments

md_file

the documentation filename stored in './data-doc'

Value

a list of HTML accordion_panels to be spliced in a 'bslib::accordion()'


vdes2020/eneRgyVD documentation built on July 3, 2025, 7:36 p.m.