Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Sep 30, 2024
1 parent ec19152 commit ead4938
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
4 changes: 2 additions & 2 deletions packages/cli/docs-importers/commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"scripts": {
"clean": "rm -rf ./lib && tsc --build --clean",
"compile": "tsc --build",
"test": "vitest --run",
"test:update": "vitest --run -u",
"test": "vitest --passWithNoTests --run",
"test:update": "vitest --passWithNoTests --run -u",
"lint:eslint": "eslint --max-warnings 0 . --ignore-path=../../../../../.eslintignore",
"lint:eslint:fix": "yarn lint:eslint --fix",
"format": "prettier --write --ignore-unknown --ignore-path ../../../../../shared/.prettierignore \"**\"",
Expand Down
20 changes: 6 additions & 14 deletions packages/cli/docs-importers/commons/src/FernDocsBuilderImpl.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
import { docsYml, DOCS_CONFIGURATION_FILENAME, FERN_DIRECTORY } from "@fern-api/configuration";
import {
VersionConfig,
VersionFileConfig,
NavbarLink,
LogoConfiguration,
ColorsConfiguration,
LayoutConfig
} from "@fern-api/configuration/lib/docs-yml/schemas";
import { AbsoluteFilePath, dirname, join, RelativeFilePath } from "@fern-api/fs-utils";
import { FernDocsBuilder, FernDocsNavigationBuilder } from "./FernDocsBuilder";
import { mkdir, writeFile, cp } from "fs/promises";
Expand Down Expand Up @@ -77,13 +69,13 @@ export class FernDocsBuilderImpl extends FernDocsBuilder {
versionConfig,
navigation
}: {
versionConfig: VersionConfig;
navigation: VersionFileConfig;
versionConfig: docsYml.RawSchemas.VersionConfig;
navigation: docsYml.RawSchemas.VersionFileConfig;
}): void {
throw new Error("Method not implemented.");
}

public addNavbarLink({ link }: { link: NavbarLink }): void {
public addNavbarLink({ link }: { link: docsYml.RawSchemas.NavbarLink }): void {
if (this.docsYml.navbarLinks == null) {
this.docsYml.navbarLinks = [link];
}
Expand All @@ -98,15 +90,15 @@ export class FernDocsBuilderImpl extends FernDocsBuilder {
this.docsYml.favicon = favicon;
}

public setLogo({ logo }: { logo: LogoConfiguration }): void {
public setLogo({ logo }: { logo: docsYml.RawSchemas.LogoConfiguration }): void {
this.docsYml.logo = logo;
}

public setColors({ colors }: { colors: ColorsConfiguration }): void {
public setColors({ colors }: { colors: docsYml.RawSchemas.ColorsConfiguration }): void {
this.docsYml.colors = colors;
}

public setLayout({ layout }: { layout: LayoutConfig }): void {
public setLayout({ layout }: { layout: docsYml.RawSchemas.LayoutConfig }): void {
this.docsYml.layout = layout;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export async function convertMarkdown({
title: data.title,
subtitle: data.description,
layout: data.mode != null ? "reference" : undefined,
// eslint-disable-next-line @typescript-eslint/

Check failure on line 50 in packages/cli/docs-importers/mintlify/src/convertMarkdown.ts

View workflow job for this annotation

GitHub Actions / eslint

Definition for rule '@typescript-eslint/' was not found
image: data["og:image"] as any,

Check warning on line 51 in packages/cli/docs-importers/mintlify/src/convertMarkdown.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
slug
},
Expand Down

0 comments on commit ead4938

Please sign in to comment.