Update doc logic and fix links
Add branch versions for docs