Skip to content

Commit c44be4d

Browse files
Fern Editor: Update
1 parent 8191682 commit c44be4d

File tree

1 file changed

+121
-112
lines changed

1 file changed

+121
-112
lines changed

fern/products/docs/pages/getting-started/quickstart.mdx

Lines changed: 121 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -3,149 +3,154 @@ title: Quickstart
33
subtitle: Start building beautiful documentation in under 5 minutes
44
---
55

6-
<img alt="Docs cascade" src="./images/docs-cascade.png" />
7-
86
With Fern, you can build beautiful developer documentation that matches your brand. Fern supports writing pages (written in Markdown) and generating API Reference documentation (from an OpenAPI Specification).
97

108
In this guide, we'll show you how to get started with Fern in under 5 minutes.
119

1210
<Steps toc={true}>
1311
### Initialize your `fern` folder
14-
15-
All the configurations for your docs live in the `fern` folder. Inside, you'll
16-
find a `docs.yml` file that contains all the settings for your documentation.
12+
13+
All the configurations for your docs live in the `fern` folder. Inside, you'll
14+
find a `docs.yml` file that contains all the settings for your documentation.
1715

1816
<AccordionGroup toc={true}>
19-
<Accordion title='Clone the starter repository'>
20-
Get started by cloning the [starter template](https://github.com/fern-api/docs-starter).
17+
<Accordion title="Clone the starter repository">
18+
Get started by cloning the [starter template](https://github.com/fern-api/docs-starter).
2119

22-
<CodeBlocks>
23-
```bash title="SSH"
24-
git clone [email protected]:fern-api/docs-starter.git
25-
```
26-
```bash title="HTTPS"
27-
git clone https://github.com/fern-api/docs-starter.git
28-
```
29-
</CodeBlocks>
20+
<CodeBlocks>
21+
```bash title="SSH"
22+
git clone [email protected]:fern-api/docs-starter.git
23+
```
24+
25+
```bash title="HTTPS"
26+
git clone https://github.com/fern-api/docs-starter.git
27+
```
28+
</CodeBlocks>
3029

31-
Next, please update the template settings to use your organization.
30+
Next, please update the template settings to use your organization.
3231

33-
<Warning title="Edit template settings">
34-
Please edit the details `fern.config.json` and `docs.yml` with your organization
35-
name.
32+
<Warning title="Edit template settings">
33+
Please edit the details `fern.config.json` and `docs.yml` with your organization
34+
name.
3635

37-
<CodeBlocks>
38-
<CodeBlock title="fern.config.json">
39-
```json {2}
36+
<CodeBlocks>
37+
<CodeBlock title="fern.config.json">
38+
```json {2}
4039
{
4140
"organization": "{{YOUR_ORGANIZATION}}",
4241
"version": "0.x.x"
4342
}
4443
```
45-
</CodeBlock>
46-
<CodeBlock title="docs.yml">
47-
```yml {2}
44+
</CodeBlock>
45+
46+
<CodeBlock title="docs.yml">
47+
```yml {2}
4848
instances:
4949
- url: {{YOUR_ORGANIZATION}}.docs.buildwithfern.com
5050
```
51-
</CodeBlock>
52-
</CodeBlocks>
53-
</Warning>
54-
Finally, navigate to the docs directory (where the `fern` folder is located) and execute the following command to generate your documentation:
51+
</CodeBlock>
52+
</CodeBlocks>
53+
</Warning>
5554
56-
```bash
57-
fern generate --docs
58-
```
59-
</Accordion>
60-
<Accordion title='Use the Fern CLI'>
61-
If you prefer, you can use our CLI to create a new project. Install the CLI
62-
by running
55+
Finally, navigate to the docs directory (where the `fern` folder is located) and execute the following command to generate your documentation:
6356

64-
```bash
65-
npm install -g fern-api
66-
```
57+
```bash
58+
fern generate --docs
59+
```
60+
</Accordion>
6761

68-
Then run
62+
<Accordion title="Use the Fern CLI">
63+
If you prefer, you can use our CLI to create a new project. Install the CLI
64+
by running
6965

70-
```bash
71-
fern init --docs
72-
```
66+
```bash
67+
npm install -g fern-api
68+
```
7369

74-
You will see a new `fern` folder in your project with the following structure:
70+
Then run
7571

76-
```bash
77-
fern
78-
├─ docs.yml
79-
└─ fern.config.json
80-
```
81-
Finally, navigate to the docs directory (where the `fern` folder is located) and execute the following command to generate your documentation:
72+
```bash
73+
fern init --docs
74+
```
8275

83-
```bash
84-
fern generate --docs
85-
```
86-
</Accordion>
76+
You will see a new `fern` folder in your project with the following structure:
77+
78+
```bash
79+
fern
80+
├─ docs.yml
81+
└─ fern.config.json
82+
```
83+
84+
Finally, navigate to the docs directory (where the `fern` folder is located) and execute the following command to generate your documentation:
85+
86+
```bash
87+
fern generate --docs
88+
```
89+
</Accordion>
8790

8891
</AccordionGroup>
8992

9093
### Update your docs
9194

9295
<Note>
9396
We provide a white-glove migration service as part of our Enterprise plan. Interested? Request it
94-
[here](https://buildwithfern.com/contact).
97+
[here](https://buildwithfern.com/contact).
98+
9599
</Note>
96100

97101
<AccordionGroup toc={true}>
98-
<Accordion title='Add content' >
99-
Add content with MDX files.
100-
101-
```markdown
102-
---
103-
title: "Page Title"
104-
description: "Subtitle (optional)"
105-
---
106-
107-
Hello world!
108-
```
102+
<Accordion title="Add content">
103+
Add content with MDX files.
104+
105+
```markdown
106+
---
107+
title: "Page Title"
108+
description: "Subtitle (optional)"
109+
---
110+
111+
Hello world!
112+
```
109113

110-
<Note title="Supported Syntax">
114+
<Note title="Supported Syntax">
111115
Fern supports [GitHub flavored Markdown (GFM)](https://github.github.com/gfm/) within MDX files, no plugin required.
112-
</Note>
116+
</Note>
113117

114-
In order for the Markdown page to show up, you'll need to reference them from your `docs.yml` file. You
115-
can reference the Markdown page within a section or as a standalone page.
118+
In order for the Markdown page to show up, you'll need to reference them from your `docs.yml` file. You can reference the Markdown page within a section or as a standalone page.
119+
120+
```
121+
navigation:
122+
- page: Hello World
123+
path: docs/pages/hello-world.mdx
124+
- section: Overview
125+
contents:
126+
- page: QuickStart
127+
path: docs/pages/hello-world.mdx
128+
```
116129

117-
```yml
118-
navigation:
119-
- page: Hello World
120-
path: docs/pages/hello-world.mdx
121-
- section: Overview
122-
contents:
123-
- page: QuickStart
124-
path: docs/pages/hello-world.mdx
125-
```
126130
</Accordion>
127-
<Accordion title='Add an API Reference' >
131+
132+
<Accordion title="Add an API Reference">
128133
Add an API Reference by adding an OpenAPI Specification to your project.
129134

130135
```bash
131136
fern init --openapi /path/to/openapi.yml
132137
```
133138

134-
This will create an `openapi.yml` file in your project. You can reference this file in your
135-
`docs.yml` file by adding an api block.
139+
This will create an `openapi.yml` file in your project. You can reference this file in your `docs.yml` file by adding an api block.
136140

137-
```yml
141+
```
138142
navigation:
139143
- api: "API Reference"
140144
```
141145
</Accordion>
142-
<Accordion title='Brand your docs'>
146+
147+
<Accordion title="Brand your docs">
143148
All of the branding for your docs can be configured in the `docs.yml` file.
144149

145-
For example, to set the logos, colors, and fonts for your docs, you can
146-
add the following to your `docs.yml` file:
150+
For example, to set the logos, colors, and fonts for your docs, you can
151+
add the following to your `docs.yml` file:
147152

148-
<CodeBlock title="docs.yml">
153+
<CodeBlock title="docs.yml">
149154
```yml
150155
colors:
151156
accent-primary:
@@ -160,45 +165,49 @@ In this guide, we'll show you how to get started with Fern in under 5 minutes.
160165

161166
favicon: docs/assets/favicon.svg
162167
```
163-
</CodeBlock>
168+
</CodeBlock>
164169
165170
</Accordion>
166-
167171
</AccordionGroup>
168-
172+
169173
### Preview your docs
174+
170175
<AccordionGroup toc={true}>
171-
<Accordion title='Preview your docs locally'>
172-
You can preview your docs locally for testing purposes by following the instructions [here](/docs/preview-publish/previewing-changes-locally).
173-
</Accordion>
174-
<Accordion title='Preview your docs in a PR'>
175-
`PR previews` offer a way to preview changes from pull requests (PRs) before merging code to a production branch. Learn more [here](/docs/preview-publish/previewing-changes-in-a-pr).
176-
</Accordion>
176+
<Accordion title="Preview your docs locally">
177+
You can preview your docs locally for testing purposes by following the instructions [here](/docs/preview-publish/previewing-changes-locally).
178+
</Accordion>
179+
180+
<Accordion title="Preview your docs in a PR">
181+
`PR previews` offer a way to preview changes from pull requests (PRs) before merging code to a production branch. Learn more [here](/docs/preview-publish/previewing-changes-in-a-pr).
182+
</Accordion>
183+
177184
</AccordionGroup>
178-
185+
179186
### Publish to production
180187

181188
<AccordionGroup toc={true}>
182-
<Accordion title='Publishing your docs'>
183-
When you are ready for your docs to be publicly accessible, you can publish them using the Fern CLI. [Read more.](/learn/docs/preview-publish/publishing-your-docs)
184-
</Accordion>
185-
<Accordion title='Host on a custom domain'>
186-
Fern supports hosting your docs website on a custom domain or on a
187-
custom subpath (e.g. `https://example.com/docs`).
188-
Please reach out to the Fern team at [email protected] to configure this.
189-
</Accordion>
190-
<Accordion title='Configure analytics'>
191-
Fern supports integrations with a variety of providers such as PostHog, Segment, Intercom,
192-
Google Tag Manager, etc.
193-
Find out more on this [page](/learn/docs/integrations/overview).
194-
</Accordion>
189+
<Accordion title="Publishing your docs">
190+
When you are ready for your docs to be publicly accessible, you can publish them using the Fern CLI. [Read more.](/learn/docs/preview-publish/publishing-your-docs)
191+
</Accordion>
192+
193+
<Accordion title="Host on a custom domain">
194+
Fern supports hosting your docs website on a custom domain or on a
195+
custom subpath (e.g. `https://example.com/docs`).
196+
Please reach out to the Fern team at [[email protected]](mailto:[email protected]) to configure this.
197+
</Accordion>
198+
199+
<Accordion title="Configure analytics">
200+
Fern supports integrations with a variety of providers such as PostHog, Segment, Intercom,
201+
Google Tag Manager, etc.
202+
Find out more on this [page](/learn/docs/integrations/overview).
203+
</Accordion>
195204

196205
</AccordionGroup>
197-
198206
</Steps>
199207

208+
200209
[View examples of documentation websites](https://buildwithfern.com/customers) that have been published using Fern.
201210

202211
<Info>
203212
Use the [Fern Dashboard](http://dashboard.buildwithfern.com) to manage your GitHub repository connection, organization members (add or remove), and Fern CLI version. You can also view page views and unique visitors to your site.
204-
</Info>
213+
</Info>

0 commit comments

Comments
 (0)