Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions fern/apis/generators-yml/definition/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ types:
bannerLink: optional<string>
introduction: optional<string>
apiReferenceLink: optional<string>
apiName: optional<string>
disabledSections: optional<list<string>>
defaultEndpoint:
type: optional<ReadmeEndpointSchema>
docs: "If set, use this endpoint's snippet as the default whenever possible"
Expand Down
3 changes: 3 additions & 0 deletions fern/products/sdks/guides/configure-readme.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ You can add custom introductions, showcase key endpoints, and organize your SDK
readme:
introduction: "Welcome to our API"
apiReferenceLink: "https://docs.example.com"
apiName: "Example Product"
disabledSections:
- "contributing"
defaultEndpoint:
method: "POST"
path: "/users"
Expand Down
11 changes: 11 additions & 0 deletions fern/products/sdks/reference/generators-yml-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,9 @@ readme:
bannerLink: "https://example.com/banner"
introduction: "Welcome to our API"
apiReferenceLink: "https://docs.example.com"
apiName: "Example Product"
disabledSections:
- "contributing"
defaultEndpoint:
method: "POST"
path: "/users"
Expand Down Expand Up @@ -365,6 +368,14 @@ readme:
URL to your external API documentation or reference guide.
</ParamField>

<ParamField path="apiName" type="string" required={false} toc={true}>
Name of the API that appears in the README. Will appear as `Your Api Name SDK` or `Your Api Name API` throughout the README. Defaults to organization name if not set.
</ParamField>

<ParamField path="disabledSections" type="string[]" required={false} toc={true}>
Sections to disable in the README (e.g. `contributing`).
</ParamField>

<ParamField path="defaultEndpoint" type="ReadmeEndpointSchema" required={false} toc={true}>
Specifies which endpoint's code snippet to showcase as the primary example in the README.
</ParamField>
Expand Down