@thallylabs/migrate 0.1.0 → 0.1.2
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 +14 -1
- package/dist/index.js +471 -31
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ interface MigrationNavigationTab {
|
|
|
15
15
|
groups?: Array<MigrationNavigationGroup>;
|
|
16
16
|
api?: {
|
|
17
17
|
source: string;
|
|
18
|
+
navigation?: boolean;
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
interface MigrationDocsConfig {
|
|
@@ -53,6 +54,8 @@ interface MigrationPage {
|
|
|
53
54
|
title: string;
|
|
54
55
|
description: string;
|
|
55
56
|
keywords: Array<string>;
|
|
57
|
+
/** OpenAPI operation key rendered by Thally instead of ordinary MDX. */
|
|
58
|
+
openapi?: string;
|
|
56
59
|
body: string;
|
|
57
60
|
source: string;
|
|
58
61
|
}
|
|
@@ -149,8 +152,18 @@ interface MintlifyNavigationResult {
|
|
|
149
152
|
declare function readMintlifyConfig(repositoryRoot: string): Record<string, unknown> | null;
|
|
150
153
|
/** Convert current and legacy Mintlify navigation into Thally's schema. */
|
|
151
154
|
declare function projectMintlifyNavigation(config: Record<string, unknown>): MintlifyNavigationResult;
|
|
155
|
+
interface GeneratedNavigationOptions {
|
|
156
|
+
/** Dedicated docs platforms expose their primary sections as top-level tabs. */
|
|
157
|
+
topLevelTabs?: boolean;
|
|
158
|
+
/** Ordered tabs recovered from the source site's rendered navigation. */
|
|
159
|
+
topLevelNavigation?: ReadonlyArray<{
|
|
160
|
+
section: string;
|
|
161
|
+
label: string;
|
|
162
|
+
pageId: string;
|
|
163
|
+
}>;
|
|
164
|
+
}
|
|
152
165
|
/** Build deterministic fallback navigation from imported default-locale pages. */
|
|
153
|
-
declare function buildNavigationFromPages(pages: Array<MigrationPage
|
|
166
|
+
declare function buildNavigationFromPages(pages: Array<MigrationPage>, options?: GeneratedNavigationOptions): MigrationDocsConfig;
|
|
154
167
|
|
|
155
168
|
/** Markdown/MDX normalization that preserves every component Thally supports. */
|
|
156
169
|
|