Astro is very popular right now, and rightfully so if you ask me. The framework allows developers to create static websites with great flexibility and power.
The ability to integrate multiple rendering libraries alone helps with adoption when you’re migrating from somewhere else.
And while creating a documentation site is probably trivial at this point, I wanted to cover a problem that I had to solve recently: adding multi-version support for your documentation site.
So let’s get going.
The problem
Building a documentation site is nothing more than building a static site with lots of pages.
Again, trivial if you’re using Astro.
However, what happens if those pages change when the version of your product changes?