You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/products/sdks/guides/configure-readme.mdx
+8-21Lines changed: 8 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,26 +3,13 @@ title: Customize README
3
3
description: Guide to configuring the README in your SDK
4
4
---
5
5
6
-
By default, the README for your SDKs is generated programmatically. You can override this by configuring the `readme` section in `generators.yml` to control the content and structure of generated README files across all your SDKs.
7
-
You can add custom introductions, showcase key endpoints, and organize your SDK documentation with feature sections.
6
+
By default, the README for your SDKs is generated programmatically. You can customize the content and structure of these README files across all of your SDKs by configuring the `readme` section in `generators.yml`.
8
7
9
-
```yaml title="generators.yml"
10
-
readme:
11
-
introduction: "Welcome to our API"
12
-
apiReferenceLink: "https://docs.example.com"
13
-
apiName: "Example Product"
14
-
disabledSections:
15
-
- "contributing"
16
-
defaultEndpoint:
17
-
method: "POST"
18
-
path: "/users"
19
-
features:
20
-
authentication:
21
-
- method: "POST"
22
-
path: "/auth/login"
23
-
users:
24
-
- method: "GET"
25
-
path: "/users"
26
-
```
27
8
28
-
For more detailed information on `readme` configuration, see the [`generators.yml` documentation](/sdks/reference/generators-yml#readme)
For customization beyond these configuration options, you can [manually modify the README](/products/sdks/custom-code.mdx) and add it to your `.fernignore` file to prevent it from being overwritten during regeneration.
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.
Groups endpoints by feature name for organized README sections. Each feature becomes a section in the README with example code snippets for the listed endpoints.
385
-
</ParamField>
386
-
387
-
### defaultEndpoint
388
-
Specifies which endpoint's code snippet to showcase as the primary example in the README.
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.
Organizes endpoints into named feature sections within the README. Each feature creates a dedicated section with example code snippets for the specified endpoints.
51
+
</ParamField>
52
+
53
+
### Endpoint configuration
54
+
55
+
Specifies which endpoint's code snippet to showcase as the primary example in the README.
0 commit comments