@fern-api/fern-api-dev 5.7.8-2-ge7bbdf30acb → 5.7.8

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 (2) hide show
  1. package/cli.cjs +12 -24
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -622577,7 +622577,7 @@ var AccessTokenPosthogManager = class {
622577
622577
  properties: {
622578
622578
  ...event,
622579
622579
  ...event.properties,
622580
- version: "5.7.8-2-ge7bbdf30acb",
622580
+ version: "5.7.8",
622581
622581
  usingAccessToken: true
622582
622582
  }
622583
622583
  });
@@ -622631,7 +622631,7 @@ var UserPosthogManager = class {
622631
622631
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
622632
622632
  event: "CLI",
622633
622633
  properties: {
622634
- version: "5.7.8-2-ge7bbdf30acb",
622634
+ version: "5.7.8",
622635
622635
  ...event,
622636
622636
  ...event.properties,
622637
622637
  usingAccessToken: false,
@@ -814249,25 +814249,18 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
814249
814249
  const relativeFilePath = this.toRelativeFilepath(item.overviewAbsolutePath);
814250
814250
  let pageId = relativeFilePath ? navigation_exports.PageId(relativeFilePath) : void 0;
814251
814251
  const id2 = this.#idgen.get(pageId ?? `${prefix2}/section`);
814252
- const fullSlugParts = item.overviewAbsolutePath ? this.markdownFilesToFullSlugs.get(item.overviewAbsolutePath)?.split("/") : void 0;
814253
- const urlSlug = item.slug ?? kebabCase_default(item.title);
814254
- let sectionSlug;
814255
- let childrenParentSlug;
814256
- if (item.skipUrlSlug && fullSlugParts != null) {
814257
- sectionSlug = parentSlug.apply({ urlSlug, fullSlug: fullSlugParts });
814258
- childrenParentSlug = parentSlug.apply({ urlSlug, skipUrlSlug: true });
814259
- } else {
814260
- const slug = parentSlug.apply({ urlSlug, fullSlug: fullSlugParts, skipUrlSlug: item.skipUrlSlug });
814261
- sectionSlug = slug;
814262
- childrenParentSlug = slug;
814263
- }
814252
+ const slug = parentSlug.apply({
814253
+ urlSlug: item.slug ?? kebabCase_default(item.title),
814254
+ fullSlug: item.overviewAbsolutePath ? this.markdownFilesToFullSlugs.get(item.overviewAbsolutePath)?.split("/") : void 0,
814255
+ skipUrlSlug: item.skipUrlSlug
814256
+ });
814264
814257
  const noindex = item.overviewAbsolutePath != null ? this.markdownFilesToNoIndex.get(item.overviewAbsolutePath) : void 0;
814265
814258
  const frontmatterAvailability = item.overviewAbsolutePath != null ? this.markdownFilesToAvailability.get(item.overviewAbsolutePath) : void 0;
814266
814259
  const hiddenSection = hideChildren || item.hidden;
814267
814260
  const children2 = await Promise.all(item.contents.map((child) => this.toNavigationChild({
814268
814261
  prefix: id2,
814269
814262
  item: child,
814270
- parentSlug: childrenParentSlug,
814263
+ parentSlug: slug,
814271
814264
  hideChildren: hiddenSection,
814272
814265
  parentAvailability: item.availability ?? parentAvailability
814273
814266
  })));
@@ -814282,7 +814275,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
814282
814275
  id: id2,
814283
814276
  type: "section",
814284
814277
  overviewPageId: pageId,
814285
- slug: sectionSlug.get(),
814278
+ slug: slug.get(),
814286
814279
  title: item.overviewAbsolutePath != null ? this.markdownFilesToSidebarTitle.get(item.overviewAbsolutePath) ?? item.title : item.title,
814287
814280
  icon: this.resolveIconFileId(item.icon),
814288
814281
  collapsed: item.collapsed,
@@ -847364,7 +847357,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
847364
847357
  var LOGS_FOLDER_NAME = "logs";
847365
847358
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
847366
847359
  function getCliSource() {
847367
- const version7 = "5.7.8-2-ge7bbdf30acb";
847360
+ const version7 = "5.7.8";
847368
847361
  return `cli@${version7}`;
847369
847362
  }
847370
847363
  var DebugLogger = class {
@@ -859980,7 +859973,7 @@ var LegacyDocsPublisher = class {
859980
859973
  previewId,
859981
859974
  disableTemplates: void 0,
859982
859975
  skipUpload,
859983
- cliVersion: "5.7.8-2-ge7bbdf30acb",
859976
+ cliVersion: "5.7.8",
859984
859977
  loginCommand: "fern auth login"
859985
859978
  });
859986
859979
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -934422,7 +934415,7 @@ var CliContext = class _CliContext {
934422
934415
  if (false) {
934423
934416
  this.logger.error("CLI_VERSION is not defined");
934424
934417
  }
934425
- return "5.7.8-2-ge7bbdf30acb";
934418
+ return "5.7.8";
934426
934419
  }
934427
934420
  getCliName() {
934428
934421
  if (false) {
@@ -942173,11 +942166,6 @@ async function previewDocsWorkspace({
942173
942166
  const project = await loadProject2();
942174
942167
  const docsWorkspace = project.docsWorkspaces;
942175
942168
  if (docsWorkspace == null) {
942176
- cliContext.failAndThrow(
942177
- "No docs.yml found in your Fern project. Add a docs.yml to configure your documentation site.",
942178
- void 0,
942179
- { code: CliError.Code.ConfigError }
942180
- );
942181
942169
  return;
942182
942170
  }
942183
942171
  if (legacyPreview) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.7.8-2-ge7bbdf30acb",
2
+ "version": "5.7.8",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",