Skip to content

Commit 99d3ba9

Browse files
committed
Add GraphQLYoga docset
1 parent b0a505d commit 99d3ba9

File tree

5 files changed

+56
-0
lines changed

5 files changed

+56
-0
lines changed

configs/GraphQLYoga.docsetconfig

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>allowFilters</key>
6+
<string>
7+
https://the-guild.dev/graphql/yoga-server/docs,https://the-guild.dev/graphql/yoga-server/docs/*,https://the-guild.dev/graphql/yoga-server/docs/*/*,https://the-guild.dev/graphql/yoga-server/docs/*/*/*,https://the-guild.dev/graphql/yoga-server/docs/*/*/*/*</string>
8+
<key>basicIndexEnabled</key>
9+
<true />
10+
<key>cssToInject</key>
11+
<string>footer { display: none !important; } .main-frame { padding-left: 400px !important; }</string>
12+
<key>denyFilters</key>
13+
<string>
14+
https://gravatar.com,https://gravatar.com/avatar,https://gravatar.com/avatar/*,https://gravatar.com/avatar/*/*,https://avatars.githubusercontent.com,https://avatars.githubusercontent.com/*,https://avatars.githubusercontent.com/*/*,https://avatars.githubusercontent.com/*/*/*,https://avatars.githubusercontent.com/*/*/*/*</string>
15+
<key>docsetKeyword</key>
16+
<string>yoga</string>
17+
<key>docsetName</key>
18+
<string>GraphQLYoga</string>
19+
<key>extraInfoPlist</key>
20+
<string></string>
21+
<key>isFromLocalFolder</key>
22+
<false />
23+
<key>isFromWebsite</key>
24+
<true />
25+
<key>javaScriptIndexEnabled</key>
26+
<false />
27+
<key>javaScriptUsedToIndex</key>
28+
<string>const pageTitle = $("title").text(); dashDoc.addEntry({name: pageTitle, type:
29+
"Guide"}); $("h1").each(function() { const entryName = $(this).text(); var entryHash =
30+
$(this).attr('id'); if(!entryHash) { entryHash = entryName.replace(/\W/g, '');
31+
$(this).attr('id', entryHash); } dashDoc.addEntry({name: entryName, type: "Section",
32+
hash: entryHash}); });</string>
33+
<key>localFolderPath</key>
34+
<string></string>
35+
<key>websiteURL</key>
36+
<string>https://the-guild.dev/graphql/yoga-server/docs</string>
37+
</dict>
38+
</plist>

docsets.json

+9
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,15 @@
737737
"archive": "BunGuides.tgz",
738738
"version": "1.240812.1626",
739739
"hash": "4c70f34143c5796b70cf4d309ebfc48c5d161221"
740+
},
741+
"GraphQLYoga": {
742+
"name": "GraphQLYoga",
743+
"alias": [
744+
"GraphQLYoga"
745+
],
746+
"archive": "GraphQLYoga.tgz",
747+
"version": "1.240812.2121",
748+
"hash": "7bd2aea845c187ba1bc5987057ca02cdd229ec85"
740749
}
741750
}
742751
}

docsets/GraphQLYoga.tgz

12.3 MB
Binary file not shown.

generate.ts

+9
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ const main = defineCommand({
104104
if (shouldGenerateJson) {
105105
await $`./generate-json.ts`;
106106
}
107+
108+
const shouldGenerateImages = await confirm({
109+
message: "Do you want to generate images?",
110+
default: true,
111+
});
112+
113+
if (shouldGenerateImages) {
114+
await $`./generate-images.ts`;
115+
}
107116
},
108117
});
109118

images/GraphQLYoga.png

5.57 KB
Loading

0 commit comments

Comments
 (0)