summaryrefslogtreecommitdiff
path: root/crates/typst-docs/src/model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-docs/src/model.rs')
-rw-r--r--crates/typst-docs/src/model.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/typst-docs/src/model.rs b/crates/typst-docs/src/model.rs
index 580ae0d3..93742825 100644
--- a/crates/typst-docs/src/model.rs
+++ b/crates/typst-docs/src/model.rs
@@ -62,7 +62,8 @@ pub enum BodyModel {
/// Details about a category.
#[derive(Debug, Serialize)]
pub struct CategoryModel {
- pub name: EcoString,
+ pub name: &'static str,
+ pub title: &'static str,
pub details: Html,
pub items: Vec<CategoryItem>,
pub shorthands: Option<ShorthandsModel>,
@@ -144,7 +145,8 @@ pub struct TypeModel {
/// A collection of symbols.
#[derive(Debug, Serialize)]
pub struct SymbolsModel {
- pub name: &'static str,
+ pub name: EcoString,
+ pub title: EcoString,
pub details: Html,
pub list: Vec<SymbolModel>,
}