@thallylabs/migrate 0.2.43 → 0.2.44
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/README.md +215 -26
- package/dist/index.d.ts +32 -6
- package/dist/index.js +2429 -1050
- package/dist/index.js.map +1 -1
- package/dist/url-migration.d.ts +2 -2
- package/dist/url-migration.js +213 -54
- package/dist/url-migration.js.map +1 -1
- package/dist/{url-run-CPzQfjRW.d.ts → url-run-D-E4dr2h.d.ts} +9 -1
- package/package.json +2 -1
|
@@ -432,6 +432,8 @@ interface MigrationPage {
|
|
|
432
432
|
navigationId: string;
|
|
433
433
|
locale?: string;
|
|
434
434
|
title: string;
|
|
435
|
+
/** Set on a page that names an OpenAPI operation, whose title came from its file name because the source gave it none: the bound operation can title it instead. */
|
|
436
|
+
titleFromFileName?: true;
|
|
435
437
|
/** Authored display H1 when the source uses a different metadata title. */
|
|
436
438
|
headingTitle?: string;
|
|
437
439
|
navTitle?: string;
|
|
@@ -446,7 +448,7 @@ interface MigrationPage {
|
|
|
446
448
|
mode?: 'default' | 'wide' | 'custom' | 'center' | 'home';
|
|
447
449
|
hidden?: boolean;
|
|
448
450
|
noindex?: boolean;
|
|
449
|
-
/** Mintlify frontmatter `url`: a web address the page's sidebar entry leaves for
|
|
451
|
+
/** Mintlify frontmatter `url`: a web address, or a path of the site, that the page's sidebar entry leaves for and the page's own path redirects to. */
|
|
450
452
|
externalUrl?: string;
|
|
451
453
|
/**
|
|
452
454
|
* Reader access groups (frontmatter `groups`): trimmed, non-empty names the
|
|
@@ -532,6 +534,12 @@ interface MigrationBundle {
|
|
|
532
534
|
tab?: string;
|
|
533
535
|
endpointOperations?: Array<string>;
|
|
534
536
|
}>;
|
|
537
|
+
/**
|
|
538
|
+
* The `api.source` of each hidden tab the migrator made for a spec only pages name. The tabs are told apart by data that stays beside
|
|
539
|
+
* docs.json, never in it: a bundle sent between threads keeps a tab's data and nothing else, and an author may give any tab any label.
|
|
540
|
+
* Present only alongside remote specs, which hydration binds to tabs once the bundle has been sent.
|
|
541
|
+
*/
|
|
542
|
+
pageOnlySpecs?: Array<string>;
|
|
535
543
|
/** Customer-owned component source and registry; paths are repository-relative. */
|
|
536
544
|
componentFiles?: Array<RenderedMigrationFile>;
|
|
537
545
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thallylabs/migrate",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.44",
|
|
4
4
|
"description": "Shared repository and live-site migration engine for Thally",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@mdx-js/mdx": "^3.1.1",
|
|
42
42
|
"cheerio": "1.0.0",
|
|
43
|
+
"eslint-scope": "^8.4.0",
|
|
43
44
|
"gemoji": "^8.1.0",
|
|
44
45
|
"htmlparser2": "^9.1.0",
|
|
45
46
|
"ignore": "^5.3.2",
|