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

Fix broken templates #430

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docco.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docco.litcoffee
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ 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
if config.template
unless config.css
console.warn "docco: no stylesheet file specified"
config.layout = null
else
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ <h2 id="configuration">Configuration</h2>
is only copied for the latter.</p>


<div class='highlight'><pre> <span class="hljs-keyword">if</span> options.template
<span class="hljs-keyword">unless</span> options.css
<div class='highlight'><pre> <span class="hljs-keyword">if</span> config.template
<span class="hljs-keyword">unless</span> config.css
console.warn <span class="hljs-string">&quot;docco: no stylesheet file specified&quot;</span>
config.layout = <span class="hljs-literal">null</span>
<span class="hljs-keyword">else</span>
Expand Down