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
10 changes: 0 additions & 10 deletions docs-shopify.dev/categories/organization.doc.ts

This file was deleted.

2 changes: 1 addition & 1 deletion docs-shopify.dev/commands/organization-list.doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const data: ReferenceEntityTemplateSchema = {
type: 'organizationlist',
},
],
category: 'organization',
category: 'general commands',
related: [
],
}
Expand Down
5 changes: 0 additions & 5 deletions docs-shopify.dev/generated/generated_category_pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
"title": "Shopify CLI Hydrogen commands",
"sections": []
},
{
"category": "organization",
"title": "Shopify CLI Organization commands",
"sections": []
},
{
"category": "store",
"title": "Shopify CLI Store commands",
Expand Down
2 changes: 1 addition & 1 deletion docs-shopify.dev/generated/generated_docs_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -5749,7 +5749,7 @@
}
}
],
"category": "organization",
"category": "general commands",
"related": []
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/cli/commands/docs/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class DocsGenerate extends Command {
const hiddenTopics: string[] = ['commands', 'help', 'plugins']

// Topics that are included in the general commands category
const generalTopics: string[] = ['config', 'auth']
const generalTopics: string[] = ['config', 'auth', 'organization']
Comment on lines 51 to +52
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The categorization behavior here (treating organization as a general topic) isn’t covered by the existing unit tests for the docs generator. Please add a test case that verifies writeCommandDocumentation assigns category: 'general commands' when hasTopic is true and topic is one of generalTopics (e.g., an organization:... command). This will prevent regressions if the topic list or category logic changes later.

Copilot uses AI. Check for mistakes.

function isHidden(command: oclifCommand.Loadable) {
// Some commands rely on the hidden property of the parent topic, but is not returned in the oclif command object
Expand Down
Loading