Learn how to bring your own custom domain to Fern Docs.
1. Adding your domain to docs.yml
First decide what subdomain to use with your documentation.
The most common options are https://docs.example.com
or https://example.com/docs
.
We’ll add the following to docs.yml
to tell Fern Docs to
publish to example.docs.buildwithfern.com
:
docs.yml
When ready to publish to a custom domain, add the custom-domain
key to the instance. Note that this is a paid feature. For example:
docs.yml
2. Running the generator
In the example above, by running fern generate --docs
, we’d see:
Terminal
followed by
Terminal
3. Creating DNS records to point at Fern Docs
Next, you’ll need to get the DNS records by adding Fern Docs to your subscription. You can do this by reaching out sales@buildwithfern.com.