@thallylabs/migrate 0.2.8 → 0.2.10
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.
- package/dist/index.d.ts +51 -2
- package/dist/index.js +1162 -126
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -41,13 +41,24 @@ interface MigrationNavbarConfig {
|
|
|
41
41
|
href: string;
|
|
42
42
|
type?: 'github';
|
|
43
43
|
}>;
|
|
44
|
+
/** Explicit null suppresses the starter's sample call to action. */
|
|
44
45
|
primary?: {
|
|
45
46
|
label: string;
|
|
46
47
|
href: string;
|
|
47
|
-
};
|
|
48
|
+
} | null;
|
|
49
|
+
/** Local public assets used until an owner uploads a brand replacement. */
|
|
50
|
+
/** Explicit null requests a text-only brand when the source has no logo. */
|
|
51
|
+
logo?: {
|
|
52
|
+
light: string;
|
|
53
|
+
dark?: string;
|
|
54
|
+
showTitle?: boolean;
|
|
55
|
+
rightText?: string;
|
|
56
|
+
} | null;
|
|
48
57
|
}
|
|
49
58
|
interface MigrationFooterConfig {
|
|
50
59
|
socials?: Record<string, string>;
|
|
60
|
+
/** Literal footer attribution; `{year}` is resolved by the site at render time. */
|
|
61
|
+
copyright?: string;
|
|
51
62
|
links?: Array<{
|
|
52
63
|
heading: string;
|
|
53
64
|
items: Array<{
|
|
@@ -66,12 +77,25 @@ interface MigrationDocsConfig {
|
|
|
66
77
|
display?: 'tabs' | 'dropdown';
|
|
67
78
|
};
|
|
68
79
|
theme?: 'default' | 'maple' | 'sharp' | 'minimal';
|
|
80
|
+
appearance?: {
|
|
81
|
+
default?: 'system' | 'light' | 'dark';
|
|
82
|
+
showToggle?: boolean;
|
|
83
|
+
};
|
|
84
|
+
background?: {
|
|
85
|
+
image?: string;
|
|
86
|
+
imageDark?: string;
|
|
87
|
+
decoration?: 'none' | 'grid' | 'gradient';
|
|
88
|
+
};
|
|
69
89
|
/** Icon set for content `icon` names; Mintlify's `icons.library` carries through. */
|
|
70
90
|
icons?: {
|
|
71
91
|
library?: 'lucide' | 'fontawesome' | 'tabler';
|
|
72
92
|
};
|
|
73
93
|
banner?: MigrationBannerConfig;
|
|
74
94
|
navbar?: MigrationNavbarConfig;
|
|
95
|
+
favicon?: {
|
|
96
|
+
light: string;
|
|
97
|
+
dark?: string;
|
|
98
|
+
};
|
|
75
99
|
footer?: MigrationFooterConfig;
|
|
76
100
|
seo?: {
|
|
77
101
|
indexing?: 'navigable' | 'all';
|
|
@@ -111,6 +135,8 @@ interface MigrationDocsConfig {
|
|
|
111
135
|
code: string;
|
|
112
136
|
label: string;
|
|
113
137
|
}>;
|
|
138
|
+
/** Source-authored navigation labels and ordering for each translation. */
|
|
139
|
+
navigation?: Record<string, Array<MigrationNavigationTab>>;
|
|
114
140
|
};
|
|
115
141
|
}
|
|
116
142
|
interface MigrationPage {
|
|
@@ -122,6 +148,8 @@ interface MigrationPage {
|
|
|
122
148
|
title: string;
|
|
123
149
|
navTitle?: string;
|
|
124
150
|
description: string;
|
|
151
|
+
/** Keep SEO/search description without repeating it above Docusaurus body copy. */
|
|
152
|
+
descriptionPlacement?: 'body';
|
|
125
153
|
badge?: string;
|
|
126
154
|
keywords: Array<string>;
|
|
127
155
|
mode?: 'default' | 'wide' | 'custom' | 'center' | 'home';
|
|
@@ -148,6 +176,11 @@ interface MigrationBundle {
|
|
|
148
176
|
platform: MigrationPlatform;
|
|
149
177
|
pages: Array<MigrationPage>;
|
|
150
178
|
assets: Array<MigrationAsset>;
|
|
179
|
+
/** Repository-configured remote specs awaiting a bounded network fetch by the host. */
|
|
180
|
+
remoteApiSpecs?: Array<{
|
|
181
|
+
url: string;
|
|
182
|
+
tabLabel?: string;
|
|
183
|
+
}>;
|
|
151
184
|
/** Customer-owned component source and registry; paths are repository-relative. */
|
|
152
185
|
componentFiles?: Array<RenderedMigrationFile>;
|
|
153
186
|
docsConfig: MigrationDocsConfig;
|
|
@@ -312,6 +345,10 @@ interface FernPageDescriptor {
|
|
|
312
345
|
/** Path to the referenced page file, relative to the Fern root. */
|
|
313
346
|
sourcePath: string;
|
|
314
347
|
navigationId: string;
|
|
348
|
+
/** Fern's sidebar label can intentionally differ from the page title. */
|
|
349
|
+
navTitle?: string;
|
|
350
|
+
/** Keep routable pages excluded by Fern's `hidden` navigation flag. */
|
|
351
|
+
hidden?: boolean;
|
|
315
352
|
}
|
|
316
353
|
/** One `api:` navigation node, resolved to the name/tab Thally needs to bind its spec. */
|
|
317
354
|
interface FernApiSection {
|
|
@@ -337,6 +374,11 @@ interface FernNavigationResult {
|
|
|
337
374
|
warnings: Array<MigrationWarning>;
|
|
338
375
|
/** Every `api:` node found in navigation, in document order. A repo can declare several (e.g. a REST and a WebSocket API in separate tabs). */
|
|
339
376
|
apiSections: Array<FernApiSection>;
|
|
377
|
+
/** Fern changelog tabs render their entries as a feed at the bare route. */
|
|
378
|
+
changelogIndexes: Array<{
|
|
379
|
+
route: string;
|
|
380
|
+
entries: Array<string>;
|
|
381
|
+
}>;
|
|
340
382
|
}
|
|
341
383
|
/** Read `fern/docs.yml` without executing anything. */
|
|
342
384
|
declare function readFernConfig(fernRoot: string): {
|
|
@@ -404,4 +446,11 @@ declare const defaultMigrationFetcher: MigrationFetcher;
|
|
|
404
446
|
/** Crawl one public docs origin into a canonical, caller-independent bundle. */
|
|
405
447
|
declare function migrateUrl(options: UrlMigrationOptions): Promise<MigrationBundle>;
|
|
406
448
|
|
|
407
|
-
|
|
449
|
+
/**
|
|
450
|
+
* Attach safely downloaded specs to the exact authored API tabs. Source links
|
|
451
|
+
* to Mintlify's tag/summary routes receive redirects only when an operation
|
|
452
|
+
* can be identified uniquely; guessing would silently route to wrong APIs.
|
|
453
|
+
*/
|
|
454
|
+
declare function hydrateRemoteApiSpecs(bundle: MigrationBundle, fetcher?: MigrationFetcher): Promise<MigrationBundle>;
|
|
455
|
+
|
|
456
|
+
export { type GitHubRepositorySource, type MigrationAsset, type MigrationBundle, type MigrationDocsConfig, type MigrationFetchRequest, type MigrationFetchResponse, type MigrationFetcher, type MigrationNavigationGroup, type MigrationNavigationTab, type MigrationPage, type MigrationPlatform, type MigrationWarning, type RenderedMigrationFile, type RepositoryMigrationOptions, type UrlMigrationOptions, addMintlifyDirectoryRedirects, buildNavigationFromPages, cloneGitHubRepository, defaultMigrationFetcher, detectRepositoryDocsDir, detectRepositoryPlatform, gitmodulePaths, hydrateRemoteApiSpecs, mergeMigrationConfig, migrateRepository, migrateUrl, normalizeMdx, parseGitHubRepositoryUrl, parseMarkdownPage, projectFernNavigation, projectMintlifyNavigation, pruneMissingNavigationPages, readFernConfig, readMintlifyConfig, renderMigrationFiles, validateMigrationUrl };
|