wingedfox / dgeni-alive

Live docs on top of dgeni documentation generator
MIT License
26 stars 14 forks source link

Override Custom Layout Templates #13

Closed NorthMcCormick closed 8 years ago

NorthMcCormick commented 8 years ago

After having tried all sorts of hacks and ways to override the templates they all failed. I just decided to work an explicit template overriding system in. You can now define directories in grunt that you want to include for the template search and you can now define exact templates (found in processors/website.js) that you want to override.

This makes it easier for people who don’t want to have to clone the repo to maintain their templates and who couldn’t figure out how to actually override the templates.

I also am slightly OCD and updated some quote marks from double to single.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 41.899% when pulling 5a713060482f58f1027ec20af25e9a1c2345a252 on NorthMcCormick:add-templates into bfa7751647aefe27aaea2871ba5179a451ee31b4 on wingedfox:master.

wingedfox commented 8 years ago

Thank you for the PR. There's no need to explicitly override templates, it's enough to add new template folder and add templates with the correct names.

Please take a look at https://github.com/wingedfox/dgeni-alive/wiki/HowTo and tell me if this is enough for your task.

NorthMcCormick commented 8 years ago

Ah yeah that made no sense at all when trying to do it originally. I will give that a shot when I'm working on docs again and let you know how it works. Thanks for updating that page