Skip to content

Commit

Permalink
fix: correctly generate the proper display-name key in the docs.yml f…
Browse files Browse the repository at this point in the history
…ile.
  • Loading branch information
eyw520 committed Jan 13, 2025
1 parent 151378b commit db45abc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/cli/cli/versions.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
- changelogEntry:
- summary: |
The Mintlify docs importer now correctly generates the proper display-name key in the docs.yml file.
type: fix
irVersion: 54
version: 0.47.7

- changelogEntry:
- summary: |
The IR now pulls in additional request properties from the OAuth getToken endpoint to support custom OAuth schemas.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ export class FernDocsBuilderImpl extends FernDocsBuilder {
absolutePathToFernDirectory,
RelativeFilePath.of(DOCS_CONFIGURATION_FILENAME)
);
await writeFile(absoluteFilePathToDocsYml, yaml.dump(this.docsYml));
await writeFile(
absoluteFilePathToDocsYml,
yaml.dump(docsYml.RawSchemas.Serializer.DocsConfiguration.jsonOrThrow(this.docsYml))
);
// await writeFile(absoluteFilePathToDocsYml, yaml.dump(this.docsYml));

await Promise.all(
Object.entries(this.markdownPages).map(async ([filepath, page]) => {
Expand Down

0 comments on commit db45abc

Please sign in to comment.