summaryrefslogtreecommitdiff
path: root/docs/src/model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/model.rs')
-rw-r--r--docs/src/model.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/src/model.rs b/docs/src/model.rs
index b222322a..801c60c7 100644
--- a/docs/src/model.rs
+++ b/docs/src/model.rs
@@ -64,7 +64,7 @@ pub enum BodyModel {
#[derive(Debug, Serialize)]
pub struct CategoryModel {
pub name: &'static str,
- pub title: &'static str,
+ pub title: EcoString,
pub details: Html,
pub items: Vec<CategoryItem>,
pub shorthands: Option<ShorthandsModel>,
@@ -89,6 +89,7 @@ pub struct FuncModel {
pub oneliner: &'static str,
pub element: bool,
pub contextual: bool,
+ pub deprecation: Option<&'static str>,
pub details: Html,
/// This example is only for nested function models. Others can have
/// their example directly in their details.
@@ -163,6 +164,8 @@ pub struct SymbolModel {
pub alternates: Vec<EcoString>,
pub markup_shorthand: Option<&'static str>,
pub math_shorthand: Option<&'static str>,
+ pub math_class: Option<&'static str>,
+ pub deprecation: Option<&'static str>,
}
/// Shorthands listed on a category page.