Skip to content

Commit 9890c7d

Browse files
committed
fix(yaml): force double quotes for fm and sidebars
1 parent 4488aed commit 9890c7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: crates/rari-doc/src/pages/types/doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ fn fm_to_string(fm: &FrontMatter) -> Result<String, DocError> {
383383
&fm_str,
384384
&FormatOptions {
385385
language: LanguageOptions {
386-
quotes: pretty_yaml::config::Quotes::PreferDouble,
386+
quotes: pretty_yaml::config::Quotes::ForceDouble,
387387
indent_block_sequence_in_map: true,
388388
..Default::default()
389389
},

Diff for: crates/rari-tools/src/sidebars.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ fn write_sidebar(sidebar: &Sidebar, path: &Path) -> Result<(), ToolError> {
158158
&y,
159159
&FormatOptions {
160160
language: LanguageOptions {
161-
quotes: pretty_yaml::config::Quotes::PreferDouble,
161+
quotes: pretty_yaml::config::Quotes::ForceDouble,
162162
indent_block_sequence_in_map: true,
163163
..Default::default()
164164
},

0 commit comments

Comments
 (0)