mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Fix docs styling on mobile
This commit is contained in:
parent
be3c1a9445
commit
cc919f2f91
3 changed files with 58 additions and 29 deletions
|
@ -241,20 +241,45 @@ fn render_package_index(docs_by_module: &[(ModuleId, ModuleDocumentation)]) -> S
|
|||
push_html(&mut module_list_buf, "li", [], link_buf.as_str());
|
||||
}
|
||||
|
||||
let header = {
|
||||
let mut header_buf = String::new();
|
||||
|
||||
push_html(
|
||||
&mut header_buf,
|
||||
"h2",
|
||||
[("class", "module-name")],
|
||||
"Exposed Modules",
|
||||
);
|
||||
|
||||
push_html(
|
||||
&mut header_buf,
|
||||
"a",
|
||||
[
|
||||
("class", "llm-prompt-link"),
|
||||
("title", "Documentation in a LLM-friendly format"),
|
||||
("href", "llms.txt"),
|
||||
],
|
||||
"LLM docs",
|
||||
);
|
||||
|
||||
header_buf
|
||||
};
|
||||
|
||||
// The HTML for the index page
|
||||
let mut index_buf = String::new();
|
||||
|
||||
push_html(
|
||||
&mut index_buf,
|
||||
"h2",
|
||||
[("class", "module-name")],
|
||||
"Exposed Modules",
|
||||
"div",
|
||||
[("class", "module-header-container")],
|
||||
&header,
|
||||
);
|
||||
|
||||
push_html(
|
||||
&mut index_buf,
|
||||
"ul",
|
||||
[("class", "index-module-links")],
|
||||
module_list_buf.as_str(),
|
||||
&module_list_buf,
|
||||
);
|
||||
|
||||
index_buf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue