Hey @razonyang
Have you checked out this support guide?
While it is using multiple repositories, you could use the sample principle and deploy each branch to a different site. For instance
doc-v1-site.netlify.app
would use the v1.0
branch as the main/production branch.
doc-v11-site.netlify.app
would use the v1.1
branch as the main/production branch.
doc-v2-site.netlify.app
would use the v2.0
branch as the main/production branch.
Then you use rewrite as explained in the support guide and this documentation to proxy to each from the main site.