Skip to content

Commit abdf162

Browse files
committed
fix build error
1 parent f1a34f6 commit abdf162

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Cakefile

+4-3
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ buildDocs = (watch = no) ->
230230
searchResultsTemplate = _.template(searchResults).source
231231
searchResultsListTemplate = _.template(searchResultsList).source
232232

233-
# Remove markup from content used for search collections
233+
# Remove markup from content used for search collections
234234
clean = (content) ->
235235
content
236236
.replace /<[^>]*>/g, " " # remove HTML tags
@@ -240,15 +240,16 @@ buildDocs = (watch = no) ->
240240
.replace /\t|\n/g, " "
241241
.replace /^\s+/g, " "
242242

243-
# Build search catalogue.
243+
# Build search catalog.
244244
searchCatalogue = (mdDoc, section, data) ->
245245
return unless match = /^(#+?)\s+([^\n]+)\s+([\s\S]+)/.exec mdDoc
246246
[, level, title, body] = match
247247
content = clean body
248248
unless section is "changelog"
249249
content = content.replace /```[^\`]+```/g, ""
250250
weight = level.length
251-
searchCollections.docs.push {section, title, weight, content, data...}
251+
{parent, href} = data
252+
searchCollections.docs.push {section, title, weight, content, parent, href}
252253
else
253254
# Break changelogs into (release) chunks.
254255
releaseLogs = content.split /```\s*releaseHeader\(([^\)]+)\)\s*```/

0 commit comments

Comments
 (0)