From 3fa4cf8f0ec33faa082e7b04c2d7d2d0e0543e24 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Tue, 30 Jul 2024 15:46:52 -0400 Subject: docs: replace instances of "gitea" with "Forgejo" --- generator/src/structs.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'generator/src/structs.rs') diff --git a/generator/src/structs.rs b/generator/src/structs.rs index 4bd4418..4543f5c 100644 --- a/generator/src/structs.rs +++ b/generator/src/structs.rs @@ -104,6 +104,7 @@ pub fn create_struct_for_definition( } if let MaybeRef::Value { value } = &prop_schema { if let Some(desc) = &value.description { + let desc = desc.replace("gitea", "Forgejo").replace("Gitea", "Forgejo"); for line in desc.lines() { fields.push_str("/// "); fields.push_str(line); @@ -199,6 +200,7 @@ fn create_struct_docs(schema: &Schema) -> eyre::Result { fn create_struct_docs_str(description: Option<&str>) -> eyre::Result { let doc = match description { Some(desc) => { + let desc = desc.replace("gitea", "Forgejo").replace("Gitea", "Forgejo"); let mut out = String::new(); for line in desc.lines() { out.push_str("/// "); -- cgit v1.2.3