Skip to content

Commit 9ac5c64

Browse files
committed
removing the silly extension crap -- it's a breaking change
1 parent 4ee17ca commit 9ac5c64

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Cakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ task 'doc', 'rebuild the Docco documentation', (options) ->
2626
layout = options.layout or 'linear'
2727
exec([
2828
"bin/docco --layout #{layout} docco.litcoffee"
29-
"sed \"s/docco.css/resources\\/#{layout}\\/docco.css/\" < docs/docco.litcoffee.html > index.html"
29+
"sed \"s/docco.css/resources\\/#{layout}\\/docco.css/\" < docs/docco.html > index.html"
3030
'rm -r docs'
3131
].join(' && '), (err) ->
3232
throw err if err

docco.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docco.litcoffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ and rendering it to the specified output path.
195195
write = (source, sections, config) ->
196196
197197
destination = (file) ->
198-
path.join(config.output, file + '.html')
198+
path.join(config.output, path.basename(file, path.extname(file)) + '.html')
199199
200200
The **title** of the file is either the first heading in the prose, or the
201201
name of the source file.

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ <h2 id="main-documentation-generation-functions">Main Documentation Generation F
238238
<div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">write</span> = <span class="hljs-params">(source, sections, config)</span> -&gt;</span>
239239

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

243243

244244

0 commit comments

Comments
 (0)