bundler/bundler-site — pull request #44 by TimMoore (2013-06-10 12:49:10+00:00)
Title: Make latest docs available at the top level.

There are broken links in the wild to top-level pages that were moved into versioned directories.

For example, the Gemfile(5) man page links to http://gembundler.com/rationale.html and the [Capistrano](http://capistranorb.com/) home page links to http://gembundler.com/deploying.html.

This pull request deals with the problem by copying each page from v1.3 into the root directory at build time. It's maybe a bit heavy-handed, but should cope with any links out there and ensures that relative links from one doc page to another still work. Man pages are also copied from v1.3/man to /man.

The index and layout links still go to the versioned pages in v1.3, to encourage people to use versioned links when they copy the URL from the browser. It is kind of nice to have a permalink for the latest version of a particular page, though.

This would also allow the top-level index.haml to be moved into the v1.3 directory (though I haven't done that in this pull request). Right now the other versions have an index page but v1.3 doesn't, so http://gembundler.com/v1.2/ gives you something useful and http://gembundler.com/v1.3/ 404s.