Migrate from a homegrown portal to docs as code in weeks

7 min readVera Chan
A toggle switching from Homegrown portal to the Fern logo, over an illustrated landscape with a tree beside a pond at sunset.

TL;DR

Migrating off a homegrown portal is smaller than it looks. Content converts in bulk, the API reference is regenerated from your spec instead of rewritten, and your redirect map is built from your existing URL list and checked before launch. Unleash moved 300+ pages off a self-managed Docusaurus site in about two weeks. Book a demo to see your portal generated from your own spec.

Most API teams don't stay on a homegrown docs portal because it's the best fit. They stay because migrating feels like a risk with no obvious upside: weeks of work, broken links, and a launch nobody wants to own.

In practice, moving off a homegrown portal is a smaller project than most teams expect. The work that feels biggest, rewriting the API reference and keeping every URL alive, is also the most automated. Your timeline depends on what's unique to your portal, such as custom components and undocumented access rules, and an inventory tells you how much of that you have before you commit to a date.

Why staying put costs more than it looks

A homegrown portal works fine day to day and still creates friction behind the scenes. Two sources come up most often.

You maintain the platform as well as the content. On a homegrown portal, the API reference is often uploaded by hand, access rules are usually undocumented, and every custom component, plugin, and integration is yours to patch. That time comes out of the hours you'd otherwise spend on the docs.

Your docs and SDKs update on different schedules. If your client libraries come from a separate vendor, the snippets in your docs and the libraries developers install drift apart. A snippet that compiled last quarter stops working, and the first sign is often a support ticket.

None of this means your current setup is broken. It means the upkeep grows with every page you add, so staying where you are probably costs more over time than moving.

What a migration actually involves

Start with an inventory

Most overruns come from skipping the inventory. Before choosing any tooling, list every published page with its URL, owner, and recent traffic. Export the full URL list from your sitemap and analytics, not only your navigation, because orphaned pages still have backlinks pointing at them. Then catalog your assets, gated content, and custom components. Custom components usually set the real timeline, because no tool converts them automatically.

Move the source of truth into your repository

Your API definition belongs in version control next to the service it describes. Your guides move to MDX, and navigation, redirects, and theming become configuration files instead of templates and server settings.

Convert content in bulk

Conversion is mostly mechanical. If your portal runs on a static site generator like Docusaurus, your guides are probably already Markdown or MDX. Otherwise, most portals can export HTML that a tool like pandoc converts to Markdown. A manual pass follows to map components, move assets into the repository, and pull repeated content into reusable snippets.

On a homegrown portal, most of the effort goes into work that bulk conversion doesn't cover:

  • Getting content out of wherever it lives today, such as page templates or a database
  • Writing down access rules that only exist in application code
  • Checking that the spec is accurate before you regenerate the reference from it

Regenerate the API reference instead of converting it

The API reference is the exception. Instead of converting it, you regenerate it from your OpenAPI, AsyncAPI, or gRPC definition. Because Fern generates SDKs from that same spec, the code snippets in your docs come from the libraries developers actually install, so docs and SDKs stop drifting apart.

That matters for AI agents as much as for developers. We had Claude agents build the same Square payments integration three ways: on raw HTTP, with an OpenAPI Generator SDK, and with Square's Fern-generated SDK. With Square's SDK, 11 of 12 integrations were correct and held up under production rate limits, versus 2 of 12 with each of the other setups.

How to protect your URLs, access rules, and contributors

Each of the risks that worry teams most has a check you run before launch, and most of those checks keep running after it.

URLs. Preserve paths where you can, and map the rest to redirects in docs.yml using the URL list from your inventory. Before you switch DNS, check the redirect map against that list on a staging domain. After launch, fern check flags any page that's removed or moved without a redirect, and you can set it to fail the pull request so a missing redirect never reaches production as a 404.

Quality. CI takes over the review steps that were manual on your old portal. Spec validation, MDX checks, style linting, link checking, and preview deployments run on every pull request. Non-technical contributors stay in the workflow through Fern Editor, a visual editor that opens pull requests against the same repository.

Access. Roles are declared in configuration instead of application code, and preview links include a role selector, so you can check what each audience sees before you switch DNS.

How Unleash migrated 300+ pages in two weeks

One person runs Unleash's documentation, which spans hundreds of pages. The site ran on Docusaurus, which the team maintained themselves, and the friction grew with the content. The API reference depended on a third-party plugin that kept getting flagged for security vulnerabilities and once caused a bug that took down site search. The team also ended up building and maintaining custom solutions for features a modern docs platform should include.

Unleash started using Fern in January 2026 and migrated 300+ pages in about two weeks. Much of that pace came from familiarity. Writing in Markdown with custom React components was close enough to what the team already did that they could focus on the migration instead of learning a new toolchain.

2 weeks
To migrate to Fern
300+ pages
Moved from Docusaurus
1 person
On the documentation team

The results showed up in a few places:

  • Less custom maintenance. Fern's built-in component library covered the gaps the team had been filling with custom code, so they aren't waiting on their docs platform to catch up.
  • Anyone can contribute. When leadership or other stakeholders need a quick update, they use Fern Editor, and their edits open a pull request automatically, so the docs-as-code workflow stays intact.
  • Time goes to content. With less time spent on platform upkeep, the team spends more of it on content quality.

How Frame.io replaced hand-maintained snippets with one spec

Frame.io, an Adobe company, shows what drift looks like in practice. Its developer docs lived in an internal system that wasn't synced to the API spec, so code snippets were maintained by hand, and there were no SDKs.

Frame.io launched Fern-powered docs alongside Python and TypeScript SDKs in November 2025. A single OpenAPI spec update now triggers a GitHub Action that publishes both. Engineers fix docs through a pull request, and non-engineers make quick copy fixes in Fern Editor, which cut the time to publish a quick fix from 30 minutes to one minute. Both routes go through the developer platform team for review.

Fern has completely democratized our docs writing process. We're able to act on user feedback almost immediately. Fern follows that whole docs-as-code approach, which I really do think is the best way to build out documentation.

Rosie Cunningham · Developer Relations Engineer at Frame.io

How long your migration will take

A portal with a clean OpenAPI spec and standard components typically converts in two to four weeks. Proprietary widgets, multiple gated audiences, and several API versions each add time, because they're engineering work that bulk conversion can't do. Scope them during the inventory to get an accurate estimate.

For a step-by-step walkthrough, see how to migrate your developer portal to docs as code. On Mintlify instead? See how to migrate from Mintlify to Fern, including how Payabli moved in three weeks.

The repository has to be the source of truth

Every hard part of a docs migration comes back to one question: is your repository the source of truth, or just another copy? On a homegrown portal, the answer is often split. Guides live in one place, the reference is uploaded by hand, and access rules sit in application code. After migrating, all of it lives in one repository, so docs and code are reviewed together, the reference matches the spec, and docs and SDKs come from the same place.

The goal isn't to change how your team works. It's to remove the manual steps that make your docs harder to maintain than they need to be.

Curious what your docs would look like on Fern? Book a demo and we'll generate your portal from your existing OpenAPI spec, along with the SDKs that come with it.

Vera Chan