generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpaths.js
210 lines (204 loc) · 7.75 KB
/
paths.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
const websitePaths = [
"/guides/upgrade/v2_upgrade",
"/upgrade/v2_repo",
"/developer-tools/mapping-libraries/flatfile-mapping-python",
"/plugins",
"/plugins/extractors/xlsx-extractor", // FIX
"/plugins/extractors/json-extractor",
"/plugins/extractors/xml-extractor",
"/plugins/extractors/zip-extractor",
"/plugins/extractors/delimiter-extractor",
"/plugins/extractors/pdf-extractor",
"/plugins/transform/record-hook", // FIX
"/plugins/transform/autocast",
"/plugins/transform/dedupe",
"/plugins/automations/automap",
"/plugins/export/workbook",
"/plugins/export/webhook",
"/plugins/schemas/convert-json-schema",
"/plugins/schemas/convert-yaml-schema",
"/plugins/schemas/convert-sql-ddl",
"/plugins/schemas/convert-openapi",
"/plugins/migrations/dxp-configure",
"/plugins/core/job-handler",
"/plugins/core/space-configure",
"/plugins/utils/extractor",
"/plugins/utils/file-buffer",
"/plugins/utils/response-rejection",
"/overview",
"/starter-projects",
"/changelog/platform",
"/changelog/sdks",
"/changelog/sdks/plugins/highlights",
"/changelog/sdks/core/cli",
"/changelog/sdks/core/listener",
"/changelog/sdks/wrappers/javascript",
"/changelog/sdks/wrappers/react",
"/changelog/sdks/wrappers/angular",
"/changelog/sdks/wrappers/vue",
"/changelog/sdks/plugins/extractors/xlsx-extractor",
"/changelog/sdks/plugins/extractors/json-extractor",
"/changelog/sdks/plugins/extractors/xml-extractor",
"/changelog/sdks/plugins/extractors/zip-extractor",
"/changelog/sdks/plugins/extractors/delimiter-extractor",
"/changelog/sdks/plugins/extractors/pdf-extractor",
"/changelog/sdks/plugins/transform/record-hook",
"/changelog/sdks/plugins/transform/autocast",
"/changelog/sdks/plugins/transform/dedupe",
"/changelog/sdks/plugins/automations/automap",
"/changelog/sdks/plugins/export/export-workbook",
"/changelog/sdks/plugins/export/webhook-egress",
"/changelog/sdks/plugins/schemas/json-schema",
"/changelog/sdks/plugins/schemas/yaml-schema",
"/changelog/sdks/plugins/schemas/sql-ddl-converter",
"/changelog/sdks/plugins/schemas/openapi-schema",
"/changelog/sdks/plugins/migrations/dxp-configure",
"/changelog/sdks/plugins/core/job-handler",
"/changelog/sdks/plugins/core/space-configure",
"/changelog/sdks/plugins/utils/extractor",
"/changelog/sdks/plugins/utils/file-buffer",
"/changelog/sdks/plugins/utils/response-rejection",
"/apps/embedding/overview",
"/apps/embedding/javascript/guide",
"/apps/embedding/javascript/new_space_quickstart",
"/apps/embedding/javascript/new_space",
"/apps/embedding/javascript/reuse_space",
"/apps/embedding/react/guide",
"/apps/embedding/react/new_space_quickstart",
"/apps/embedding/react/components",
"/apps/embedding/react/legacy",
"/apps/embedding/vue/guide",
"/apps/embedding/vue/new_space",
"/apps/embedding/vue/reuse_space",
"/apps/embedding/angular/guide",
"/apps/embedding/angular/new_space_quickstart",
"/apps/embedding/angular/new_space",
"/apps/embedding/angular/reuse_space",
"/apps/embedding/reference/simple",
"/apps/embedding/reference/common",
"/apps/embedding/reference/advanced",
"/apps/projects/overview",
"/apps/workbooks",
"/apps/custom/tutorial-landing",
"/apps/custom/meet-the-listener",
"/apps/custom/meet-the-workbook",
"/apps/custom/add-data-transformation",
"/apps/custom/submit-action",
"/apps/custom/deploying",
"/guides/handling-data",
"/guides/actions",
"/guides/dynamic-configurations",
"/guides/namespaces",
"/guides/metadata",
"/guides/egress",
"/guides/theming",
"/guides/guest_sidebar",
"/guides/documents",
"/guides/secrets",
"/guides/automap",
"/guides/localization",
"/guides/additional-fields",
"/guides/flatfile_query_language",
"/guides/data-retention",
"/guides/api",
"/guides/multi-part_jobs",
"/guides/ai",
"/guides/bubble-io",
"/orchestration/listeners",
"/orchestration/events",
"/orchestration/actions",
"/orchestration/jobs",
"/blueprint/overview",
"/blueprint/sheet-options",
"/blueprint/field-types",
"/blueprint/constraints",
"/blueprint/relationships",
"/blueprint/access",
"/upgrade/overview",
"/reference/icons",
"/upgrade/v2_upgrade",
"/upgrade/v2_upgrade_concepts",
"/upgrade/v2_repo",
"/upgrade/v3_upgrade",
"/upgrade/v3_dxp_configure",
"/upgrade/v3_repo",
"/developer-tools/developing/running-local",
"/developer-tools/developing/check-for-agents",
"/developer-tools/deploying",
"/developer-tools/environment",
"/developer-tools/spaces",
"/developer-tools/security/authentication",
"/developer-tools/security/account-token",
"/developer-tools/security/roles-and-permissions",
"/developer-tools/core-libraries/flatfile",
"/developer-tools/core-libraries/listener",
"/developer-tools/versioning",
"/developer-tools/core-libraries/api",
"/developer-tools/core-libraries/api-python",
"/developer-tools/core-libraries/api-go",
"/developer-tools/core-libraries/api-java",
"/developer-tools/core-libraries/wrappers/vanilla",
"/developer-tools/core-libraries/wrappers/react",
"/developer-tools/core-libraries/wrappers/angular",
"/developer-tools/core-libraries/wrappers/vuejs",
"/developer-tools/mapping-libraries/flatfile-mapping-python",
"/changelog/platform",
"/changelog/sdks",
"/changelog/sdks/plugins/highlights",
"/changelog/sdks/core/cli",
"/changelog/sdks/core/listener",
"/changelog/sdks/wrappers/javascript",
"/changelog/sdks/wrappers/react",
"/changelog/sdks/wrappers/angular",
"/changelog/sdks/wrappers/vue",
"/changelog/sdks/plugins/extractors/xlsx-extractor",
"/changelog/sdks/plugins/extractors/json-extractor",
"/changelog/sdks/plugins/extractors/xml-extractor",
"/changelog/sdks/plugins/extractors/zip-extractor",
"/changelog/sdks/plugins/extractors/delimiter-extractor",
"/changelog/sdks/plugins/extractors/pdf-extractor",
"/changelog/sdks/plugins/transform/record-hook",
"/changelog/sdks/plugins/transform/autocast",
"/changelog/sdks/plugins/transform/dedupe",
"/changelog/sdks/plugins/automations/automap",
"/changelog/sdks/plugins/export/export-workbook",
"/changelog/sdks/plugins/export/webhook-egress",
"/changelog/sdks/plugins/schemas/json-schema",
"/changelog/sdks/plugins/schemas/yaml-schema",
"/changelog/sdks/plugins/schemas/sql-ddl-converter",
"/changelog/sdks/plugins/schemas/openapi-schema",
"/changelog/sdks/plugins/migrations/dxp-configure",
"/changelog/sdks/plugins/core/job-handler",
"/changelog/sdks/plugins/core/space-configure",
"/changelog/sdks/plugins/utils/extractor",
"/changelog/sdks/plugins/utils/file-buffer"
]
// Define the base URL
const baseURL = 'http://localhost:3000';
(async () => {
const [open, { default: readline }] = await Promise.all([
import('open').then(module => module.default || module),
import('readline')
]);
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
// Function to open paths one by one
async function openPaths(paths) {
for (const path of paths) {
// Open the current path in the default browser
await open(`${baseURL}${path}`);
// Wait for user input to proceed to the next path
await new Promise(resolve => {
console.log(`Opening ${path}`);
rl.question('Next? (Press Enter to continue)', () => {
resolve();
});
});
}
rl.close();
}
// Start the process
await openPaths(websitePaths);
})().catch(console.error);