Skip to content

Commit

Permalink
removing the silly extension crap -- it's a breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Feb 3, 2015
1 parent 4ee17ca commit 9ac5c64
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ task 'doc', 'rebuild the Docco documentation', (options) ->
layout = options.layout or 'linear'
exec([
"bin/docco --layout #{layout} docco.litcoffee"
"sed \"s/docco.css/resources\\/#{layout}\\/docco.css/\" < docs/docco.litcoffee.html > index.html"
"sed \"s/docco.css/resources\\/#{layout}\\/docco.css/\" < docs/docco.html > index.html"
'rm -r docs'
].join(' && '), (err) ->
throw err if err
Expand Down
2 changes: 1 addition & 1 deletion docco.js

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

2 changes: 1 addition & 1 deletion docco.litcoffee
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ and rendering it to the specified output path.
write = (source, sections, config) ->
destination = (file) ->
path.join(config.output, file + '.html')
path.join(config.output, path.basename(file, path.extname(file)) + '.html')
The **title** of the file is either the first heading in the prose, or the
name of the source file.
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ <h2 id="main-documentation-generation-functions">Main Documentation Generation F
<div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">write</span> = <span class="hljs-params">(source, sections, config)</span> -&gt;</span>

<span class="hljs-function"><span class="hljs-title">destination</span> = <span class="hljs-params">(file)</span> -&gt;</span>
path.join(config.output, file + <span class="hljs-string">'.html'</span>)</pre></div>
path.join(config.output, path.basename(file, path.extname(file)) + <span class="hljs-string">'.html'</span>)</pre></div>



Expand Down

1 comment on commit 9ac5c64

@juanibiapina
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would love to have this functionality behind a flag, like the original suggestion on #203

Please sign in to comment.