Skip to content

Commit dc70dd1

Browse files
committed
feat: add Rsdoctor, Rsbuild, Rspack, Rslib and Rstest
1 parent 47467ee commit dc70dd1

File tree

20 files changed

+297
-3
lines changed

20 files changed

+297
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Link **DocSearch** and **Meilisearch** into Raycast.
44

55
![interface](./metadata/docsearch-1.png)
66

7-
### Supported Documentations (47 documentations | 80 different versions)
7+
### Supported Documentations (52 documentations | 90 different versions)
88

99
| Documentations | | |
1010
| :----------------------------------------: | :-----------------------------------------------: | :---------------------------------------------------: |
@@ -23,7 +23,9 @@ Link **DocSearch** and **Meilisearch** into Raycast.
2323
| [Neovim](https://neovim.io/) | [Less](https://lesscss.org/) | [Sass](https://sass-lang.com/) |
2424
| [Deno](https://deno.com/) | [TypeScript](https://www.typescriptlang.org) | [NextJS](https://nextjs.org/docs) |
2525
| [MassTransit](https://masstransit.io/) | [Pinia](https://pinia.vuejs.org/) | [Yazi](https://yazi-rs.github.io/) |
26-
| [Ollama](https://docs.ollama.com/) | [Homarr](https://homarr.dev/) |
26+
| [Ollama](https://docs.ollama.com/) | [Homarr](https://homarr.dev/) | [Rsdoctor](https://rsdoctor.rs/) |
27+
| [Rsbuild](https://rsbuild.rs/) | [Rspack](https://rspack.rs/) | [Rslib](https://rslib.rs/) |
28+
| [Rstest](https://rstest.rs/) |
2729

2830
### Docsearch
2931

assets/logo/rsbuild.png

30.3 KB
Loading

assets/logo/rsdoctor.png

38.1 KB
Loading

assets/logo/rslib.png

41.6 KB
Loading

assets/logo/rspack.png

26.4 KB
Loading

assets/logo/rstest.png

61.6 KB
Loading

package.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,81 @@
722722
}
723723
],
724724
"mode": "view"
725+
},
726+
{
727+
"name": "rsdoctor",
728+
"icon": "/logo/rsdoctor.png",
729+
"title": "Rsdoctor",
730+
"subtitle": "DocSearch",
731+
"description": "Search Rsdoctor documentation",
732+
"arguments": [
733+
{
734+
"name": "search",
735+
"placeholder": "Search...",
736+
"type": "text"
737+
}
738+
],
739+
"mode": "view"
740+
},
741+
{
742+
"name": "rsbuild",
743+
"icon": "/logo/rsbuild.png",
744+
"title": "Rsbuild",
745+
"subtitle": "DocSearch",
746+
"description": "Search Rsbuild documentation",
747+
"arguments": [
748+
{
749+
"name": "search",
750+
"placeholder": "Search...",
751+
"type": "text"
752+
}
753+
],
754+
"mode": "view"
755+
},
756+
{
757+
"name": "rspack",
758+
"icon": "/logo/rspack.png",
759+
"title": "Rspack",
760+
"subtitle": "DocSearch",
761+
"description": "Search Rspack documentation",
762+
"arguments": [
763+
{
764+
"name": "search",
765+
"placeholder": "Search...",
766+
"type": "text"
767+
}
768+
],
769+
"mode": "view"
770+
},
771+
{
772+
"name": "rslib",
773+
"icon": "/logo/rslib.png",
774+
"title": "Rslib",
775+
"subtitle": "DocSearch",
776+
"description": "Search Rslib documentation",
777+
"arguments": [
778+
{
779+
"name": "search",
780+
"placeholder": "Search...",
781+
"type": "text"
782+
}
783+
],
784+
"mode": "view"
785+
},
786+
{
787+
"name": "rstest",
788+
"icon": "/logo/rstest.png",
789+
"title": "Rstest",
790+
"subtitle": "DocSearch",
791+
"description": "Search Rstest documentation",
792+
"arguments": [
793+
{
794+
"name": "search",
795+
"placeholder": "Search...",
796+
"type": "text"
797+
}
798+
],
799+
"mode": "view"
725800
}
726801
],
727802
"dependencies": {

raycast-env.d.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,16 @@ declare namespace Preferences {
107107
export type Ollama = ExtensionPreferences & {}
108108
/** Preferences accessible in the `homarr` command */
109109
export type Homarr = ExtensionPreferences & {}
110+
/** Preferences accessible in the `rsdoctor` command */
111+
export type Rsdoctor = ExtensionPreferences & {}
112+
/** Preferences accessible in the `rsbuild` command */
113+
export type Rsbuild = ExtensionPreferences & {}
114+
/** Preferences accessible in the `rspack` command */
115+
export type Rspack = ExtensionPreferences & {}
116+
/** Preferences accessible in the `rslib` command */
117+
export type Rslib = ExtensionPreferences & {}
118+
/** Preferences accessible in the `rstest` command */
119+
export type Rstest = ExtensionPreferences & {}
110120
}
111121

112122
declare namespace Arguments {
@@ -344,6 +354,31 @@ declare namespace Arguments {
344354
export type Homarr = {
345355
/** Search... */
346356
"search": string
357+
}
358+
/** Arguments passed to the `rsdoctor` command */
359+
export type Rsdoctor = {
360+
/** Search... */
361+
"search": string
362+
}
363+
/** Arguments passed to the `rsbuild` command */
364+
export type Rsbuild = {
365+
/** Search... */
366+
"search": string
367+
}
368+
/** Arguments passed to the `rspack` command */
369+
export type Rspack = {
370+
/** Search... */
371+
"search": string
372+
}
373+
/** Arguments passed to the `rslib` command */
374+
export type Rslib = {
375+
/** Search... */
376+
"search": string
377+
}
378+
/** Arguments passed to the `rstest` command */
379+
export type Rstest = {
380+
/** Search... */
381+
"search": string
347382
}
348383
}
349384

src/data/apis.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import {
1010
vue, vueUse, vuepress, typescript, nextjs, massTransit, raycast,
1111
unidata, pinia, homarr,
1212
} from "./docs";
13+
import rsdoctor from "./docs/rsdoctor";
14+
import rsbuild from "./docs/rsbuild";
15+
import rspack from "./docs/rspack";
16+
import rslib from "./docs/rslib";
17+
import rstest from "./docs/rstest";
1318

1419
export const data: Data = {
1520
[DocID.Ollama]: ollama,
@@ -59,4 +64,9 @@ export const data: Data = {
5964
[DocID.MassTransit]: massTransit,
6065
[DocID.Pinia]: pinia,
6166
[DocID.Homarr]: homarr,
67+
[DocID.Rsdoctor]: rsdoctor,
68+
[DocID.Rsbuild]: rsbuild,
69+
[DocID.Rspack]: rspack,
70+
[DocID.Rslib]: rslib,
71+
[DocID.Rstest]: rstest,
6272
};

src/data/docs/rsbuild.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { DocItem } from "../types";
2+
3+
const BASE_API_CONFIG = {
4+
icon: "../assets/logo/rsbuild.png",
5+
apiKey: "ecb541ceb2b67d7f23e12e6fb4772c0f",
6+
appId: "LBYJGZQY5U",
7+
indexName: "rsbuild",
8+
type: "algolia",
9+
} as const;
10+
11+
const rsbuild: DocItem = {
12+
"en-US": {
13+
...BASE_API_CONFIG,
14+
homepage: "https://rsbuild.rs/",
15+
searchParameters: {
16+
facetFilters: ["lang:en"],
17+
},
18+
},
19+
"zh-CN": {
20+
...BASE_API_CONFIG,
21+
homepage: "https://rsbuild.rs/zh/",
22+
searchParameters: {
23+
facetFilters: ["lang:zh"],
24+
},
25+
},
26+
};
27+
28+
export default rsbuild;

0 commit comments

Comments
 (0)