mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
docs-ui: Wrap module entry defs in section elements
This commit is contained in:
parent
a2e44604c8
commit
873142b473
1 changed files with 4 additions and 0 deletions
|
@ -191,6 +191,8 @@ fn render_module_documentation(
|
|||
if should_render_entry {
|
||||
match entry {
|
||||
DocEntry::DocDef(doc_def) => {
|
||||
buf.push_str("<section>");
|
||||
|
||||
let mut href = String::new();
|
||||
href.push('#');
|
||||
href.push_str(doc_def.name.as_str());
|
||||
|
@ -239,6 +241,8 @@ fn render_module_documentation(
|
|||
.as_str(),
|
||||
);
|
||||
}
|
||||
|
||||
buf.push_str("</section>");
|
||||
}
|
||||
DocEntry::DetachedDoc(docs) => {
|
||||
let markdown = markdown_to_html(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue