am be113f8a: fix broken download buttons, make a[name] offset apply only to reference docs

* commit 'be113f8ac0f5ae00fa997db5f4507af55c523367':
  fix broken download buttons, make a[name] offset apply only to reference docs