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

Change-Id: I9418fc551965e1d60bb631f0a31c08f0a7cda7ce