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/docs/pages/getting-started/preview-changes-locally.mdx
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Fern offers two ways to preview changes to your documentation: a [local developm
8
8
9
9
## Local development
10
10
11
-
Fern allows you to view changes to your documentation in a locally-hosted environment.
11
+
Fern enables you to view changes to your documentation in a locallyhosted environment.
12
12
13
13
<Info>**Prerequisite**: Please install Node.js (version 18 or higher) before proceeding.</Info>
14
14
@@ -45,18 +45,17 @@ Some features (e.g. search) are disabled in the local development environment, i
45
45
46
46
### Custom ports
47
47
48
-
By default, Fern uses port 3000. You can customize the port Fern runs on by using the `--port` flag. For example, to run Fern on port 3002,
49
-
use this command:
48
+
By default, Fern uses port 3000. You can customize the port on which Fern runs by using the `--port` flag. For example, to run Fern on port 3002, use this command:
50
49
51
50
```bash
52
-
fern docs dev --port 3333
51
+
fern docs dev --port 3002
53
52
```
54
53
55
54
If you attempt to run Fern on a port that's already in use, it will use the next available port:
56
55
57
56
## Generate a preview link
58
57
59
-
Fern allows you to generate a shareable preview link displaying the current state of your docs. Each preview link is appended with a UUID and is not indexed. Currently, these links do not expire (this behavior is subject to change in the future).
58
+
Fern allows you to generate a shareable preview link that displays the current state of your docs. Each preview link is appended with a UUID and is not indexed. Currently, these links do not expire (this behavior is subject to change in the future).
60
59
61
60
**Usage**:
62
61
@@ -70,8 +69,8 @@ fern generate --docs --preview
70
69
fern generate --docs --preview
71
70
72
71
[docs]: Found 0 errors and 1 warnings. Run fern check --warnings to print out the warnings.
73
-
[docs]: Published docs to https://fern-preview-a1da0157-93ca-4b1f-b310-8dd34fb891ca.docs.buildwithfern.com
72
+
[docs]: Published docs to https://fern-preview-c973a36e-337b-44f5-ab83-aab.docs.buildwithfern.com/learn
0 commit comments