adr-tools icon indicating copy to clipboard operation
adr-tools copied to clipboard

Allow overwriting of default TOC title

Open domdoescode opened this issue 7 years ago • 1 comments

Currently the Table of Contents title is hard coded. Being able to change this would be advantageous where others may want the project name instead, especially as this is always before the intro contents.

https://github.com/npryce/adr-tools/blob/master/src/_adr_generate_toc#L47

Overwriting with -t or a similar arg could be used to achieve this.

domdoescode avatar Aug 30 '18 13:08 domdoescode

I think it is better to define a template for the TOCs than just override the title. For example I might not want it as an ordered list. Instead of intro, outro and prefix etc you could just specify a template and pass the variables. If I find some time I will give it a go

chchrist avatar Jan 08 '19 12:01 chchrist