mintlify 1.2.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/CONTRIBUTING.md +2 -0
  2. package/README.md +1 -1
  3. package/bin/index.js +0 -2
  4. package/bin/index.js.map +1 -1
  5. package/bin/local-preview/index.js +12 -60
  6. package/bin/local-preview/index.js.map +1 -1
  7. package/bin/local-preview/listener/categorizeFiles.js +47 -0
  8. package/bin/local-preview/listener/categorizeFiles.js.map +1 -0
  9. package/bin/local-preview/listener/generate.js +89 -0
  10. package/bin/local-preview/listener/generate.js.map +1 -0
  11. package/bin/local-preview/listener/index.js +135 -0
  12. package/bin/local-preview/listener/index.js.map +1 -0
  13. package/bin/local-preview/listener/update.js +41 -0
  14. package/bin/local-preview/listener/update.js.map +1 -0
  15. package/bin/local-preview/listener/utils/createPage.js +167 -0
  16. package/bin/local-preview/listener/utils/createPage.js.map +1 -0
  17. package/bin/local-preview/listener/utils/fileIsMdxOrMd.js +12 -0
  18. package/bin/local-preview/listener/utils/fileIsMdxOrMd.js.map +1 -0
  19. package/bin/local-preview/listener/utils/getOpenApiContext.js +57 -0
  20. package/bin/local-preview/listener/utils/getOpenApiContext.js.map +1 -0
  21. package/bin/local-preview/listener/utils/mintConfigFile.js +22 -0
  22. package/bin/local-preview/listener/utils/mintConfigFile.js.map +1 -0
  23. package/bin/local-preview/listener/utils/toTitleCase.js +36 -0
  24. package/bin/local-preview/listener/utils/toTitleCase.js.map +1 -0
  25. package/bin/local-preview/listener/utils/types.js +2 -0
  26. package/bin/local-preview/listener/utils/types.js.map +1 -0
  27. package/bin/local-preview/listener/utils.js +62 -0
  28. package/bin/local-preview/listener/utils.js.map +1 -0
  29. package/bin/scraping/detectFramework.js +1 -1
  30. package/bin/scraping/detectFramework.js.map +1 -1
  31. package/bin/scraping/scrapePageCommands.js +2 -2
  32. package/bin/scraping/scrapePageCommands.js.map +1 -1
  33. package/bin/scraping/site-scrapers/alternateGroupTitle.js +1 -1
  34. package/bin/scraping/site-scrapers/alternateGroupTitle.js.map +1 -1
  35. package/bin/scraping/site-scrapers/openNestedDocusaurusMenus.js +3 -3
  36. package/bin/scraping/site-scrapers/openNestedDocusaurusMenus.js.map +1 -1
  37. package/bin/scraping/site-scrapers/openNestedGitbookMenus.js +1 -2
  38. package/bin/scraping/site-scrapers/openNestedGitbookMenus.js.map +1 -1
  39. package/bin/util.js +40 -1
  40. package/bin/util.js.map +1 -1
  41. package/package.json +12 -5
  42. package/src/index.ts +0 -2
  43. package/src/local-preview/index.ts +14 -74
  44. package/src/local-preview/listener/categorizeFiles.ts +55 -0
  45. package/src/local-preview/listener/generate.ts +110 -0
  46. package/src/local-preview/listener/index.ts +169 -0
  47. package/src/local-preview/listener/update.ts +45 -0
  48. package/src/local-preview/listener/utils/createPage.ts +211 -0
  49. package/src/local-preview/listener/utils/fileIsMdxOrMd.ts +11 -0
  50. package/src/local-preview/{utils → listener/utils}/getOpenApiContext.ts +0 -0
  51. package/src/local-preview/listener/utils/mintConfigFile.ts +28 -0
  52. package/src/local-preview/listener/utils/toTitleCase.ts +40 -0
  53. package/src/local-preview/listener/utils/types.ts +1 -0
  54. package/src/local-preview/listener/utils.ts +69 -0
  55. package/src/scraping/scrapePageCommands.ts +2 -2
  56. package/src/util.ts +54 -1
  57. package/tsconfig.json +6 -5
  58. package/bin/local-preview/categorizeFiles.js +0 -56
  59. package/bin/local-preview/categorizeFiles.js.map +0 -1
  60. package/bin/local-preview/getOpenApiContext.js +0 -46
  61. package/bin/local-preview/getOpenApiContext.js.map +0 -1
  62. package/bin/local-preview/helper-commands/clearCommand.js +0 -27
  63. package/bin/local-preview/helper-commands/clearCommand.js.map +0 -1
  64. package/bin/local-preview/injectFavicons.js +0 -72
  65. package/bin/local-preview/injectFavicons.js.map +0 -1
  66. package/bin/local-preview/injectNav.js +0 -94
  67. package/bin/local-preview/injectNav.js.map +0 -1
  68. package/bin/local-preview/listener.js +0 -112
  69. package/bin/local-preview/listener.js.map +0 -1
  70. package/bin/local-preview/metadata.js +0 -121
  71. package/bin/local-preview/metadata.js.map +0 -1
  72. package/bin/local-preview/mintConfigFile.js +0 -43
  73. package/bin/local-preview/mintConfigFile.js.map +0 -1
  74. package/bin/local-preview/openApiCheck.js +0 -16
  75. package/bin/local-preview/openApiCheck.js.map +0 -1
  76. package/bin/local-preview/slugToTitle.js +0 -8
  77. package/bin/local-preview/slugToTitle.js.map +0 -1
  78. package/bin/mint/client/.babel-plugin-macrosrc.json +0 -5
  79. package/bin/mint/client/.babelrc +0 -4
  80. package/bin/mint/client/.editorconfig +0 -12
  81. package/bin/mint/client/.eslintrc.json +0 -7
  82. package/bin/mint/client/.prettierignore +0 -4
  83. package/bin/mint/client/.prettierrc +0 -14
  84. package/bin/mint/client/.vscode/launch.json +0 -28
  85. package/bin/mint/client/README.md +0 -44
  86. package/bin/mint/client/jest.config.ts +0 -195
  87. package/bin/mint/client/next-env.d.ts +0 -4
  88. package/bin/mint/client/next.config.js +0 -152
  89. package/bin/mint/client/package.json +0 -139
  90. package/bin/mint/client/postcss.config.cjs +0 -9
  91. package/bin/mint/client/prebuild/faviconConfig.js +0 -35
  92. package/bin/mint/client/prebuild/getOpenApiContext.js +0 -53
  93. package/bin/mint/client/prebuild/index.js +0 -117
  94. package/bin/mint/client/prebuild/injectNav.js +0 -115
  95. package/bin/mint/client/prebuild/slugToTitle.js +0 -7
  96. package/bin/mint/client/rehype/withApiComponents.js +0 -60
  97. package/bin/mint/client/rehype/withCodeBlocks.js +0 -54
  98. package/bin/mint/client/rehype/withLayouts.js +0 -113
  99. package/bin/mint/client/rehype/withLinkRoles.js +0 -13
  100. package/bin/mint/client/rehype/withRawComponents.js +0 -13
  101. package/bin/mint/client/rehype/withStaticProps.js +0 -25
  102. package/bin/mint/client/rehype/withSyntaxHighlighting.js +0 -60
  103. package/bin/mint/client/remark/utils.js +0 -369
  104. package/bin/mint/client/remark/withFrames.js +0 -55
  105. package/bin/mint/client/remark/withImportsInjected.js +0 -36
  106. package/bin/mint/client/remark/withNextLinks.js +0 -37
  107. package/bin/mint/client/remark/withTableOfContents.js +0 -71
  108. package/bin/mint/client/scripts/local.js +0 -177
  109. package/bin/mint/client/sentry.client.config.js +0 -15
  110. package/bin/mint/client/sentry.properties +0 -4
  111. package/bin/mint/client/sentry.server.config.js +0 -15
  112. package/bin/mint/client/src/analytics/AbstractAnalyticsImplementation.ts +0 -50
  113. package/bin/mint/client/src/analytics/AnalyticsContext.ts +0 -5
  114. package/bin/mint/client/src/analytics/AnalyticsMediator.ts +0 -101
  115. package/bin/mint/client/src/analytics/FakeAnalyticsMediator.ts +0 -9
  116. package/bin/mint/client/src/analytics/GA4Script.tsx +0 -33
  117. package/bin/mint/client/src/analytics/implementations/amplitude.ts +0 -26
  118. package/bin/mint/client/src/analytics/implementations/fathom.ts +0 -38
  119. package/bin/mint/client/src/analytics/implementations/ga4.ts +0 -33
  120. package/bin/mint/client/src/analytics/implementations/hotjar.ts +0 -53
  121. package/bin/mint/client/src/analytics/implementations/mixpanel-browser.d.ts +0 -1
  122. package/bin/mint/client/src/analytics/implementations/mixpanel.ts +0 -52
  123. package/bin/mint/client/src/analytics/implementations/posthog.ts +0 -37
  124. package/bin/mint/client/src/components/Accordion/Accordion.tsx +0 -43
  125. package/bin/mint/client/src/components/Accordion/index.ts +0 -4
  126. package/bin/mint/client/src/components/ApiExample.tsx +0 -9
  127. package/bin/mint/client/src/components/Card.tsx +0 -51
  128. package/bin/mint/client/src/components/CodeGroup.tsx +0 -132
  129. package/bin/mint/client/src/components/Editor.tsx +0 -12
  130. package/bin/mint/client/src/components/Expandable.tsx +0 -40
  131. package/bin/mint/client/src/components/Heading.tsx +0 -84
  132. package/bin/mint/client/src/components/Param.tsx +0 -56
  133. package/bin/mint/client/src/components/Request.tsx +0 -19
  134. package/bin/mint/client/src/components/ResponseField.tsx +0 -33
  135. package/bin/mint/client/src/components/TabBar.tsx +0 -61
  136. package/bin/mint/client/src/config.ts +0 -115
  137. package/bin/mint/client/src/css/bar-of-progress.css +0 -10
  138. package/bin/mint/client/src/css/base.css +0 -29
  139. package/bin/mint/client/src/css/font-awesome.css +0 -7
  140. package/bin/mint/client/src/css/fonts.css +0 -44
  141. package/bin/mint/client/src/css/main.css +0 -11
  142. package/bin/mint/client/src/css/prism.css +0 -270
  143. package/bin/mint/client/src/css/utilities.css +0 -43
  144. package/bin/mint/client/src/enums/components.ts +0 -8
  145. package/bin/mint/client/src/fonts/FiraCode-VF.woff +0 -0
  146. package/bin/mint/client/src/fonts/FiraCode-VF.woff2 +0 -0
  147. package/bin/mint/client/src/fonts/IBMPlexMono-Regular.ttf +0 -0
  148. package/bin/mint/client/src/fonts/IBMPlexMono-SemiBold.ttf +0 -0
  149. package/bin/mint/client/src/fonts/Inter-italic-latin.var.woff2 +0 -0
  150. package/bin/mint/client/src/fonts/Inter-roman-latin.var.woff2 +0 -0
  151. package/bin/mint/client/src/fonts/Pally-Variable.ttf +0 -0
  152. package/bin/mint/client/src/fonts/SourceSansPro-Regular.otf +0 -0
  153. package/bin/mint/client/src/fonts/SourceSerifPro-Regular.ttf +0 -0
  154. package/bin/mint/client/src/fonts/Synonym-Variable.ttf +0 -0
  155. package/bin/mint/client/src/fonts/Ubuntu-Mono-bold.woff2 +0 -0
  156. package/bin/mint/client/src/fonts/generated/IBMPlexMono-Regular-subset.woff2 +0 -0
  157. package/bin/mint/client/src/fonts/generated/IBMPlexMono-Regular-subset.zopfli.woff +0 -0
  158. package/bin/mint/client/src/fonts/generated/IBMPlexMono-Regular.module.css +0 -11
  159. package/bin/mint/client/src/fonts/generated/IBMPlexMono-SemiBold-subset.woff2 +0 -0
  160. package/bin/mint/client/src/fonts/generated/IBMPlexMono-SemiBold-subset.zopfli.woff +0 -0
  161. package/bin/mint/client/src/fonts/generated/IBMPlexMono-SemiBold.module.css +0 -11
  162. package/bin/mint/client/src/fonts/generated/Pally-Variable-subset.woff2 +0 -0
  163. package/bin/mint/client/src/fonts/generated/Pally-Variable-subset.zopfli.woff +0 -0
  164. package/bin/mint/client/src/fonts/generated/Pally-Variable.module.css +0 -11
  165. package/bin/mint/client/src/fonts/generated/SourceSerifPro-Regular-subset.woff2 +0 -0
  166. package/bin/mint/client/src/fonts/generated/SourceSerifPro-Regular-subset.zopfli.woff +0 -0
  167. package/bin/mint/client/src/fonts/generated/SourceSerifPro-Regular.module.css +0 -11
  168. package/bin/mint/client/src/fonts/generated/Synonym-Variable-subset.woff2 +0 -0
  169. package/bin/mint/client/src/fonts/generated/Synonym-Variable-subset.zopfli.woff +0 -0
  170. package/bin/mint/client/src/fonts/generated/Synonym-Variable.module.css +0 -11
  171. package/bin/mint/client/src/fonts/generated/TenorSans-Regular-subset.woff2 +0 -0
  172. package/bin/mint/client/src/fonts/generated/TenorSans-Regular-subset.zopfli.woff +0 -0
  173. package/bin/mint/client/src/fonts/generated/TenorSans-Regular.module.css +0 -11
  174. package/bin/mint/client/src/hooks/useActionKey.ts +0 -20
  175. package/bin/mint/client/src/hooks/useIsomorphicLayoutEffect.ts +0 -3
  176. package/bin/mint/client/src/hooks/useMedia.ts +0 -27
  177. package/bin/mint/client/src/hooks/usePrevNext.ts +0 -34
  178. package/bin/mint/client/src/hooks/useTop.ts +0 -15
  179. package/bin/mint/client/src/icons/CopyToClipboard.tsx +0 -33
  180. package/bin/mint/client/src/index.d.ts +0 -1
  181. package/bin/mint/client/src/layouts/ApiSupplemental.tsx +0 -173
  182. package/bin/mint/client/src/layouts/ContentsLayout.tsx +0 -256
  183. package/bin/mint/client/src/layouts/DocumentationLayout.tsx +0 -44
  184. package/bin/mint/client/src/layouts/OpenApiContent.tsx +0 -301
  185. package/bin/mint/client/src/layouts/SidebarLayout.tsx +0 -412
  186. package/bin/mint/client/src/layouts/UserFeedback.tsx +0 -73
  187. package/bin/mint/client/src/layouts/getGroupsInDivision.ts +0 -25
  188. package/bin/mint/client/src/layouts/isPathInGroupPages.ts +0 -10
  189. package/bin/mint/client/src/metadata.ts +0 -58
  190. package/bin/mint/client/src/nav.json +0 -219
  191. package/bin/mint/client/src/openapi.ts +0 -3
  192. package/bin/mint/client/src/pages/404.tsx +0 -73
  193. package/bin/mint/client/src/pages/_app.tsx +0 -138
  194. package/bin/mint/client/src/pages/_document.tsx +0 -57
  195. package/bin/mint/client/src/pages/api/issue.ts +0 -10
  196. package/bin/mint/client/src/pages/api/name.ts +0 -8
  197. package/bin/mint/client/src/pages/api/request.ts +0 -31
  198. package/bin/mint/client/src/pages/api/suggest.ts +0 -10
  199. package/bin/mint/client/src/pages/api/syntax-highlighted-json.ts +0 -13
  200. package/bin/mint/client/src/pages/api/utils.ts +0 -6
  201. package/bin/mint/client/src/pages/index.tsx +0 -31
  202. package/bin/mint/client/src/ui/Api.tsx +0 -359
  203. package/bin/mint/client/src/ui/Footer.tsx +0 -124
  204. package/bin/mint/client/src/ui/Header.tsx +0 -370
  205. package/bin/mint/client/src/ui/Logo.tsx +0 -55
  206. package/bin/mint/client/src/ui/PageHeader.tsx +0 -51
  207. package/bin/mint/client/src/ui/Search.tsx +0 -386
  208. package/bin/mint/client/src/ui/ThemeToggle.tsx +0 -285
  209. package/bin/mint/client/src/ui/Title.tsx +0 -22
  210. package/bin/mint/client/src/ui/TopLevelLink.tsx +0 -122
  211. package/bin/mint/client/src/utils/api.ts +0 -252
  212. package/bin/mint/client/src/utils/brands.ts +0 -217
  213. package/bin/mint/client/src/utils/castArray.ts +0 -3
  214. package/bin/mint/client/src/utils/childrenArray.ts +0 -3
  215. package/bin/mint/client/src/utils/fit.ts +0 -27
  216. package/bin/mint/client/src/utils/fontAwesome.ts +0 -577
  217. package/bin/mint/client/src/utils/getAnalyticsConfig.ts +0 -14
  218. package/bin/mint/client/src/utils/getLogoHref.ts +0 -9
  219. package/bin/mint/client/src/utils/getOpenApiContext.ts +0 -26
  220. package/bin/mint/client/src/utils/importAll.ts +0 -6
  221. package/bin/mint/client/src/utils/isObject.ts +0 -3
  222. package/bin/mint/client/src/utils/kebabToTitleCase.ts +0 -3
  223. package/bin/mint/client/src/utils/loadImage.ts +0 -8
  224. package/bin/mint/client/src/utils/slugToTitle.ts +0 -7
  225. package/bin/mint/client/src/utils/wait.ts +0 -5
  226. package/bin/mint/client/tailwind.config.cjs +0 -323
  227. package/bin/mint/client/test/test.test.ts +0 -5
  228. package/bin/mint/client/tsconfig.json +0 -36
  229. package/bin/mint/client/yarn.lock +0 -9702
  230. package/bin/scraping/site-scrapers/getLinksRecursively.js +0 -38
  231. package/bin/scraping/site-scrapers/getLinksRecursively.js.map +0 -1
  232. package/src/init-command/index.ts +0 -59
  233. package/src/init-command/templates.ts +0 -52
  234. package/src/local-preview/utils/categorizeFiles.ts +0 -82
  235. package/src/local-preview/utils/injectFavicons.ts +0 -76
  236. package/src/local-preview/utils/listener.ts +0 -124
  237. package/src/local-preview/utils/metadata.ts +0 -151
  238. package/src/local-preview/utils/mintConfigFile.ts +0 -48
  239. package/src/local-preview/utils/openApiCheck.ts +0 -18
  240. package/src/local-preview/utils/slugToTitle.ts +0 -7
@@ -1,195 +0,0 @@
1
- /*
2
- * For a detailed explanation regarding each configuration property and type check, visit:
3
- * https://jestjs.io/docs/configuration
4
- */
5
-
6
- export default {
7
- // All imported modules in your tests should be mocked automatically
8
- // automock: false,
9
-
10
- // Stop running tests after `n` failures
11
- // bail: 0,
12
-
13
- // The directory where Jest should store its cached dependency information
14
- // cacheDirectory: "/private/var/folders/k_/_vv6d9192pq13p60l40ts3440000gn/T/jest_dx",
15
-
16
- // Automatically clear mock calls, instances, contexts and results before every test
17
- // clearMocks: false,
18
-
19
- // Indicates whether the coverage information should be collected while executing the test
20
- // collectCoverage: false,
21
-
22
- // An array of glob patterns indicating a set of files for which coverage information should be collected
23
- // collectCoverageFrom: undefined,
24
-
25
- // The directory where Jest should output its coverage files
26
- // coverageDirectory: undefined,
27
-
28
- // An array of regexp pattern strings used to skip coverage collection
29
- // coveragePathIgnorePatterns: [
30
- // "/node_modules/"
31
- // ],
32
-
33
- // Indicates which provider should be used to instrument code for coverage
34
- coverageProvider: "v8",
35
-
36
- // A list of reporter names that Jest uses when writing coverage reports
37
- // coverageReporters: [
38
- // "json",
39
- // "text",
40
- // "lcov",
41
- // "clover"
42
- // ],
43
-
44
- // An object that configures minimum threshold enforcement for coverage results
45
- // coverageThreshold: undefined,
46
-
47
- // A path to a custom dependency extractor
48
- // dependencyExtractor: undefined,
49
-
50
- // Make calling deprecated APIs throw helpful error messages
51
- // errorOnDeprecated: false,
52
-
53
- // The default configuration for fake timers
54
- // fakeTimers: {
55
- // "enableGlobally": false
56
- // },
57
-
58
- // Force coverage collection from ignored files using an array of glob patterns
59
- // forceCoverageMatch: [],
60
-
61
- // A path to a module which exports an async function that is triggered once before all test suites
62
- // globalSetup: undefined,
63
-
64
- // A path to a module which exports an async function that is triggered once after all test suites
65
- // globalTeardown: undefined,
66
-
67
- // A set of global variables that need to be available in all test environments
68
- // globals: {},
69
-
70
- // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
71
- // maxWorkers: "50%",
72
-
73
- // An array of directory names to be searched recursively up from the requiring module's location
74
- // moduleDirectories: [
75
- // "node_modules"
76
- // ],
77
-
78
- // An array of file extensions your modules use
79
- // moduleFileExtensions: [
80
- // "js",
81
- // "mjs",
82
- // "cjs",
83
- // "jsx",
84
- // "ts",
85
- // "tsx",
86
- // "json",
87
- // "node"
88
- // ],
89
-
90
- // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
91
- // moduleNameMapper: {},
92
-
93
- // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
94
- // modulePathIgnorePatterns: [],
95
-
96
- // Activates notifications for test results
97
- // notify: false,
98
-
99
- // An enum that specifies notification mode. Requires { notify: true }
100
- // notifyMode: "failure-change",
101
-
102
- // A preset that is used as a base for Jest's configuration
103
- // preset: undefined,
104
-
105
- // Run tests from one or more projects
106
- // projects: undefined,
107
-
108
- // Use this configuration option to add custom reporters to Jest
109
- // reporters: undefined,
110
-
111
- // Automatically reset mock state before every test
112
- // resetMocks: false,
113
-
114
- // Reset the module registry before running each individual test
115
- // resetModules: false,
116
-
117
- // A path to a custom resolver
118
- // resolver: undefined,
119
-
120
- // Automatically restore mock state and implementation before every test
121
- // restoreMocks: false,
122
-
123
- // The root directory that Jest should scan for tests and modules within
124
- // rootDir: undefined,
125
-
126
- // A list of paths to directories that Jest should use to search for files in
127
- // roots: [
128
- // "<rootDir>"
129
- // ],
130
-
131
- // Allows you to use a custom runner instead of Jest's default test runner
132
- // runner: "jest-runner",
133
-
134
- // The paths to modules that run some code to configure or set up the testing environment before each test
135
- // setupFiles: [],
136
-
137
- // A list of paths to modules that run some code to configure or set up the testing framework before each test
138
- // setupFilesAfterEnv: [],
139
-
140
- // The number of seconds after which a test is considered as slow and reported as such in the results.
141
- // slowTestThreshold: 5,
142
-
143
- // A list of paths to snapshot serializer modules Jest should use for snapshot testing
144
- // snapshotSerializers: [],
145
-
146
- // The test environment that will be used for testing
147
- // testEnvironment: "jest-environment-node",
148
-
149
- // Options that will be passed to the testEnvironment
150
- // testEnvironmentOptions: {},
151
-
152
- // Adds a location field to test results
153
- // testLocationInResults: false,
154
-
155
- // The glob patterns Jest uses to detect test files
156
- // testMatch: [
157
- // "**/__tests__/**/*.[jt]s?(x)",
158
- // "**/?(*.)+(spec|test).[tj]s?(x)"
159
- // ],
160
-
161
- // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
162
- // testPathIgnorePatterns: [
163
- // "/node_modules/"
164
- // ],
165
-
166
- // The regexp pattern or array of patterns that Jest uses to detect test files
167
- // testRegex: [],
168
-
169
- // This option allows the use of a custom results processor
170
- // testResultsProcessor: undefined,
171
-
172
- // This option allows use of a custom test runner
173
- // testRunner: "jest-circus/runner",
174
-
175
- // A map from regular expressions to paths to transformers
176
- // transform: undefined,
177
-
178
- // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
179
- // transformIgnorePatterns: [
180
- // "/node_modules/",
181
- // "\\.pnp\\.[^\\/]+$"
182
- // ],
183
-
184
- // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
185
- // unmockedModulePathPatterns: undefined,
186
-
187
- // Indicates whether each individual test should be reported during the run
188
- // verbose: undefined,
189
-
190
- // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
191
- // watchPathIgnorePatterns: [],
192
-
193
- // Whether to use watchman for file crawling
194
- // watchman: true,
195
- };
@@ -1,4 +0,0 @@
1
- /// <reference types="next" />
2
-
3
- // NOTE: This file should not be edited
4
- // see https://nextjs.org/docs/basic-features/typescript for more information.
@@ -1,152 +0,0 @@
1
- import { withSentryConfig } from '@sentry/nextjs';
2
- import withLinkRoles from './rehype/withLinkRoles.js';
3
- import { createLoader } from 'simple-functional-loader';
4
- import frontMatter from 'front-matter';
5
- import withSmartypants from 'remark-smartypants';
6
- import withTableOfContents from './remark/withTableOfContents.js';
7
- import withCodeBlocks from './rehype/withCodeBlocks.js';
8
- import withNextLinks from './remark/withNextLinks.js';
9
- import withFrames from './remark/withFrames.js';
10
- import withImportsInjected from './remark/withImportsInjected.js';
11
- import BundleAnalyzer from '@next/bundle-analyzer';
12
- import remarkGfm from 'remark-gfm';
13
- import withStaticProps from './rehype/withStaticProps.js';
14
- import withApiComponents from './rehype/withApiComponents.js';
15
- import withRawComponents from './rehype/withRawComponents.js';
16
- import mintConfig from './src/mint.json' assert { type: 'json' };
17
- import withSyntaxHighlighting from './rehype/withSyntaxHighlighting.js';
18
- import withLayouts from './rehype/withLayouts.js';
19
- import { potentiallyRemoveEndMatter } from './prebuild/injectNav.js';
20
-
21
- const withBundleAnalyzer = BundleAnalyzer({
22
- enabled: process.env.ANALYZE === 'true',
23
- });
24
-
25
- const sentryWebpackPluginOptions = {
26
- // Suppresses all logs
27
- silent: true,
28
-
29
- // Disable sentry builds when we don't have a sentry auth token.
30
- // Sites have to be manually added to our Sentry tracking so by default
31
- // new customers' sites will not have an auth token set.
32
- dryRun: process.env.VERCEL_ENV !== 'production' || !process.env.SENTRY_AUTH_TOKEN,
33
- };
34
-
35
- export default withSentryConfig(
36
- withBundleAnalyzer({
37
- swcMinify: true,
38
- pageExtensions: ['js', 'jsx', 'mdx', 'ts', 'tsx', 'md'],
39
- images: {
40
- disableStaticImages: true,
41
- },
42
- basePath: mintConfig?.basePath,
43
- webpack(config, options) {
44
- config.module.rules.push({
45
- test: /\.(png|jpe?g|gif|webp|avif|mp4)$/i,
46
- issuer: /\.(jsx?|tsx?|mdx?)$/,
47
- use: [
48
- {
49
- loader: 'file-loader',
50
- options: {
51
- publicPath: '/_next',
52
- name: 'static/media/[name].[hash].[ext]',
53
- },
54
- },
55
- ],
56
- });
57
-
58
- config.module.rules.push({
59
- test: /\.svg$/,
60
- use: [
61
- {
62
- loader: '@svgr/webpack',
63
- options: { svgoConfig: { plugins: { removeViewBox: false } } },
64
- },
65
- {
66
- loader: 'file-loader',
67
- options: {
68
- publicPath: '/_next',
69
- name: 'static/media/[name].[hash].[ext]',
70
- },
71
- },
72
- ],
73
- });
74
-
75
- config.module.rules.push({
76
- test: { and: [/\.mdx$/, /snippets/] },
77
- use: [
78
- options.defaultLoaders.babel,
79
- {
80
- loader: '@mdx-js/loader',
81
- options: {
82
- providerImportSource: '@mdx-js/react',
83
- remarkPlugins: [
84
- remarkGfm,
85
- withImportsInjected,
86
- withFrames,
87
- withNextLinks,
88
- withSmartypants,
89
- ],
90
- rehypePlugins: [
91
- [
92
- withSyntaxHighlighting,
93
- {
94
- ignoreMissing: true,
95
- },
96
- ],
97
- withCodeBlocks,
98
- withLinkRoles,
99
- ],
100
- },
101
- },
102
- ],
103
- });
104
-
105
- config.module.rules.push({
106
- test: { and: [/\.mdx?$/], not: [/snippets/] },
107
- use: [
108
- options.defaultLoaders.babel,
109
- {
110
- loader: '@mdx-js/loader',
111
- options: {
112
- providerImportSource: '@mdx-js/react',
113
- remarkPlugins: [
114
- remarkGfm,
115
- withImportsInjected,
116
- withFrames,
117
- withTableOfContents,
118
- withNextLinks,
119
- withSmartypants,
120
- ],
121
- rehypePlugins: [
122
- [
123
- withSyntaxHighlighting,
124
- {
125
- ignoreMissing: true,
126
- },
127
- ],
128
- withCodeBlocks,
129
- withLinkRoles,
130
- withApiComponents,
131
- withRawComponents,
132
- [
133
- withStaticProps,
134
- `{
135
- isMdx: true
136
- }`,
137
- ],
138
- withLayouts
139
- ],
140
- },
141
- },
142
- createLoader(function (source) {
143
- const { body } = frontMatter(source);
144
- return potentiallyRemoveEndMatter(body);
145
- }),
146
- ],
147
- });
148
- return config;
149
- },
150
- }),
151
- sentryWebpackPluginOptions
152
- );
@@ -1,139 +0,0 @@
1
- {
2
- "private": true,
3
- "type": "module",
4
- "scripts": {
5
- "prebuild": "node prebuild index.ts",
6
- "local": "node scripts/local",
7
- "dev": "next dev",
8
- "build": "next build",
9
- "start": "next start",
10
- "export": "next build && next export",
11
- "format": "prettier '{src,remark,scripts}/**/*.{css,js,mdx}' --write",
12
- "test": "jest"
13
- },
14
- "browserslist": [
15
- "> 1%"
16
- ],
17
- "dependencies": {
18
- "@amplitude/analytics-browser": "^1.2.0",
19
- "@babel/plugin-transform-react-jsx": "^7.14.9",
20
- "@babel/preset-env": "^7.1.6",
21
- "@badrap/bar-of-progress": "^0.1.1",
22
- "@fortawesome/fontawesome-svg-core": "^6.1.2",
23
- "@fortawesome/free-brands-svg-icons": "^6.1.2",
24
- "@fortawesome/pro-duotone-svg-icons": "^6.1.2",
25
- "@fortawesome/pro-light-svg-icons": "^6.1.2",
26
- "@fortawesome/pro-regular-svg-icons": "^6.1.2",
27
- "@fortawesome/pro-solid-svg-icons": "^6.1.2",
28
- "@fortawesome/pro-thin-svg-icons": "^6.1.2",
29
- "@fortawesome/react-fontawesome": "^0.2.0",
30
- "@headlessui/react": "^1.6.6",
31
- "@heroicons/react": "^1.0.6",
32
- "@juggle/resize-observer": "^3.2.0",
33
- "@mdx-js/loader": "^2.1.3",
34
- "@mdx-js/react": "^2.1.3",
35
- "@mintlify/components": "^0.1.23",
36
- "@next/bundle-analyzer": "^12.3.1",
37
- "@next/mdx": "^12.3.0",
38
- "@sentry/nextjs": "^7.9.0",
39
- "@sindresorhus/slugify": "^1.1.0",
40
- "@svgr/webpack": "^6.3.1",
41
- "@tailwindcss/aspect-ratio": "^0.4.2",
42
- "@tailwindcss/line-clamp": "^0.3.1",
43
- "@tailwindcss/typography": "^0.5.0",
44
- "acorn": "8.8.0",
45
- "algoliasearch": "^4.14.0",
46
- "autoprefixer": "^10.4.0",
47
- "axios": "^0.27.2",
48
- "babel-plugin-macros": "^3.1.0",
49
- "brotli-size": "^4.0.0",
50
- "clean-css": "^4.2.3",
51
- "clsx": "^1.1.1",
52
- "deasync": "^0.1.20",
53
- "debounce": "^1.2.0",
54
- "dlv": "^1.1.3",
55
- "exec-sh": "^0.3.4",
56
- "fathom-client": "^3.5.0",
57
- "feed": "^4.2.2",
58
- "file-loader": "^6.0.0",
59
- "focus-visible": "^5.1.0",
60
- "front-matter": "^4.0.2",
61
- "fs-extra": "^10.1.0",
62
- "github-url-to-object": "^4.0.6",
63
- "glob": "^7.1.6",
64
- "gsap": "^3.6.0",
65
- "gzip-size": "^5.1.1",
66
- "hast-util-from-html": "^1.0.0",
67
- "hast-util-to-html": "^8.0.3",
68
- "html-react-parser": "^3.0.4",
69
- "intersection-observer": "^0.11.0",
70
- "is-absolute-url": "^4.0.1",
71
- "just-group-by": "^1.0.0",
72
- "mdast-util-from-markdown": "^1.2.0",
73
- "mdast-util-mdx-jsx": "^2.1.0",
74
- "mdast-util-mdxjs-esm": "^1.3.0",
75
- "micromark-extension-mdx-jsx": "^1.0.3",
76
- "mini-svg-data-uri": "^1.4.3",
77
- "minimatch": "^3.0.4",
78
- "mixpanel-browser": "^2.45.0",
79
- "next": "^12.2.5",
80
- "openapi-types": "^12.0.0",
81
- "postcss": "^8.4.5",
82
- "postcss-focus-visible": "^5.0.0",
83
- "postcss-import": "^14.0.1",
84
- "posthog-js": "^1.29.3",
85
- "prismjs": "^1.27.0",
86
- "react": "^18.2.0",
87
- "react-dom": "^18.2.0",
88
- "react-hotjar": "^5.1.0",
89
- "react-hotkeys-hook": "^3.4.7",
90
- "react-intersection-observer": "^8.29.0",
91
- "react-use-rect": "^2.0.4",
92
- "redent": "^3.0.0",
93
- "remark-gfm": "^3.0.1",
94
- "remark-smartypants": "^2.0.0",
95
- "seedrandom": "^3.0.5",
96
- "simple-functional-loader": "^1.2.1",
97
- "stringify-object": "^3.3.0",
98
- "tailwindcss": "^3.1.6",
99
- "tinytime": "^0.2.6",
100
- "webpack": "^5.74.0",
101
- "zustand": "^4.0.0-rc.0"
102
- },
103
- "devDependencies": {
104
- "@apidevtools/swagger-parser": "^10.1.0",
105
- "@babel/core": "^7.0.0-0",
106
- "@babel/plugin-syntax-flow": "^7.14.5",
107
- "@next/eslint-plugin-next": "^12.3.0",
108
- "@trivago/prettier-plugin-sort-imports": "^3.3.0",
109
- "@types/github-url-to-object": "^4.0.1",
110
- "@types/glob": "^7.2.0",
111
- "@types/jest": "^29.1.2",
112
- "@types/mdx-js__react": "^1.5.5",
113
- "@types/node": "^18.0.5",
114
- "@types/prismjs": "^1.26.0",
115
- "@types/react": "18.0.1",
116
- "@types/react-dom": "^18.0.6",
117
- "@types/seedrandom": "^3.0.2",
118
- "@typescript-eslint/eslint-plugin": "^5.35.1",
119
- "@typescript-eslint/parser": "^5.35.1",
120
- "babel-eslint": "10.x",
121
- "eslint": "^8.22.0",
122
- "eslint-config-react-app": "^7.0.1",
123
- "eslint-plugin-flowtype": "4.x",
124
- "eslint-plugin-import": "2.x",
125
- "eslint-plugin-jsx-a11y": "6.x",
126
- "eslint-plugin-react": "7.x",
127
- "eslint-plugin-react-hooks": "^4.6.0",
128
- "favicons": "7.0.0-beta.4",
129
- "gray-matter": "^4.0.3",
130
- "hast-util-to-string": "^2.0.0",
131
- "jest": "^29.1.2",
132
- "prettier": "^2.5.0",
133
- "refractor": "^4.8.0",
134
- "ts-node": "^10.9.1",
135
- "typescript": "^4.7.4",
136
- "unist-util-filter": "^4.0.0",
137
- "unist-util-visit": "^2.0.3"
138
- }
139
- }
@@ -1,9 +0,0 @@
1
- module.exports = {
2
- plugins: [
3
- 'postcss-import',
4
- 'tailwindcss/nesting',
5
- 'tailwindcss',
6
- 'postcss-focus-visible',
7
- 'autoprefixer',
8
- ],
9
- }
@@ -1,35 +0,0 @@
1
- const faviconConfig = (name) => ({
2
- path: '/favicons', // Path for overriding default icons path. `string`
3
- appName: name, // Your application's name. `string`
4
- appShortName: name, // Your application's short_name. `string`. Optional. If not set, appName will be used
5
- appDescription: null, // Your application's description. `string`
6
- developerName: null, // Your (or your developer's) name. `string`
7
- developerURL: null, // Your (or your developer's) URL. `string`
8
- dir: 'auto', // Primary text direction for name, short_name, and description
9
- lang: 'en-US', // Primary language for name and short_name
10
- background: '#fff', // Background colour for flattened icons. `string`
11
- theme_color: '#fff', // Theme color user for example in Android's task switcher. `string`
12
- appleStatusBarStyle: 'black-translucent', // Style for Apple status bar: "black-translucent", "default", "black". `string`
13
- display: 'standalone', // Preferred display mode: "fullscreen", "standalone", "minimal-ui" or "browser". `string`
14
- orientation: 'any', // Default orientation: "any", "natural", "portrait" or "landscape". `string`
15
- scope: '/', // set of URLs that the browser considers within your app
16
- start_url: '/?homescreen=1', // Start URL when launching the application from a device. `string`
17
- preferRelatedApplications: false, // Should the browser prompt the user to install the native companion app. `boolean`
18
- relatedApplications: undefined, // Information about the native companion apps. This will only be used if `preferRelatedApplications` is `true`. `Array<{ id: string, url: string, platform: string }>`
19
- version: '1.0', // Your application's version string. `string`
20
- logging: false, // Print logs to console? `boolean`
21
- pixel_art: false, // Keeps pixels "sharp" when scaling up, for pixel art. Only supported in offline mode.
22
- loadManifestWithCredentials: true, // Browsers don't send cookies when fetching a manifest, enable this to fix that. `boolean`
23
- manifestMaskable: false, // Maskable source image(s) for manifest.json. "true" to use default source. More information at https://web.dev/maskable-icon/. `boolean`, `string`, `buffer` or array of `string`
24
- icons: {
25
- android: ['android-chrome-192x192.png', 'android-chrome-256x256.png'],
26
- appleIcon: ['apple-touch-icon.png'],
27
- appleStartup: false,
28
- favicons: true,
29
- windows: ['mstile-150x150.png'],
30
- yandex: false,
31
- firefox: false,
32
- },
33
- });
34
-
35
- export default faviconConfig;
@@ -1,53 +0,0 @@
1
- export const extractMethodAndEndpoint = (api) => {
2
- const methodRegex = /^get|post|put|delete|patch/i;
3
- const trimmed = api.trim();
4
- const foundMethod = trimmed.match(methodRegex);
5
-
6
- const endIndexOfMethod = foundMethod ? api.indexOf(foundMethod[0]) + foundMethod[0].length : 0;
7
-
8
- return {
9
- method: foundMethod ? foundMethod[0].toUpperCase() : undefined,
10
- endpoint: api.substring(endIndexOfMethod).trim(),
11
- };
12
- };
13
-
14
- export const getOpenApiOperationMethodAndEndpoint = (openApiObj, openApiMetaField) => {
15
- const { endpoint, method } = extractMethodAndEndpoint(openApiMetaField);
16
-
17
- const path = openApiObj?.paths && openApiObj.paths[endpoint];
18
-
19
- if (path == null) {
20
- return {};
21
- }
22
-
23
- let operation;
24
- if (method) {
25
- operation = path[method.toLowerCase()];
26
- } else {
27
- const firstOperationKey = Object.keys(path)[0];
28
- operation = path[firstOperationKey];
29
- }
30
-
31
- return {
32
- operation,
33
- method,
34
- endpoint,
35
- };
36
- };
37
-
38
- export const getOpenApiTitleAndDescription = (openApiObj, openApiMetaField) => {
39
- if (openApiObj == null || !openApiMetaField || openApiMetaField == null) {
40
- return {};
41
- }
42
-
43
- const { operation } = getOpenApiOperationMethodAndEndpoint(openApiObj, openApiMetaField);
44
-
45
- if (operation == null) {
46
- return {};
47
- }
48
-
49
- return {
50
- title: operation.summary,
51
- description: operation.description,
52
- };
53
- };