Refactoring Cert Buddy's Documentation Architecture
Moving 38 articles from React to GitHub and Markdown to improve search visibility and unlock agentic content workflows.

Over the Thanksgiving holiday, I spent some time working on Cert Buddy™, an AI-powered certification learning application I've been building since earlier this year. Instead of shipping a major new feature, I focused on something much less glamorous: documentation. I wanted to move the docs out of the codebase and into Markdown on GitHub so I could eventually build agentic content workflows around them, while also figuring out why those pages weren't generating the organic search traffic I'd hoped for. That investigation turned into a fun, surprisingly deep architectural refactor.
How it started
The ironic part is that I spent years at Microsoft leading technical documentation and content systems, including Azure Patterns & Practices. I know firsthand how important scalable content architecture is. Yet when I started building Cert Buddy, I threw all of that out the window and kept the documentation completely app-native just to bootstrap the product and move fast.
At the time, my only priority was getting a working app into people's hands. Cert Buddy was evolving quickly as I experimented with study modes, refined onboarding, and reacted to user feedback. Documentation needed to keep up, and I didn't want the overhead of maintaining a separate platform or CMS.
So I took the fastest path available and built the documentation directly into the React application. All the articles lived inside one massive JSX component right alongside the rendering logic, navigation, and formatting. It worked well for an early-stage product because users could browse topics and switch themes seamlessly without leaving the app. Eventually, though, that single file grew to more than 4,500 lines of code across 38 articles, and the real issues were happening behind the scenes.
The SEO problem I hadn't fully appreciated
Beyond wanting a cleaner foundation for AI workflows, one of my main goals for Cert Buddy is attracting people actively searching for help with Microsoft's AI-901 certification exam. Good documentation doesn't just support existing users. It acts as a primary discovery channel.
When I checked Google Search Console, I noticed several URLs weren't being indexed or were flagged as alternate pages. Digging into what search engines were actually receiving revealed a structural flaw in the client-side rendering setup. When a human opened an article in their browser, React assembled the full experience, while the initial HTML served to crawlers contained a separate, abbreviated version of the text. Even though Google can execute JavaScript, maintaining two different content paths introduced unnecessary inconsistency. For documentation meant to drive organic discovery, I needed a single source of truth delivered reliably to both readers and crawlers.
Separating content from code
I liked Cert Buddy's existing UI and didn't want to redesign it or adopt a third-party docs platform. Instead, I decided to separate the content source from the presentation layer by moving all 38 articles into Markdown files inside a private GitHub repository. GitHub would handle authoring, versioning, and automated workflows, while the existing Replit application would remain responsible for rendering and serving the pages.
To implement the migration with Replit Agent, I set a few strict guardrails. Beyond converting the JSX into Markdown, the new pipeline had to preserve the exact public URLs (so /docs/flashcards stayed /docs/flashcards), maintain the current themes and responsive layout, return genuine HTTP 404s for missing pages, and keep the old renderer available as a rollback option. Most importantly, the server had to deliver the complete article content in the initial HTML response.
I also chose to keep synchronization manual and tied to a specific Git commit rather than fetching live from GitHub on every page load. Now, when I edit and merge a Markdown file in GitHub, I tell Replit to sync that specific commit, verify it in Preview, and publish. Recording the exact Git commit makes deployments reproducible and lets me test documentation updates safely before they hit production.
After running the migration, Replit's validation suite confirmed content parity across all 38 articles, and passing all tests with zero layout or typography regressions. When I tested the workflow end-to-end by pushing an edit to GitHub and syncing the commit in Replit, the update appeared right where expected. Underneath the hood, the architecture was completely transformed, even though the experience looked identical to users.

Four lessons from the refactor
Early shortcuts aren't mistakes, until requirements change. Embedding documentation in React wasn't a bad decision when I was bootstrapping, since it let me ship fast without managing another system. Even with a background in large-scale content architecture, starting simple was the right call for a v1. The key is recognizing when your product's needs have outgrown an early tradeoff.
Content architecture and delivery architecture are different problems. Moving articles into Markdown made the source files cleaner and easier to automate, but Markdown alone doesn't fix SEO. Solving discoverability required fixing the delivery pipeline: serving full content in the initial HTML, enforcing canonical URLs, and returning proper HTTP status codes.
Modernization doesn't require a redesign. By swapping out the content layer underneath the existing UI, I preserved all the design and UX work I'd already invested in Cert Buddy. Sometimes the best engineering work is the kind users never notice.
AI agents thrive with clear boundaries and validation. Replit Agent drastically accelerated the repetitive work of extracting 4,500 lines of JSX and validating 88 URLs. Still, the core architectural choices around URL stability, manual commit pinning, and acceptance criteria required human judgment. Treating the agent as an implementation partner with strict verification checks made it possible to ship a clean refactor over a holiday weekend.
What comes next
Fixing the technical foundation doesn't mean Google will immediately send a wave of traffic. Search performance takes time, and I still have work to do on search intent, content depth, and internal linking.
More exciting, though, is what structured Markdown in GitHub unlocks for agentic workflows. Next, I plan to build an AI agent that reviews the repository against current Cert Buddy features, flags broken links or outdated references, recommends internal links, and opens pull requests for me to review. It connects directly to the work I spent my career doing at Microsoft, helping people find and understand technical information, and gives me a real production environment to test automated content operations.
Not a bad way to spend Thanksgiving weekend.
Cert Buddy is an AI-powered exam preparation platform currently focused on the Microsoft AI-901 certification. Learn more at certbuddy.app.

