Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const generateNav = async (contentPath, navPath) => {
# directly within the CLI documentation. Instead, it will be used
# for the https://docs.npmjs.com/ site.
`
await fs.writeFile(navPath, `${prefix}\n${yaml.stringify(navData, { indent: 2, indentSeq: false })}`, 'utf-8')
await fs.writeFile(navPath, `${prefix}\n${yaml.stringify(navData, { indent: 2, indentSeq: false, lineWidth: 0 })}`, 'utf-8')
}

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

Expand Down
3 changes: 1 addition & 2 deletions docs/lib/content/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@
description: Manage your authentication tokens
- title: npm trust
url: /commands/npm-trust
description: Manage trusted publishing relationships between packages and CI/CD
providers
description: Manage trusted publishing relationships between packages and CI/CD providers
- title: npm undeprecate
url: /commands/npm-undeprecate
description: Undeprecate a version of a package
Expand Down
Loading