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: README.md
+23-34Lines changed: 23 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@
8
8
9
9
# Docs Starter
10
10
11
-
Create beautiful documentation in under 5 minutes using an OpenAPI specification (formerly Swagger).
11
+
Create beautiful documentation in under 5 minutes using an OpenAPI specification.
12
12
13
13
</div>
14
14
15
15
## Customer Showcase
16
16
17
-
Get inspired by API documentation built with Fern: [Hume](https://dev.hume.ai) | [Webflow](https://developers.webflow.com) | [Cartesia](https://docs.cartesia.ai) | [Cohere](https://docs.cohere.com) | [ElevenLabs](https://elevenlabs.io/docs)
17
+
Get inspired by API documentation built with Fern: [Webflow](https://developers.webflow.com) | [Cartesia](https://docs.cartesia.ai) | [Cohere](https://docs.cohere.com) | [ElevenLabs](https://elevenlabs.io/docs)
18
18
19
19
---
20
20
@@ -27,46 +27,41 @@ Get inspired by API documentation built with Fern: [Hume](https://dev.hume.ai) |
27
27
28
28
1. Click on the **Use this template** button (found at the top right of this page). You must be logged into GitHub.
29
29
2. Choose the option to **create a new repository**. Name it `fern-docs`.
30
+
3. Install the Fern CLI by running:
31
+
32
+
```bash
33
+
npm install -g fern-api
34
+
```
30
35
31
36
### Step 2: Clone and open the repo in your preferred code editor
32
37
33
-
Clone your newly created repository and open it in your favorite code editor (e.g., VS Code).
38
+
Clone your newly created repository and open it in your favorite code editor (e.g., Cursor, VS Code).
34
39
35
40
The files and folders discussed in the following steps will be inside the `fern/` folder in your repository.
36
41
37
42
### Step 3: Customize your organization name
38
43
39
-
Open the `fern.config.json` file, which looks like this:
44
+
You need to replace `"plantstore"` with your own organization name in two files:
45
+
46
+
**1. Update `fern.config.json`:**
47
+
Open the `fern.config.json` file and change the organization name:
40
48
41
49
```json
42
50
{
43
-
"organization": "Plantstore",
44
-
"version": "0.17.8"
51
+
"organization": "your-organization-name",
52
+
"version": "0.77.3"
45
53
}
46
54
```
47
55
48
-
Replace `"Plantstore"` with your own organization name within the quotes. Spaces are permitted. Leave the `version` number unchanged.
49
-
50
-
Open the `docs.yml` file and locate the `url`, which looks like this:
56
+
**2. Update `docs.yml`:**
57
+
Open the `docs.yml` file and update the URL:
51
58
52
59
```yml
53
60
instances:
54
-
- url: plantstore.docs.buildwithfern.com
55
-
```
56
-
57
-
Replace `plantstore` with your own organization's name. Use only alphanumeric characters, hyphens, and underscores. Do not use spaces, and leave the rest of the URL (`docs.buildwithfern.com`) unchanged.
The CLI commands in the following steps must be run from within the root folder of your repository.
68
-
69
-
### Step 5: Generate your documentation
64
+
### Step 4: Generate your documentation
70
65
71
66
Run the following command:
72
67
@@ -80,21 +75,15 @@ Once the documentation is generated, you will receive the URL where your documen
80
75
81
76
```shell
82
77
┌─
83
-
│ ✓ plantstore.docs.buildwithfern.com
84
-
└─
85
-
86
-
# OR
87
-
88
-
┌─
89
-
│ ✓ MY_ORGANIZATION_NAME.docs.buildwithfern.com
78
+
│ ✓ your-organization-name.docs.buildwithfern.com
90
79
└─
91
80
```
92
81
93
-
### Step 6: Try local development
82
+
### Step 5: Try local development
94
83
95
84
Preview your documentation locally. Run `fern docs dev` to access your docs on your local server at port 3000, hot-reloading as you edit your markdown and OpenAPI files. [Learn more](https://buildwithfern.com/learn/docs/getting-started/development?utm_source=github&utm_medium=readme&utm_campaign=docs-starter-openapi&utm_content=step6) or [watch a 10-second demo](https://www.loom.com/share/0a4658bd78cb45d5a9519277852c7a24?sid=3ce69ad0-bfdb-4fa1-9abf-2f4366d084b9).
96
85
97
-
### Step 7: Customize your documentation
86
+
### Step 6: Customize your documentation
98
87
99
88
You must run `fern generate --docs` after any modifications to re-generate and publish your documentation site.
100
89
@@ -117,7 +106,7 @@ To learn about Fern's built-in component library you can use within MDX files:
117
106
118
107
- See the [Component Library](https://buildwithfern.com/learn/docs/content/components/overview?utm_source=github&utm_medium=readme&utm_campaign=docs-starter-openapi&utm_content=step7).
119
108
120
-
### Step 8: Set up a custom domain
109
+
### Step 7: Set up a custom domain
121
110
122
111
If you wish to use a custom subdomain like `https://docs.YOUR_ORGANIZATION.com` or a subpath like `https://YOUR_ORGANIZATION.com/docs`, you can subscribe to the [Starter plan](https://buildwithfern.com/pricing?utm_source=github&utm_medium=readme&utm_campaign=docs-starter-openapi&utm_content=step8). Once subscribed, update `docs.yml` with the custom domain configuration:
123
112
@@ -126,7 +115,7 @@ If you wish to use a custom subdomain like `https://docs.YOUR_ORGANIZATION.com`
126
115
custom-domain: plantstore.dev
127
116
```
128
117
129
-
### Step 9: Explore advanced features
118
+
### Step 8: Explore advanced features
130
119
131
120
For advanced documentation features and options, view the full [project structure](https://buildwithfern.com/learn/docs/getting-started/project-structure?utm_source=github&utm_medium=readme&utm_campaign=docs-starter-openapi&utm_content=step9).
0 commit comments