generate_doc_accordion_panels | R 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()'.
generate_doc_accordion_panels(md_file)
md_file |
the documentation filename stored in './data-doc' |
a list of HTML accordion_panels to be spliced in a 'bslib::accordion()'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.