doc: Include const and pure vars, add link anchors.