@fern-api/fern-api-dev 5.23.3-746-g5c8f0997527 → 5.23.3-750-g1245ade58d7
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/cli.cjs +17 -12
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -628742,7 +628742,7 @@ var AccessTokenPosthogManager = class {
|
|
|
628742
628742
|
properties: {
|
|
628743
628743
|
...event,
|
|
628744
628744
|
...event.properties,
|
|
628745
|
-
version: "5.23.3-
|
|
628745
|
+
version: "5.23.3-750-g1245ade58d7",
|
|
628746
628746
|
usingAccessToken: true,
|
|
628747
628747
|
...getRunIdProperties()
|
|
628748
628748
|
}
|
|
@@ -628806,7 +628806,7 @@ var UserPosthogManager = class {
|
|
|
628806
628806
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
628807
628807
|
event: "CLI",
|
|
628808
628808
|
properties: {
|
|
628809
|
-
version: "5.23.3-
|
|
628809
|
+
version: "5.23.3-750-g1245ade58d7",
|
|
628810
628810
|
...event,
|
|
628811
628811
|
...event.properties,
|
|
628812
628812
|
usingAccessToken: false,
|
|
@@ -787112,7 +787112,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
|
|
|
787112
787112
|
if (navNodes.length > 0) {
|
|
787113
787113
|
const rootSlug = navNodes[0]?.slug.split("/").slice(0, -1).join("/");
|
|
787114
787114
|
if (rootSlug) {
|
|
787115
|
-
overviewPageId = await this.registerLibraryMdxPage(outputDir, `${rootSlug}.mdx`);
|
|
787115
|
+
overviewPageId = await this.registerLibraryMdxPage(outputDir, `${rootSlug}/index.mdx`, { quiet: true }) ?? await this.registerLibraryMdxPage(outputDir, `${rootSlug}.mdx`);
|
|
787116
787116
|
}
|
|
787117
787117
|
}
|
|
787118
787118
|
const children2 = await this.convertLibraryNavNodes(navNodes, outputDir, sectionSlug);
|
|
@@ -787159,11 +787159,16 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
|
|
|
787159
787159
|
/**
|
|
787160
787160
|
* Read an MDX file from the library output directory, register its content,
|
|
787161
787161
|
* and return its PageId. Returns undefined if the file doesn't exist.
|
|
787162
|
+
*
|
|
787163
|
+
* @param quiet - When true, suppresses the warning when the file is missing.
|
|
787164
|
+
* Used when probing multiple candidate paths (e.g. index.mdx then sibling .mdx).
|
|
787162
787165
|
*/
|
|
787163
|
-
async registerLibraryMdxPage(outputDir, relativeMdxPath) {
|
|
787166
|
+
async registerLibraryMdxPage(outputDir, relativeMdxPath, { quiet = false } = {}) {
|
|
787164
787167
|
const absolutePath = join8(outputDir, RelativeFilePath2.of(relativeMdxPath));
|
|
787165
787168
|
if (!(0, import_fs26.existsSync)(absolutePath)) {
|
|
787166
|
-
|
|
787169
|
+
if (!quiet) {
|
|
787170
|
+
this.taskContext.logger.warn(`Library MDX file not found: ${absolutePath}`);
|
|
787171
|
+
}
|
|
787167
787172
|
return void 0;
|
|
787168
787173
|
}
|
|
787169
787174
|
const relPath = relative4(this.docsWorkspace.absoluteFilePath, absolutePath);
|
|
@@ -787209,7 +787214,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
|
|
|
787209
787214
|
urlSlug: kebabCase_default(node4.title)
|
|
787210
787215
|
});
|
|
787211
787216
|
const sectionId = this.#idgen.get(`library-section/${node4.slug}`);
|
|
787212
|
-
const overviewPageId = await this.registerLibraryMdxPage(outputDir, `${node4.slug}.mdx`);
|
|
787217
|
+
const overviewPageId = await this.registerLibraryMdxPage(outputDir, `${node4.slug}/index.mdx`, { quiet: true }) ?? await this.registerLibraryMdxPage(outputDir, `${node4.slug}.mdx`);
|
|
787213
787218
|
const filteredChildren = (node4.children ?? []).filter((child) => !(child.type === "page" && child.slug === node4.slug));
|
|
787214
787219
|
const sectionChildren = await this.convertLibraryNavNodes(filteredChildren, outputDir, sectionSlug);
|
|
787215
787220
|
children2.push({
|
|
@@ -820816,7 +820821,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
820816
820821
|
var LOGS_FOLDER_NAME = "logs";
|
|
820817
820822
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
820818
820823
|
function getCliSource() {
|
|
820819
|
-
const version7 = "5.23.3-
|
|
820824
|
+
const version7 = "5.23.3-750-g1245ade58d7";
|
|
820820
820825
|
return `cli@${version7}`;
|
|
820821
820826
|
}
|
|
820822
820827
|
var DebugLogger = class {
|
|
@@ -840965,7 +840970,7 @@ function generate2(options2) {
|
|
|
840965
840970
|
const writer2 = new MdxFileWriter(outputDir);
|
|
840966
840971
|
renderModuleTree(ir3.rootModule, ctx, writer2, "");
|
|
840967
840972
|
const navigation2 = buildNavigation(ir3.rootModule, slug);
|
|
840968
|
-
const rootPageId = `${slug}/${ir3.rootModule.name}.mdx`;
|
|
840973
|
+
const rootPageId = ir3.rootModule.submodules.length > 0 ? `${slug}/${ir3.rootModule.name}/index.mdx` : `${slug}/${ir3.rootModule.name}.mdx`;
|
|
840969
840974
|
const navigationFilePath = writeNavigation(outputDir, navigation2);
|
|
840970
840975
|
const writerResult = writer2.result();
|
|
840971
840976
|
return {
|
|
@@ -840981,7 +840986,7 @@ function renderModuleTree(module4, ctx, writer2, parentPath) {
|
|
|
840981
840986
|
const hasDirectContent = module4.classes.length > 0 || module4.functions.length > 0 || module4.attributes.length > 0 || module4.docstring != null;
|
|
840982
840987
|
const hasSubmodules = module4.submodules.length > 0;
|
|
840983
840988
|
if (hasDirectContent || hasSubmodules) {
|
|
840984
|
-
const pageKey = `${ctx.baseSlug}/${modulePath}.mdx`;
|
|
840989
|
+
const pageKey = hasSubmodules ? `${ctx.baseSlug}/${modulePath}/index.mdx` : `${ctx.baseSlug}/${modulePath}.mdx`;
|
|
840985
840990
|
const content5 = renderModulePage(module4, ctx, parentPath);
|
|
840986
840991
|
writer2.writePage(pageKey, content5);
|
|
840987
840992
|
}
|
|
@@ -852149,7 +852154,7 @@ var LegacyDocsPublisher = class {
|
|
|
852149
852154
|
previewId,
|
|
852150
852155
|
disableTemplates: void 0,
|
|
852151
852156
|
skipUpload,
|
|
852152
|
-
cliVersion: "5.23.3-
|
|
852157
|
+
cliVersion: "5.23.3-750-g1245ade58d7",
|
|
852153
852158
|
loginCommand: "fern auth login"
|
|
852154
852159
|
});
|
|
852155
852160
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -917535,7 +917540,7 @@ function getAutomationContextFromEnv() {
|
|
|
917535
917540
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
917536
917541
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
917537
917542
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
917538
|
-
cli_version: "5.23.3-
|
|
917543
|
+
cli_version: "5.23.3-750-g1245ade58d7"
|
|
917539
917544
|
};
|
|
917540
917545
|
}
|
|
917541
917546
|
function isAutomationMode() {
|
|
@@ -918361,7 +918366,7 @@ var CliContext = class _CliContext {
|
|
|
918361
918366
|
if (false) {
|
|
918362
918367
|
this.logger.error("CLI_VERSION is not defined");
|
|
918363
918368
|
}
|
|
918364
|
-
return "5.23.3-
|
|
918369
|
+
return "5.23.3-750-g1245ade58d7";
|
|
918365
918370
|
}
|
|
918366
918371
|
getCliName() {
|
|
918367
918372
|
if (false) {
|
package/package.json
CHANGED