-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat): wire through api workspaces to docs validator (#4255)
- Loading branch information
Showing
23 changed files
with
123 additions
and
55 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 12 additions & 3 deletions
15
packages/cli/cli/src/commands/validate/validateDocsWorkspaceAndLogIssues.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { fernConfigJson } from "@fern-api/configuration"; | ||
import { DocsWorkspace, LazyFernWorkspace, OSSWorkspace } from "@fern-api/workspace-loader"; | ||
import { APIWorkspace, DocsWorkspace, LazyFernWorkspace, OSSWorkspace } from "@fern-api/workspace-loader"; | ||
export interface Project { | ||
config: fernConfigJson.ProjectConfig; | ||
apiWorkspaces: (OSSWorkspace | LazyFernWorkspace)[]; | ||
docsWorkspaces: DocsWorkspace | undefined; | ||
loadAPIWorkspace: (name: string | undefined) => APIWorkspace | undefined; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/cli/yaml/docs-validator/src/docsAst/APIWorkspaceLoader.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { AbstractAPIWorkspace } from "@fern-api/workspace-loader"; | ||
|
||
export type APIWorkspaceLoader = (id?: string) => AbstractAPIWorkspace<unknown> | undefined; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
export { | ||
type DocsConfigFileAstNodeTypes, | ||
type DocsConfigFileAstNodeVisitor, | ||
type DocsConfigFileAstVisitor | ||
} from "./docsAst/DocsConfigFileAstVisitor"; | ||
export { validateVersionConfigFileSchema } from "./docsAst/validateVersionConfig"; | ||
export { getReferencedMarkdownFiles } from "./rules/valid-markdown-link/valid-markdown-link"; | ||
export { FrontmatterSchema } from "./rules/valid-markdown/valid-markdown"; | ||
export { validateDocsWorkspace } from "./validateDocsWorkspace"; | ||
export { visitDocsConfigFileYamlAst } from "./docsAst/visitDocsConfigFileAst"; | ||
export { type APIWorkspaceLoader } from "./docsAst/APIWorkspaceLoader"; |
2 changes: 1 addition & 1 deletion
2
packages/cli/yaml/docs-validator/src/rules/validate-version-file/validate-version-file.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.