docs: Add TOC template logic for ARC docs
am: 99aacfe834

Change-Id: I2831d967cbb2c1c5733ef3b6f235dbe96e75c565