Skip to content

Commit

Permalink
Merge pull request jashkenas#300 from thriqon/master
Browse files Browse the repository at this point in the history
documenting custom templates and the need for stylesheets
  • Loading branch information
jashkenas committed Oct 1, 2014
2 parents ed6a1b5 + f2ea639 commit 60ce5ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docco.litcoffee
Expand Up @@ -235,7 +235,15 @@ source files for languages for which we have definitions.
config = _.extend {}, defaults, _.pick(options, _.keys(defaults)...)
config.languages = buildMatchers config.languages
The user is able to override the layout file used with the `--template` parameter.
In this case, it is also neccessary to explicitly specify a stylesheet file.
These custom templates are compiled exactly like the predefined ones, but the `public` folder
is only copied for the latter.

if options.template
unless options.css
console.warn "docco: no stylesheet file specified"
config.layout = null
else
dir = config.layout = path.join __dirname, 'resources', config.layout
Expand Down

0 comments on commit 60ce5ac

Please sign in to comment.