Skip to content

Commit

Permalink
add long scrolling and flattened booleans to fdr (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnz269 authored Apr 30, 2024
1 parent a160adb commit 3b8ce16
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fern/apis/fdr/definition/docs/v1/db/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ types:
hidden: optional<boolean>
fullSlug: optional<list<string>>
navigation: optional<docsReadV1.ApiNavigationConfigRoot>
longScrolling: optional<boolean>
flattened: optional<boolean>

DocsSection:
properties:
Expand Down
2 changes: 2 additions & 0 deletions fern/apis/fdr/definition/docs/v1/read/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ types:
changelog: optional<ChangelogSection>
fullSlug: optional<list<string>>
navigation: optional<ApiNavigationConfigRoot>
longScrolling: optional<boolean>
flattened: optional<boolean>

ApiNavigationConfigRoot:
properties:
Expand Down
2 changes: 2 additions & 0 deletions fern/apis/fdr/definition/docs/v1/write/__package__.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ types:
hidden: optional<boolean>
fullSlug: optional<list<string>>
navigation: optional<ApiNavigationConfigRoot>
longScrolling: optional<boolean>
flattened: optional<boolean>

ApiNavigationConfigRoot:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ export interface ApiSection {
hidden?: boolean;
fullSlug?: string[];
navigation?: FernRegistry.docs.v1.read.ApiNavigationConfigRoot;
longScrolling?: boolean;
flattened?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ export interface ApiSection {
changelog?: FernRegistry.docs.v1.read.ChangelogSection;
fullSlug?: string[];
navigation?: FernRegistry.docs.v1.read.ApiNavigationConfigRoot;
longScrolling?: boolean;
flattened?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ export interface ApiSection {
hidden?: boolean;
fullSlug?: string[];
navigation?: FernRegistry.docs.v1.write.ApiNavigationConfigRoot;
longScrolling?: boolean;
flattened?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import {
visitUnversionedWriteNavigationConfig,
visitWriteNavigationConfig,
} from "../../client";
import { type WithoutQuestionMarks } from "../utils/WithoutQuestionMarks";
import { assertNever } from "../utils/assertNever";
import { DEFAULT_DARK_MODE_ACCENT_PRIMARY, DEFAULT_LIGHT_MODE_ACCENT_PRIMARY } from "../utils/colors";
import { type WithoutQuestionMarks } from "../utils/WithoutQuestionMarks";
const { kebabCase } = lodash;

export interface S3FileInfo {
Expand Down Expand Up @@ -168,6 +168,8 @@ export function transformNavigationItemForDb(
...writeShape,
icon: writeShape.icon,
hidden: writeShape.hidden ?? false,
longScrolling: writeShape.longScrolling,
flattened: writeShape.flattened,
fullSlug: writeShape.fullSlug,
urlSlug: kebabCase(writeShape.title),
artifacts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ export interface ApiSection {
hidden?: boolean;
fullSlug?: string[];
navigation?: FernRegistry.docs.v1.read.ApiNavigationConfigRoot;
longScrolling?: boolean;
flattened?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ export interface ApiSection {
changelog?: FernRegistry.docs.v1.read.ChangelogSection;
fullSlug?: string[];
navigation?: FernRegistry.docs.v1.read.ApiNavigationConfigRoot;
longScrolling?: boolean;
flattened?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ export interface ApiSection {
hidden?: boolean;
fullSlug?: string[];
navigation?: FernRegistry.docs.v1.write.ApiNavigationConfigRoot;
longScrolling?: boolean;
flattened?: boolean;
}

0 comments on commit 3b8ce16

Please sign in to comment.