Open source all the way down: Upgrading our developer documentation

Overview

The article discusses Cloudflare's approach to upgrading their developer documentation by treating it as an open source product. It highlights the benefits of transparency, community collaboration, and the migration to a new documentation framework powered by Astro.

What You'll Learn

1

How to enhance developer documentation using open source principles

2

Why migrating documentation frameworks can improve user experience

3

How to utilize Astro for building modern documentation sites

Prerequisites & Requirements

  • Understanding of open source documentation practices
  • Familiarity with GitHub for contributing to documentation(optional)

Key Questions Answered

What are the benefits of open source documentation?
Open source documentation empowers the developer community by allowing anyone to contribute, fostering collaboration, learning, and innovation. It also helps build inclusive communities that reduce the learning curve for new users.
How did Cloudflare migrate their documentation to Astro?
Cloudflare migrated their documentation from Hugo to Astro by evaluating platforms, migrating components, and conducting user acceptance testing. The migration involved 8,060 files and took six weeks, resulting in a net reduction of 19,624 lines of code.
What improvements were made in the 2021 documentation engine update?
The 2021 update introduced a custom documentation engine that improved development flow, added custom components, structured changelog management, and enhanced performance, significantly improving the overall content experience.
What challenges did Cloudflare face during the migration?
Cloudflare encountered challenges such as maintaining functionality during the migration and ensuring no downtime for users. They effectively used abstract syntax trees to manage the migration process without a code freeze.

Key Statistics & Figures

Files changed during migration
8,060
This was nearly double the number of files changed during the previous migration from Gatsby to Hugo.
Lines of code removed
-19,624
The migration resulted in a significant reduction in the maintenance burden by removing unnecessary lines of code.
Days spent on migration planning
10
This was part of the total six weeks taken for the entire migration process.

Technologies & Tools

Some links below are affiliate links. We may earn a commission if you make a purchase.

Key Actionable Insights

1
Consider adopting open source principles for your documentation to enhance community engagement and collaboration.
By allowing contributions from users, you can improve the quality and relevance of your documentation, making it more beneficial for the community.
2
Evaluate your documentation framework regularly to ensure it meets the evolving needs of your users.
Migrating to a more suitable framework can lead to significant improvements in user experience and reduce maintenance burdens.
3
Utilize tools like Astro to enhance the development experience of your documentation site.
Astro provides modern features that streamline content management and improve performance, making it easier for contributors to engage.

Common Pitfalls

1
Underestimating the complexity of migrating documentation frameworks can lead to significant challenges.
It's crucial to plan thoroughly and involve community feedback to ensure a smooth transition and avoid downtime.

Related Concepts

Open Source Documentation
Documentation Frameworks
Community Contributions