Skip to content

Commit 08aea6a

Browse files
Fern Editor: Update
1 parent 4f6c947 commit 08aea6a

File tree

1 file changed

+115
-101
lines changed

1 file changed

+115
-101
lines changed

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

Lines changed: 115 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -5,99 +5,107 @@ subtitle: Start building beautiful documentation in under 5 minutes
55

66
<img alt="Docs cascade" src="./images/docs-cascade.png" />
77

8-
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).
8+
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). and more!
99

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

12+
EDIT
13+
1214
<Steps toc={true}>
1315
### 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.
16+
17+
All the configurations for your docs live in the `fern` folder. Inside, you'll
18+
find a `docs.yml` file that contains all the settings for your documentation.
1719

1820
<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).
21+
<Accordion title="Clone the starter repository">
22+
Get started by cloning the [starter template](https://github.com/fern-api/docs-starter).
2123

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>
24+
<CodeBlocks>
25+
```bash title="SSH"
26+
git clone [email protected]:fern-api/docs-starter.git
27+
```
28+
29+
```bash title="HTTPS"
30+
git clone https://github.com/fern-api/docs-starter.git
31+
```
32+
</CodeBlocks>
3033

31-
Next, please update the template settings to use your organization.
34+
Next, please update the template settings to use your organization.
3235

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

37-
<CodeBlocks>
38-
<CodeBlock title="fern.config.json">
39-
```json {2}
40+
<CodeBlocks>
41+
<CodeBlock title="fern.config.json">
42+
```json {2}
4043
{
4144
"organization": "{{YOUR_ORGANIZATION}}",
4245
"version": "0.x.x"
4346
}
4447
```
45-
</CodeBlock>
46-
<CodeBlock title="docs.yml">
47-
```yml {2}
48+
</CodeBlock>
49+
50+
<CodeBlock title="docs.yml">
51+
```yml {2}
4852
instances:
4953
- url: {{YOUR_ORGANIZATION}}.docs.buildwithfern.com
5054
```
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:
55+
</CodeBlock>
56+
</CodeBlocks>
57+
</Warning>
5558
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
59+
Finally, navigate to the docs directory (where the `fern` folder is located) and execute the following command to generate your documentation:
6360

64-
```bash
65-
npm install -g fern-api
66-
```
61+
```bash
62+
fern generate --docs
63+
```
64+
</Accordion>
6765

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

70-
```bash
71-
fern init --docs
72-
```
70+
```bash
71+
npm install -g fern-api
72+
```
7373

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

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:
76+
```bash
77+
fern init --docs
78+
```
8279

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

8895
</AccordionGroup>
8996

9097
### Update your docs
9198

9299
<Note>
93100
We provide a white-glove migration service as part of our Enterprise plan. Interested? Request it
94-
[here](https://buildwithfern.com/contact).
101+
[here](https://buildwithfern.com/contact).
102+
95103
</Note>
96104

97105
<AccordionGroup toc={true}>
98-
<Accordion title='Add content' >
99-
Add content with MDX files.
100-
106+
<Accordion title="Add content">
107+
Add content with MDX files.
108+
101109
```markdown
102110
---
103111
title: "Page Title"
@@ -108,13 +116,12 @@ In this guide, we'll show you how to get started with Fern in under 5 minutes.
108116
```
109117

110118
<Note title="Supported Syntax">
111-
Fern supports [GitHub flavored Markdown (GFM)](https://github.github.com/gfm/) within MDX files, no plugin required.
119+
Fern supports [GitHub flavored Markdown (GFM)](https://github.github.com/gfm/) within MDX files, no plugin required.
112120
</Note>
113121

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.
122+
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.
116123

117-
```yml
124+
```
118125
navigation:
119126
- page: Hello World
120127
path: docs/pages/hello-world.mdx
@@ -124,28 +131,31 @@ In this guide, we'll show you how to get started with Fern in under 5 minutes.
124131
path: docs/pages/hello-world.mdx
125132
```
126133
</Accordion>
127-
<Accordion title='Add an API Reference' >
134+
135+
<Accordion title="Add an API Reference">
128136
Add an API Reference by adding an OpenAPI Specification to your project.
129137

130-
```bash
131-
fern init --openapi /path/to/openapi.yml
132-
```
138+
```bash
139+
fern init --openapi /path/to/openapi.yml
140+
```
133141

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.
142+
This will create an `openapi.yml` file in your project. You can reference this file in your
143+
`docs.yml` file by adding an api block.
144+
145+
```yml
146+
navigation:
147+
- api: "API Reference"
148+
```
136149
137-
```yml
138-
navigation:
139-
- api: "API Reference"
140-
```
141150
</Accordion>
142-
<Accordion title='Brand your docs'>
151+
152+
<Accordion title="Brand your docs">
143153
All of the branding for your docs can be configured in the `docs.yml` file.
144154

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

148-
<CodeBlock title="docs.yml">
158+
<CodeBlock title="docs.yml">
149159
```yml
150160
colors:
151161
accent-primary:
@@ -160,44 +170,48 @@ In this guide, we'll show you how to get started with Fern in under 5 minutes.
160170
161171
favicon: docs/assets/favicon.svg
162172
```
163-
</CodeBlock>
173+
</CodeBlock>
164174

165175
</Accordion>
166-
167176
</AccordionGroup>
168-
177+
169178
### Preview your docs
179+
170180
<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>
181+
<Accordion title="Preview your docs locally">
182+
You can preview your docs locally for testing purposes by following the instructions [here](/docs/preview-publish/previewing-changes-locally).
183+
</Accordion>
184+
185+
<Accordion title="Preview your docs in a PR">
186+
`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).
187+
</Accordion>
188+
177189
</AccordionGroup>
178-
190+
179191
### Publish to production
180192

181193
<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.
194+
<Accordion title="Publishing your docs">
195+
When you are ready for your docs to be publicly accessible, you can publish them using the Fern CLI.
184196

185-
[Read more.](/learn/docs/preview-publish/publishing-your-docs)
186-
</Accordion>
187-
<Accordion title='Host on a custom domain'>
188-
Fern supports hosting your docs website on a custom domain or on a
189-
custom subpath (e.g. `https://example.com/docs`).
197+
[Read more.](/learn/docs/preview-publish/publishing-your-docs)
198+
</Accordion>
190199

191-
Please reach out to the Fern team at [email protected] to configure this.
192-
</Accordion>
193-
<Accordion title='Configure analytics'>
194-
Fern supports integrations with a variety of providers such as PostHog, Segment, Intercom,
195-
Google Tag Manager, etc.
196-
Find out more on this [page](/learn/docs/integrations/overview).
197-
</Accordion>
200+
<Accordion title="Host on a custom domain">
201+
Fern supports hosting your docs website on a custom domain or on a
202+
custom subpath (e.g. `https://example.com/docs`).
198203

199-
</AccordionGroup>
204+
Please reach out to the Fern team at [[email protected]](mailto:[email protected]) to configure this.
205+
</Accordion>
206+
207+
<Accordion title="Configure analytics">
208+
Fern supports integrations with a variety of providers such as PostHog, Segment, Intercom,
209+
Google Tag Manager, etc.
210+
Find out more on this [page](/learn/docs/integrations/overview).
211+
</Accordion>
200212

213+
</AccordionGroup>
201214
</Steps>
202215

203-
[View examples of documentation websites](https://buildwithfern.com/customers) that have been published using Fern.
216+
217+
[View examples of documentation websites](https://buildwithfern.com/customers) that have been published using Fern.

0 commit comments

Comments
 (0)