Skip to content

Commit

Permalink
docs: Fix generated output
Browse files Browse the repository at this point in the history
  • Loading branch information
hunger committed Oct 23, 2024
1 parent 118022b commit e01552c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
13 changes: 0 additions & 13 deletions docs/src/content/collections/enums/TextHorizontalAlignment.md

This file was deleted.

14 changes: 4 additions & 10 deletions xtask/src/slintdocs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,15 @@ fn write_individual_enum_files(
std::fs::File::create(&path).context(format!("error creating {path:?}"))?,
);

file.write_all(
br#"<!-- Generated with `cargo xtask slintdocs` from internal/commons/enums.rs -->
"#,
)?;

write!(
file,
r#"---
title: {0}
description: {0} content
---
<!-- Generated with `cargo xtask slintdocs` from internal/commons/enums.rs -->
`{0}`
{1}
Expand Down Expand Up @@ -232,18 +229,15 @@ fn write_individual_struct_files(
std::fs::File::create(&path).context(format!("error creating {path:?}"))?,
);

file.write_all(
br#"<!-- Generated with `cargo xtask slintdocs` from internal/common/builtin_structs.rs -->
"#,
)?;

write!(
file,
r#"---
title: {0}
description: {0} content
---
<!-- Generated with `cargo xtask slintdocs` from internal/common/builtin_structs.rs -->
`{0}`
{1}
Expand Down

0 comments on commit e01552c

Please sign in to comment.