docs: run gi-docgen before the other docs
@@ -73,8 +73,8 @@ fn get_language<'a>(entry: &'a str, out: &mut String) -> &'a str {
fn format(input: &str, env: &Env, in_type: Option<&TypeId>) -> String {
let mut ret = String::with_capacity(input.len());
// We run gi_docgen first because it's super picky about the types it replaces
- let out = replace_c_types(input, env, in_type);
- let out = gi_docgen::replace_c_types(&out, env, in_type);
+ let out = gi_docgen::replace_c_types(input, env, in_type);
+ let out = replace_c_types(&out, env, in_type);
// this has to be done after gi_docgen replaced the various types it knows as it uses `@` in it's linking format
let out = PARAM_SYMBOL.replace_all(&out, |caps: &Captures<'_>| format!("`{}`", &caps[2]));
ret.push_str(&out);
