Fix docs id links

Makes sure that the ## links in the docs work correctly.