Skip to content

Commit 90279f9

Browse files
Fix formatting and remove redundant text in list.md (#23473)
* Fix formatting and remove redundant text in list.md * add platforms field --------- Co-authored-by: raycastbot <[email protected]>
1 parent e0d4df7 commit 90279f9

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

docs/api-reference/user-interface/list.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -584,12 +584,9 @@ export default function Command() {
584584
585585
### List.EmptyView
586586
587-
A view to display when there aren't any items available. Use to greet users with a friendly message if the
588-
extension requires user input before it can show any list items e.g. when searching for a package, an article etc.
587+
A view to display when there aren't any items available. Use to greet users with a friendly message if the extension requires user input before it can show any list items e.g. when searching for a package, an article etc.
589588
590-
Raycast provides a default `EmptyView` that will be displayed if the List component either has no children,
591-
or if it has children, but none of them match the query in the search bar. This too can be overridden by passing an
592-
empty view alongside the other `List.Item`s.
589+
Raycast provides a default `EmptyView` that will be displayed if the List component either has no children, or if it has children, but none of them match the query in the search bar. This too can be overridden by passing an empty view alongside the other `List.Item`s.
593590
594591
Note that the `EmptyView` is _never_ displayed if the `List`'s `isLoading` property is true and the search bar is empty.
595592
@@ -628,9 +625,7 @@ export default function CommandWithCustomEmptyView() {
628625
629626
A item in the [List](#list).
630627
631-
This is one of the foundational UI components of Raycast. A list item represents a single entity. It can be a
632-
GitHub pull request, a file, or anything else. You most likely want to perform actions on this item, so make it clear
633-
to the user what this list item is about.
628+
This is one of the foundational UI components of Raycast. A list item represents a single entity. It can be a GitHub pull request, a file, or anything else. You most likely want to perform actions on this item, so make it clear to the user what this list item is about.
634629
635630
#### Example
636631
@@ -945,8 +940,7 @@ export default function Metadata() {
945940
946941
A group of related [List.Item](#list.item).
947942
948-
Sections are a great way to structure your list. For example, group GitHub issues with the same status and order them by priority.
949-
This way, the user can quickly access what is most relevant.
943+
Sections are a great way to structure your list. For example, group GitHub issues with the same status and order them by priority. This way, the user can quickly access what is most relevant.
950944
951945
#### Example
952946

extensions/evaluate-math-expression/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,8 @@
7575
"lint": "ray lint",
7676
"prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1",
7777
"publish": "npx @raycast/api@latest publish"
78-
}
78+
},
79+
"platforms": [
80+
"macOS"
81+
]
7982
}

extensions/not-diamond/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,8 @@
124124
"lint": "ray lint",
125125
"prepublishOnly": "echo \"\\n\\nIt seems like you are trying to publish the Raycast extension to npm.\\n\\nIf you did intend to publish it to npm, remove the \\`prepublishOnly\\` script and rerun \\`npm publish\\` again.\\nIf you wanted to publish it to the Raycast Store instead, use \\`npm run publish\\` instead.\\n\\n\" && exit 1",
126126
"publish": "npx @raycast/api@latest publish"
127-
}
127+
},
128+
"platforms": [
129+
"macOS"
130+
]
128131
}

0 commit comments

Comments
 (0)