Skip to content

Commit

Permalink
Add recipe category (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcassel committed Jul 26, 2017
1 parent 399ec07 commit 9409995
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/search.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ declare function ss:facet-value-display($e as element())
case 'code' return 'Open-source projects'
case 'event' return 'Events'
case 'rest-api' return 'REST API docs'
case 'recipe' return 'Recipe'

case 'function' return 'Function pages'
case 'function/javascript' return 'JavaScript'
Expand Down
1 change: 1 addition & 0 deletions src/model/data-access.xqy
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ as xs:string+
else if (contains($doc-uri, "/javadoc/hadoop/")) then "hadoop"
else if (contains($doc-uri, "/cpp/")) then "cpp"
else if (starts-with($doc-uri, "/ondemand/")) then "mlu"
else if (starts-with($doc-uri, "/recipe/")) then "recipe"
else (
let $doc as node() := if ($new-doc) then $new-doc else doc($doc-uri)
return (
Expand Down

0 comments on commit 9409995

Please sign in to comment.