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

Support template customization #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MarkRobertJohnson
Copy link

@MarkRobertJohnson MarkRobertJohnson commented Sep 27, 2017

I wanted the ability to customize and override the default templates without modifying the source code for docgen. This pull request adds the ability for the user to specify a templates folder. The scaffold command will now by default copy the default set of docgen templates to the scaffolded folder. The "run" command will by default look for the "templates" folder in the input folder, if it exists, then those templates are used, else the default set of templates is used.

The "scaffold" command will also copy the "require" folder to the scaffolded folder. This allows the user to customize some of the content in that folder (CSS etc.)

Mark Johnson added 2 commits September 27, 2017 15:35
…ates

* The "scaffold" command will copy the default set of templates to the scaffolded folder, or the user can supply their own source folder
…ommand

The "run" command will first look for the "require" folder in the input folder, inf not found then the default require folder is used
@MarkRobertJohnson MarkRobertJohnson changed the title * Now supports ability for user to supply s path to custom HTML templ… Support template customization Sep 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant