Check out Versions for docs sites with Jekyll by annegentle. Here is an excerpt:
Versions of software product or a service need documentation sites to match those version numbers. As I investigated and learned more, I found layers of complexity when using a source control system to version the source documents while outputting a nice user experience with a static site…