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
+6-19Lines changed: 6 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,23 +6,10 @@ description: Guide to configuring the README in your SDK
6
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
7
You can add custom introductions, showcase key endpoints, and organize your SDK documentation with feature sections.
8
8
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
-
```
9
+
## Configuration options
27
10
28
-
For more detailed information on `readme` configuration, see the [`generators.yml` documentation](/sdks/reference/generators-yml#readme)
If you want to customize the README further than the allowed configuration options, you can [manually modify the readme](/products/sdks/custom-code.mdx), then add it to your `.fernignore` file so it doesn't get overwritten on regenerations.
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.
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.
51
+
</ParamField>
52
+
53
+
### defaultEndpoint
54
+
Specifies which endpoint's code snippet to showcase as the primary example in the README.
0 commit comments