Skip to content

Commit 143f8cd

Browse files
authored
docs: docs shouldn't wrap yaml description (#9007)
closes #8975
1 parent a2154cd commit 143f8cd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/lib/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const generateNav = async (contentPath, navPath) => {
163163
# directly within the CLI documentation. Instead, it will be used
164164
# for the https://docs.npmjs.com/ site.
165165
`
166-
await fs.writeFile(navPath, `${prefix}\n${yaml.stringify(navData, { indent: 2, indentSeq: false })}`, 'utf-8')
166+
await fs.writeFile(navPath, `${prefix}\n${yaml.stringify(navData, { indent: 2, indentSeq: false, lineWidth: 0 })}`, 'utf-8')
167167
}
168168

169169
// Auto-generate doc templates for commands without docs
@@ -278,7 +278,7 @@ ${description}
278278
# directly within the CLI documentation. Instead, it will be used
279279
# for the https://docs.npmjs.com/ site.
280280
`
281-
await fs.writeFile(navPath, `${prefix}\n${yaml.stringify(navData, { indent: 2, indentSeq: false })}`, 'utf-8')
281+
await fs.writeFile(navPath, `${prefix}\n${yaml.stringify(navData, { indent: 2, indentSeq: false, lineWidth: 0 })}`, 'utf-8')
282282
}
283283
}
284284

docs/lib/content/nav.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@
188188
description: Manage your authentication tokens
189189
- title: npm trust
190190
url: /commands/npm-trust
191-
description: Manage trusted publishing relationships between packages and CI/CD
192-
providers
191+
description: Manage trusted publishing relationships between packages and CI/CD providers
193192
- title: npm undeprecate
194193
url: /commands/npm-undeprecate
195194
description: Undeprecate a version of a package

0 commit comments

Comments
 (0)