Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow overwriting of default TOC title #67

Open
domdoescode opened this issue Aug 30, 2018 · 1 comment
Open

Allow overwriting of default TOC title #67

domdoescode opened this issue Aug 30, 2018 · 1 comment

Comments

@domdoescode
Copy link

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.

@chchrist
Copy link

chchrist commented Jan 8, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants