From add7a0de1451e41d36d402a72a4688493b3f77fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sun, 21 Nov 2021 15:52:41 +0100 Subject: [PATCH] Add translate="no" tags throughout the project We skip translation only on names of modules, types, functions, and code snippets. For example, the subsection inside a module page are still translated. The rationale is that terms like "function" and "macro" appear as is in the text, without code tags, therefore they are translated, so they same should apply to subsections headers. --- .../autocomplete-suggestions.handlebars | 4 +- .../templates/search-results.handlebars | 4 +- .../templates/sidebar-items.handlebars | 10 +- .../templates/tooltip-body.handlebars | 4 +- .../templates/versions-dropdown.handlebars | 2 +- .../html/dist/app-a404e1e870b77c874f9e.js | 2 + ...> app-a404e1e870b77c874f9e.js.LICENSE.txt} | 0 .../html/dist/app-b80d21cdb7d74c374d29.js | 2 - .../epub/templates/module_template.eex | 2 +- lib/ex_doc/formatter/html/templates.ex | 12 +- .../api_reference_entry_template.eex | 2 +- .../html/templates/detail_template.eex | 6 +- .../html/templates/footer_template.eex | 6 +- .../html/templates/module_template.eex | 103 +++++++++--------- .../html/templates/sidebar_template.eex | 6 +- .../html/templates/summary_entry_template.eex | 11 -- .../html/templates/summary_template.eex | 14 ++- test/ex_doc/formatter/epub/templates_test.exs | 2 +- test/ex_doc/formatter/html/templates_test.exs | 22 ++-- test/ex_doc/formatter/html_test.exs | 6 +- 20 files changed, 110 insertions(+), 110 deletions(-) create mode 100644 formatters/html/dist/app-a404e1e870b77c874f9e.js rename formatters/html/dist/{app-b80d21cdb7d74c374d29.js.LICENSE.txt => app-a404e1e870b77c874f9e.js.LICENSE.txt} (100%) delete mode 100644 formatters/html/dist/app-b80d21cdb7d74c374d29.js delete mode 100644 lib/ex_doc/formatter/html/templates/summary_entry_template.eex diff --git a/assets/js/handlebars/templates/autocomplete-suggestions.handlebars b/assets/js/handlebars/templates/autocomplete-suggestions.handlebars index 78d9aeb14..46bc84c8e 100644 --- a/assets/js/handlebars/templates/autocomplete-suggestions.handlebars +++ b/assets/js/handlebars/templates/autocomplete-suggestions.handlebars @@ -6,14 +6,14 @@ {{#each suggestions}}
- {{{title}}} + {{{title}}} {{#if label}} ({{label}}) {{/if}}
{{#if description}} -
+
{{{description}}}
{{/if}} diff --git a/assets/js/handlebars/templates/search-results.handlebars b/assets/js/handlebars/templates/search-results.handlebars index 8c028bb90..18cedf0ef 100644 --- a/assets/js/handlebars/templates/search-results.handlebars +++ b/assets/js/handlebars/templates/search-results.handlebars @@ -8,7 +8,9 @@ {{#each results}}

- {{this.title}} ({{this.type}}) + + {{this.title}} ({{this.type}}) +

{{#each excerpts}}

{{{this}}}

diff --git a/assets/js/handlebars/templates/sidebar-items.handlebars b/assets/js/handlebars/templates/sidebar-items.handlebars index 24f99735c..20a154f58 100644 --- a/assets/js/handlebars/templates/sidebar-items.handlebars +++ b/assets/js/handlebars/templates/sidebar-items.handlebars @@ -1,17 +1,19 @@ {{#each nodes as |node nodeId|}} {{#groupChanged ../this node.group}} -
  • {{node.group}}
  • +
  • + {{node.group}} +
  • {{/groupChanged}} {{#nestingChanged ../this node}} - + {{/nestingChanged}}
  • {{! When visiting a module page, the link to this module page in the menu should not link to a new page, instead should link to the top of the page itself. }} - + {{#if node.nested_title}} {{{node.nested_title}}} {{else}} @@ -62,7 +64,7 @@ diff --git a/assets/js/handlebars/templates/tooltip-body.handlebars b/assets/js/handlebars/templates/tooltip-body.handlebars index 5aa455913..9ee40d1ca 100644 --- a/assets/js/handlebars/templates/tooltip-body.handlebars +++ b/assets/js/handlebars/templates/tooltip-body.handlebars @@ -5,8 +5,8 @@ {{else}}

    - {{this.hint.title}} -
    {{this.hint.version}}
    + {{this.hint.title}} +
    {{this.hint.version}}

    {{#if this.hint.description}} diff --git a/assets/js/handlebars/templates/versions-dropdown.handlebars b/assets/js/handlebars/templates/versions-dropdown.handlebars index eb0d6ad04..27e6bc58e 100644 --- a/assets/js/handlebars/templates/versions-dropdown.handlebars +++ b/assets/js/handlebars/templates/versions-dropdown.handlebars @@ -1,7 +1,7 @@
    \n'+(null!=(i=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"nodes"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:4},end:{line:7,column:13}}}))?i:"")+" \n
    \n"},useData:!0})},function(e,t,n){var r=n(1);function o(e){return e&&(e.__esModule?e.default:e)}e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"

    Search results for "+e.escapeExpression(e.lambda(null!=t?i(t,"value"):t,t))+"

    \n"},3:function(e,t,n,r,o){return"

    Invalid Search

    \n"},5:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"results"):t,{name:"each",hash:{},fn:e.program(6,o,0),inverse:e.noop,data:o,loc:{start:{line:8,column:2},end:{line:19,column:11}}}))?i:""},6:function(e,t,n,r,o){var i,a=e.lambda,l=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n

    \n \n '+l(a(null!=t?s(t,"title"):t,t))+" ("+l(a(null!=t?s(t,"type"):t,t))+")\n \n

    \n"+(null!=(i=s(n,"each").call(null!=t?t:e.nullContext||{},null!=t?s(t,"excerpts"):t,{name:"each",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:15,column:8},end:{line:17,column:17}}}))?i:"")+"
    \n"},7:function(e,t,n,r,o){var i;return'

    '+(null!=(i=e.lambda(t,t))?i:"")+"

    \n"},9:function(e,t,r,i,a){var l,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(l=o(n(6)).call(null!=t?t:e.nullContext||{},null!=t?s(t,"results"):t,{name:"isArray",hash:{},fn:e.program(10,a,0),inverse:e.program(12,a,0),data:a,loc:{start:{line:21,column:2},end:{line:27,column:14}}}))?l:"")+"\n

    The search functionality is full-text based. Here are some tips:

    \n\n
      \n
    • Multiple words (such as foo bar) are searched as OR
    • \n
    • Use * anywhere (such as fo*) as wildcard
    • \n
    • Use + before a word (such as +foo) to make its presence required
    • \n
    • Use - before a word (such as -foo) to make its absence required
    • \n
    • Use WORD^NUMBER (such as foo^2) to boost the given word
    • \n
    • Use WORD~NUMBER (such as foo~2) to do a search with edit distance on word
    • \n
    \n\n

    To quickly go to a module, type, or function, use the autocompletion feature in the sidebar search.

    \n"},10:function(e,t,n,r,o){var i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"

    Sorry, we couldn't find anything for "+e.escapeExpression(e.lambda(null!=t?i(t,"value"):t,t))+".

    \n"},12:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"value"):t,{name:"if",hash:{},fn:e.program(13,o,0),inverse:e.program(15,o,0),data:o,loc:{start:{line:23,column:2},end:{line:27,column:2}}}))?i:""},13:function(e,t,n,r,o){var i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"

    Invalid search: "+e.escapeExpression(e.lambda(null!=t?i(t,"errorMessage"):t,t))+".

    \n"},15:function(e,t,n,r,o){return"

    Please type something into the search bar to perform a search.

    \n "},compiler:[8,">= 4.3.0"],main:function(e,t,r,i,a){var l,s=null!=t?t:e.nullContext||{},u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(l=u(r,"if").call(s,null!=t?u(t,"value"):t,{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?l:"")+"\n"+(null!=(l=o(n(47)).call(s,null!=t?u(t,"results"):t,{name:"isNonEmptyArray",hash:{},fn:e.program(5,a,0),inverse:e.program(9,a,0),data:a,loc:{start:{line:7,column:0},end:{line:41,column:20}}}))?l:"")},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'\n'},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"description"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:4},end:{line:16,column:11}}}))?i:""},2:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    \n'+(null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"displayAs"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.program(5,o,0),data:o,loc:{start:{line:6,column:10},end:{line:10,column:17}}}))?i:"")+'
    \n
    \n '+e.escapeExpression(e.lambda(null!=t?a(t,"description"):t,t))+"\n
    \n
    \n"},3:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+(null!=(i=e.lambda(null!=t?a(t,"displayAs"):t,t))?i:"")+"\n"},5:function(e,t,n,r,o){var i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+e.escapeExpression(e.lambda(null!=t?i(t,"key"):t,t))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n'+(null!=(i=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"shortcuts"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:2},end:{line:17,column:11}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'
    \n \n \n
    \n
    \n'},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+s("function"==typeof(i=null!=(i=u(n,"name")||(null!=t?u(t,"name"):t))?i:l)?i.call(a,{name:"name",hash:{},data:o,loc:{start:{line:3,column:4},end:{line:3,column:12}}}):i)+"\n
    \n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"results"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:5,column:9}}}))?i:""},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+e.escapeExpression(e.lambda(null!=(i=null!=t?a(t,"hint"):t)?a(i,"description"):i,t))+"\n
    \n"},3:function(e,t,n,r,o){var i,a=e.lambda,l=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n

    \n '+l(a(null!=(i=null!=t?s(t,"hint"):t)?s(i,"title"):i,t))+'\n
    '+l(a(null!=(i=null!=t?s(t,"hint"):t)?s(i,"version"):i,t))+"
    \n

    \n
    \n"+(null!=(i=s(n,"if").call(null!=t?t:e.nullContext||{},null!=(i=null!=t?s(t,"hint"):t)?s(i,"description"):i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:12,column:2},end:{line:16,column:9}}}))?i:"")},4:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+e.escapeExpression(e.lambda(null!=(i=null!=t?a(t,"hint"):t)?a(i,"description"):i,t))+"\n
    \n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"isPlain"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o,loc:{start:{line:1,column:0},end:{line:17,column:7}}}))?i:""},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'
    \n
    \n
    \n'},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'
    \n \n \n \n \n
    \n'},useData:!0})},,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var i=o(n(8)),a=r(n(39)),l=r(n(3)),s=o(n(2)),u=o(n(40)),c=r(n(42));function d(){var e=new i.HandlebarsEnvironment;return s.extend(e,i),e.SafeString=a.default,e.Exception=l.default,e.Utils=s,e.escapeExpression=s.escapeExpression,e.VM=u,e.template=function(t){return u.template(t,e)},e}var f=d();f.create=d,c.default(f),f.default=f,t.default=f,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(2);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var o=n.inverse,i=n.fn;if(!0===t)return i(this);if(!1===t||null==t)return o(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):o(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return i(t,n)}))},e.exports=t.default},function(e,t,n){"use strict";(function(r){t.__esModule=!0;var o,i=n(2),a=n(3),l=(o=a)&&o.__esModule?o:{default:o};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new l.default("Must pass iterator to #each");var n,o=t.fn,a=t.inverse,s=0,u="",c=void 0,d=void 0;function f(t,n,r){c&&(c.key=t,c.index=n,c.first=0===n,c.last=!!r,d&&(c.contextPath=d+t)),u+=o(e[t],{data:c,blockParams:i.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(c=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var p=e.length;s=l.LAST_COMPATIBLE_COMPILER_REVISION&&t<=l.COMPILER_REVISION)return;if(t0)return t.fn(this)}},function(e,t,n){"use strict";n.r(t),t.default=function(e,t){if(e.nodeGroups)return t.fn(this)}},function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return Array.isArray(e)&&e.length>0?t.fn(this):t.inverse(this)}},,,function(e,t,n){"use strict";n.r(t);var r=n(0);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"+Object(r.c)(d)+""+e(f,n)}return e(t,a)}(e,ie(t).sort((function(e,t){return t.length-e.length})))}var le={autocompleteSuggestions:[],selectedIdx:-1};function se(){Object(r.l)(".autocomplete").classList.remove("shown")}function ue(e){var t,n,o,i;le.autocompleteSuggestions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(Object(r.j)(e))return[];var n=C(),o=[].concat($(Z(n.modules,e,J)),$(X(n.modules,e,K)),$(Z(n.tasks,e,Y)));return ee(o).slice(0,t)}(e),le.selectedIdx=-1,Object(r.j)(e)?se():(t={term:e,suggestions:le.autocompleteSuggestions},n=t.term,o=t.suggestions,i=V()({suggestions:o,term:n}),Object(r.l)(".autocomplete").innerHTML=i,ce(0),Object(r.l)(".autocomplete").classList.add("shown"))}function ce(e){le.selectedIdx=function(e){var t=le.autocompleteSuggestions.length+1;return(le.selectedIdx+e+1+t)%t-1}(e);var t=Object(r.l)("".concat(".autocomplete-suggestion",".selected")),n=Object(r.l)("".concat(".autocomplete-suggestion",'[data-index="').concat(le.selectedIdx,'"]'));t&&t.classList.remove("selected"),n&&n.classList.add("selected")}function de(){var e;(e=Object(r.l)("form.sidebar-search input")).addEventListener("keydown",(function(t){"Escape"===t.key?(fe(),e.blur()):"Enter"===t.key?function(e){var t=Object(r.l)("form.sidebar-search input"),n=e.shiftKey||e.ctrlKey,o=-1===le.selectedIdx?null:le.autocompleteSuggestions[le.selectedIdx];e.preventDefault();var i=n?"_blank":"_self",a=document.createElement("a");a.setAttribute("target",i),o?a.setAttribute("href",o.link):a.setAttribute("href","search.html?q=".concat(encodeURIComponent(t.value))),a.click(),n||(fe(),pe())}(t):"ArrowUp"===t.key?(ce(-1),t.preventDefault()):"ArrowDown"===t.key&&(ce(1),t.preventDefault())})),e.addEventListener("input",(function(e){ue(e.target.value)})),e.addEventListener("focus",(function(e){document.body.classList.add("search-focused"),ue(e.target.value)})),e.addEventListener("blur",(function(t){var n=t.relatedTarget;if(n){if(n.matches(".autocomplete-suggestion"))return setTimeout((function(){Object(r.l)(".autocomplete").classList.contains("shown")&&e.focus()}),1e3),null;n.matches("form.sidebar-search .search-close-button")&&fe()}pe()})),Object(r.l)(".autocomplete").addEventListener("click",(function(t){t.shiftKey||t.ctrlKey?e.focus():(fe(),pe())}))}function fe(){Object(r.l)("form.sidebar-search input").value=""}function pe(){document.body.classList.remove("search-focused"),se()}var he=n(16),me=n.n(he);function ye(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ve(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&function(e){var t=e.nodes,n=Object(r.l)(".sidebar-projectVersion"),o=me()({nodes:t});n.innerHTML=o,Object(r.l)(".sidebar-projectVersionsDropdown").addEventListener("change",xe)}({nodes:function(e,t){return function(e,t){return e.some((function(e){return e.version===t}))?e:[{version:t,url:"#"}].concat(ye(e))}(e,t).map((function(e){return function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?[].concat(_e(t),[e]):t}ke.a.Pipeline.registerFunction(t,"elixirTokenSplitter"),e.pipeline.before(ke.a.stemmer,t)}function De(e){return searchNodes.find((function(t){return t.ref===e}))||null}function Ne(e,t){var n=e.doc,o=Object.keys(t).filter((function(e){return"doc"in t[e]})).map((function(e){return t[e].doc.position.map((function(e){var t=Se(e,2),o=t[0],i=t[1];return function(e,t,n){var o=Math.max(t-80,0),i=Math.min(t+n+80,e.length);return[o>0?"...":"",e.slice(o,t),""+Object(r.c)(e.slice(t,t+n))+"",e.slice(t+n,i),i=3&&(n={results:Xe.autocompleteResults},o=n.results,i=Object(r.l)("#quick-switch-results"),a=Ye()({results:o}),i.innerHTML=a,Object(r.m)(".quick-switch-result").forEach((function(e){e.addEventListener("click",(function(t){var n=e.getAttribute("data-index");ot(Xe.autocompleteResults[n].name)}))}))))}))}),300);function at(e){Xe.selectedIdx=function(e){var t=Xe.autocompleteResults.length;if(null===Xe.selectedIdx){if(e>=0)return 0;if(e<0)return t-1}return(Xe.selectedIdx+e+t)%t}(e);var t=Object(r.l)(".quick-switch-result.selected"),n=Object(r.l)('.quick-switch-result[data-index="'.concat(Xe.selectedIdx,'"]'));t&&t.classList.remove("selected"),n&&n.classList.add("selected")}var lt=[{key:"c",description:"Toggle sidebar",action:E},{key:"n",description:"Toggle night mode",action:function(){var e=u.get();u.update({nightMode:!e.nightMode})}},{key:"s",description:"Focus search bar",displayAs:"/ or s",action:ft},{key:"/",action:ft},{key:"g",description:"Go to a HexDocs package",displayAs:"g",action:rt},{key:"?",displayAs:"?",description:"Bring up this help dialog",action:function(){Object(r.l)("#modal").classList.contains("shown")&&Object(r.l)("#keyboard-shortcuts-modal-body")?$e():pt()}}],st={shortcutBeingPressed:null};function ut(){Object(r.l)(".display-shortcuts-help").addEventListener("click",(function(e){pt()})),document.addEventListener("keydown",ct),document.addEventListener("keyup",dt)}function ct(e){if(!st.shortcutBeingPressed&&!e.target.matches("input, textarea")&&!(e.ctrlKey||e.metaKey||e.altKey)){var t=lt.find((function(t){return t.key===e.key}));t&&(st.shortcutBeingPressed=t,e.preventDefault(),t.action(e))}}function dt(e){st.shortcutBeingPressed=null}function ft(e){$e(),_().then((function(){Object(r.l)("form.sidebar-search input").focus()}))}function pt(){Ue({title:"Keyboard Shortcuts",body:ze()({shortcuts:lt})})}var ht=n(22),mt=n.n(ht),yt=n(23),vt=n.n(yt),gt="plain",bt="function",wt="module",xt=[{href:"typespecs.html#basic-types",hint:{kind:gt,description:"Basic type"}},{href:"typespecs.html#literals",hint:{kind:gt,description:"Literal"}},{href:"typespecs.html#built-in-types",hint:{kind:gt,description:"Built-in type"}}],Ot={cancelHintFetching:null};function kt(e){var t=Pt(e);return t?Promise.resolve(t):function(e){var t=e.replace(".html",".html?hint=true");return new Promise((function(e,n){var r=document.createElement("iframe");function o(n){var r=n.data,o=r.href,a=r.hint;t===o&&(i(),e(a))}function i(){r.remove(),window.removeEventListener("message",o),Ot.cancelHintFetching=null}r.setAttribute("sandbox","allow-scripts allow-same-origin"),r.setAttribute("src",t),r.style.display="none",Ot.cancelHintFetching=function(){i(),n(new Error("cancelled"))},window.addEventListener("message",o),document.body.appendChild(r)}))}(e)}function Pt(e){var t=xt.find((function(t){return e.includes(t.href)}));return t?t.hint:null}var jt=450,St=768,Et={currentLinkElement:null,hoverDelayTimeout:null};function Lt(){var e;e=vt()(),Object(r.l)("body .content-inner").insertAdjacentHTML("beforeend",e),Object(r.m)(".content a").forEach((function(e){var t,n,o;!(t=e).classList.contains("detail-link")&&(n=t.href,o=n.replace("#content",""),window.location.href.split("#")[0]!==o&&function(e){return!!Pt(e)||!(e.includes("#")&&!/#.*\//.test(e))&&e.includes(".html")}(t.href))&&(e.addEventListener("mouseenter",(function(t){!function(e){var t;(t=window.innerWidth p"),a=i?i.textContent:"",{kind:bt,title:o.trim(),description:a.trim()}));if(["modules","tasks"].includes(Object(r.f)()))return Qt(function(e){for(var t=e.querySelector("h1");t.firstElementChild;)t.removeChild(t.firstElementChild);var n=t.textContent,r=e.querySelector("#moduledoc p"),o=r?r.textContent:"";return{kind:wt,title:n.trim(),description:o.trim()}}(t));var n,o,i,a;return null}();e&&function(e){var t=window.location.href,n={hint:e,href:t};window.parent.postMessage(n,"*")}(e)}}function Qt(e){return function(e){for(var t=1;t')})),Array.from(Object(r.m)(".copy-button")).forEach((function(e){return e.addEventListener("click",(function(){navigator.clipboard.writeText(e.parentElement.querySelector("code").textContent),e.classList.add("clicked"),setTimeout((function(){return e.classList.remove("clicked")}),3e3)}))})))}var Mt=n(24),Rt=n.n(Mt);function Dt(){Object(r.l)(".display-settings").addEventListener("click",(function(e){!function(){Ue({title:"Settings",body:Rt()({})});var e=Object(r.l)("#settings-modal-content"),t=e.querySelector('[name="night_mode"]'),n=e.querySelector('[name="tooltips"]'),o=e.querySelector('[name="direct_livebook_url"]'),i=e.querySelector('[name="livebook_url"]');u.getAndSubscribe((function(e){t.checked=Fe(e),n.checked=e.tooltips,null===e.livebookUrl?(o.checked=!1,i.classList.add("hidden")):(o.checked=!0,i.classList.remove("hidden"),i.value=e.livebookUrl)})),t.addEventListener("change",(function(e){u.update({nightMode:e.target.checked})})),n.addEventListener("change",(function(e){u.update({tooltips:e.target.checked})})),o.addEventListener("change",(function(e){var t=e.target.checked?i.value:null;u.update({livebookUrl:t})})),i.addEventListener("input",(function(e){u.update({livebookUrl:e.target.value})}))}()}))}Object(r.k)((function(){u.getAndSubscribe((function(e){document.body.classList.toggle("night-mode",Fe(e))})),k(),R(),de(),we(),f(),Object(He.a)(),Be(),ut(),et(),Lt(),At(),Ae(),Ct(),Dt()}))}]); \ No newline at end of file diff --git a/formatters/html/dist/app-b80d21cdb7d74c374d29.js.LICENSE.txt b/formatters/html/dist/app-a404e1e870b77c874f9e.js.LICENSE.txt similarity index 100% rename from formatters/html/dist/app-b80d21cdb7d74c374d29.js.LICENSE.txt rename to formatters/html/dist/app-a404e1e870b77c874f9e.js.LICENSE.txt diff --git a/formatters/html/dist/app-b80d21cdb7d74c374d29.js b/formatters/html/dist/app-b80d21cdb7d74c374d29.js deleted file mode 100644 index 65ff39039..000000000 --- a/formatters/html/dist/app-b80d21cdb7d74c374d29.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see app-b80d21cdb7d74c374d29.js.LICENSE.txt */ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=50)}([function(e,t,n){"use strict";function r(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,a=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n/g,">").replace(/"/g,""")}function u(){return document.body.dataset.type}function c(e,t){if(e){var n,o=r(e);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=i.nodeGroups&&i.nodeGroups.find((function(e){return e.nodes.some((function(e){return e.anchor===t}))}));if(a)return a.key}}catch(e){o.e(e)}finally{o.f()}return null}}function d(){return window.location.hash.replace(/^#/,"")}function f(e){return new URLSearchParams(window.location.search).get(e)}function p(e){return fetch(e).then((function(e){return e.ok})).catch((function(){return!1}))}function h(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function m(e){return!e||""===e.trim()}function y(e,t){var n;return function(){for(var r=arguments.length,o=new Array(r),i=0;i":">",'"':""","'":"'","`":"`","=":"="},o=/[&<>"'`=]/g,i=/[&<>"'`=]/;function a(e){return r[e]}function l(e){for(var t=1;t0){var s=T.utils.clone(t)||{};s.position=[a,l],s.index=o.length,o.push(new T.Token(n.slice(a,i),s))}a=i+1}}return o},T.tokenizer.separator=/[\s\-]+/,T.Pipeline=function(){this._stack=[]},T.Pipeline.registeredFunctions=Object.create(null),T.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&T.utils.warn("Overwriting existing registered function: "+t),e.label=t,T.Pipeline.registeredFunctions[e.label]=e},T.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||T.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},T.Pipeline.load=function(e){var t=new T.Pipeline;return e.forEach((function(e){var n=T.Pipeline.registeredFunctions[e];if(!n)throw new Error("Cannot load unregistered function: "+e);t.add(n)})),t},T.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach((function(e){T.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},T.Pipeline.prototype.after=function(e,t){T.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,t)},T.Pipeline.prototype.before=function(e,t){T.Pipeline.warnIfFunctionNotRegistered(t);var n=this._stack.indexOf(e);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,t)},T.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},T.Pipeline.prototype.run=function(e){for(var t=this._stack.length,n=0;n1&&(ie&&(n=o),i!=e);)r=n-t,o=t+Math.floor(r/2),i=this.elements[2*o];return i==e||i>e?2*o:il?u+=2:a==l&&(t+=n[s+1]*r[u+1],s+=2,u+=2);return t},T.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},T.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,n=0;t0){var i,a=o.str.charAt(0);a in o.node.edges?i=o.node.edges[a]:(i=new T.TokenSet,o.node.edges[a]=i),1==o.str.length&&(i.final=!0),r.push({node:i,editsRemaining:o.editsRemaining,str:o.str.slice(1)})}if(0!=o.editsRemaining){if("*"in o.node.edges)var l=o.node.edges["*"];else{l=new T.TokenSet;o.node.edges["*"]=l}if(0==o.str.length&&(l.final=!0),r.push({node:l,editsRemaining:o.editsRemaining-1,str:o.str}),o.str.length>1&&r.push({node:o.node,editsRemaining:o.editsRemaining-1,str:o.str.slice(1)}),1==o.str.length&&(o.node.final=!0),o.str.length>=1){if("*"in o.node.edges)var s=o.node.edges["*"];else{s=new T.TokenSet;o.node.edges["*"]=s}1==o.str.length&&(s.final=!0),r.push({node:s,editsRemaining:o.editsRemaining-1,str:o.str.slice(1)})}if(o.str.length>1){var u,c=o.str.charAt(0),d=o.str.charAt(1);d in o.node.edges?u=o.node.edges[d]:(u=new T.TokenSet,o.node.edges[d]=u),1==o.str.length&&(u.final=!0),r.push({node:u,editsRemaining:o.editsRemaining-1,str:c+o.str.slice(2)})}}}return n},T.TokenSet.fromString=function(e){for(var t=new T.TokenSet,n=t,r=0,o=e.length;r=e;t--){var n=this.uncheckedNodes[t],r=n.child.toString();r in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[r]:(n.child._str=r,this.minimizedNodes[r]=n.child),this.uncheckedNodes.pop()}},T.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},T.Index.prototype.search=function(e){return this.query((function(t){new T.QueryParser(e,t).parse()}))},T.Index.prototype.query=function(e){for(var t=new T.Query(this.fields),n=Object.create(null),r=Object.create(null),o=Object.create(null),i=Object.create(null),a=Object.create(null),l=0;l1?1:e},T.Builder.prototype.k1=function(e){this._k1=e},T.Builder.prototype.add=function(e,t){var n=e[this._ref],r=Object.keys(this._fields);this._documents[n]=t||{},this.documentCount+=1;for(var o=0;o=this.length)return T.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},T.QueryLexer.prototype.width=function(){return this.pos-this.start},T.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},T.QueryLexer.prototype.backup=function(){this.pos-=1},T.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=T.QueryLexer.EOS&&this.backup()},T.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(T.QueryLexer.TERM)),e.ignore(),e.more())return T.QueryLexer.lexText},T.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(T.QueryLexer.EDIT_DISTANCE),T.QueryLexer.lexText},T.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(T.QueryLexer.BOOST),T.QueryLexer.lexText},T.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(T.QueryLexer.TERM)},T.QueryLexer.termSeparator=T.tokenizer.separator,T.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==T.QueryLexer.EOS)return T.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return T.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(T.QueryLexer.TERM),T.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(T.QueryLexer.TERM),T.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(T.QueryLexer.PRESENCE),T.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(T.QueryLexer.PRESENCE),T.QueryLexer.lexText;if(t.match(T.QueryLexer.termSeparator))return T.QueryLexer.lexTerm}else e.escapeCharacter()}},T.QueryParser=function(e,t){this.lexer=new T.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},T.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=T.QueryParser.parseClause;e;)e=e(this);return this.query},T.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},T.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},T.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},T.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case T.QueryLexer.PRESENCE:return T.QueryParser.parsePresence;case T.QueryLexer.FIELD:return T.QueryParser.parseField;case T.QueryLexer.TERM:return T.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(n+=" with value '"+t.str+"'"),new T.QueryParseError(n,t.start,t.end)}},T.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=T.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=T.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+t.str+"'";throw new T.QueryParseError(n,t.start,t.end)}var r=e.peekLexeme();if(null==r){n="expecting term or field, found nothing";throw new T.QueryParseError(n,t.start,t.end)}switch(r.type){case T.QueryLexer.FIELD:return T.QueryParser.parseField;case T.QueryLexer.TERM:return T.QueryParser.parseTerm;default:n="expecting term or field, found '"+r.type+"'";throw new T.QueryParseError(n,r.start,r.end)}}},T.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var n=e.query.allFields.map((function(e){return"'"+e+"'"})).join(", "),r="unrecognised field '"+t.str+"', possible fields: "+n;throw new T.QueryParseError(r,t.start,t.end)}e.currentClause.fields=[t.str];var o=e.peekLexeme();if(null==o){r="expecting term, found nothing";throw new T.QueryParseError(r,t.start,t.end)}switch(o.type){case T.QueryLexer.TERM:return T.QueryParser.parseTerm;default:r="expecting term, found '"+o.type+"'";throw new T.QueryParseError(r,o.start,o.end)}}},T.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(null!=n)switch(n.type){case T.QueryLexer.TERM:return e.nextClause(),T.QueryParser.parseTerm;case T.QueryLexer.FIELD:return e.nextClause(),T.QueryParser.parseField;case T.QueryLexer.EDIT_DISTANCE:return T.QueryParser.parseEditDistance;case T.QueryLexer.BOOST:return T.QueryParser.parseBoost;case T.QueryLexer.PRESENCE:return e.nextClause(),T.QueryParser.parsePresence;default:var r="Unexpected lexeme type '"+n.type+"'";throw new T.QueryParseError(r,n.start,n.end)}else e.nextClause()}},T.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="edit distance must be numeric";throw new T.QueryParseError(r,t.start,t.end)}e.currentClause.editDistance=n;var o=e.peekLexeme();if(null!=o)switch(o.type){case T.QueryLexer.TERM:return e.nextClause(),T.QueryParser.parseTerm;case T.QueryLexer.FIELD:return e.nextClause(),T.QueryParser.parseField;case T.QueryLexer.EDIT_DISTANCE:return T.QueryParser.parseEditDistance;case T.QueryLexer.BOOST:return T.QueryParser.parseBoost;case T.QueryLexer.PRESENCE:return e.nextClause(),T.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+o.type+"'";throw new T.QueryParseError(r,o.start,o.end)}else e.nextClause()}},T.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var n=parseInt(t.str,10);if(isNaN(n)){var r="boost must be numeric";throw new T.QueryParseError(r,t.start,t.end)}e.currentClause.boost=n;var o=e.peekLexeme();if(null!=o)switch(o.type){case T.QueryLexer.TERM:return e.nextClause(),T.QueryParser.parseTerm;case T.QueryLexer.FIELD:return e.nextClause(),T.QueryParser.parseField;case T.QueryLexer.EDIT_DISTANCE:return T.QueryParser.parseEditDistance;case T.QueryLexer.BOOST:return T.QueryParser.parseBoost;case T.QueryLexer.PRESENCE:return e.nextClause(),T.QueryParser.parsePresence;default:r="Unexpected lexeme type '"+o.type+"'";throw new T.QueryParseError(r,o.start,o.end)}else e.nextClause()}},void 0===(o="function"==typeof(r=function(){return T})?r.call(t,n,t,e):r)||(e.exports=o)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(){Object(r.m)("[data-group-id]").forEach((function(e){var t=e.getAttribute("data-group-id");e.addEventListener("mouseenter",(function(e){i(t,!0)})),e.addEventListener("mouseleave",(function(e){i(t,!1)}))}))}function i(e,t){Object(r.m)('[data-group-id="'.concat(e,'"]')).forEach((function(e){e.classList.toggle("hll",t)}))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.HandlebarsEnvironment=c;var o=n(2),i=r(n(3)),a=n(8),l=n(36),s=r(n(9)),u=n(10);t.VERSION="4.7.6";t.COMPILER_REVISION=8;t.LAST_COMPATIBLE_COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function c(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},a.registerDefaultHelpers(this),l.registerDefaultDecorators(this)}c.prototype={constructor:c,logger:s.default,log:s.default.log,registerHelper:function(e,t){if("[object Object]"===o.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple helpers");o.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===o.toString.call(e))o.extend(this.partials,e);else{if(void 0===t)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===o.toString.call(e)){if(t)throw new i.default("Arg not supported with multiple decorators");o.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){u.resetLoggedProperties()}};var d=s.default.log;t.log=d,t.createFrame=o.createFrame,t.logger=s.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.registerDefaultHelpers=function(e){o.default(e),i.default(e),a.default(e),l.default(e),s.default(e),u.default(e),c.default(e)},t.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])};var o=r(n(29)),i=r(n(30)),a=r(n(31)),l=r(n(32)),s=r(n(33)),u=r(n(34)),c=r(n(35))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(2),o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(o.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=o.lookupLevel(e),"undefined"!=typeof console&&o.lookupLevel(o.level)<=e){var t=o.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i=t||n<0||h&&e-u>=i}function x(){var e=p();if(w(e))return O(e);l=setTimeout(x,function(e){var n=t-(e-s);return h?f(n,i-(e-u)):n}(e))}function O(e){return l=void 0,v&&r?g(e):(r=o=void 0,a)}function k(){var e=p(),n=w(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return b(s);if(h)return l=setTimeout(x,t),g(s)}return void 0===l&&(l=setTimeout(x,t)),a}return t=y(t)||0,m(n)&&(c=!!n.leading,i=(h="maxWait"in n)?d(y(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==l&&clearTimeout(l),u=0,r=s=o=l=void 0},k.flush=function(){return void 0===l?a:O(p())},k}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var l=o.test(e);return l||i.test(e)?a(e.slice(2),l?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return m(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),h(e,t,{leading:r,maxWait:t,trailing:o})}}).call(this,n(6))},function(e,t,n){var r=n(1);function o(e){return e&&(e.__esModule?e.default:e)}e.exports=(r.default||r).template({1:function(e,t,r,i,a,l,s){var u,c=null!=t?t:e.nullContext||{},d=e.lambda,f=e.escapeExpression,p=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(u=o(n(43)).call(c,s[1],null!=(u=l[0][0])?p(u,"group"):u,{name:"groupChanged",hash:{},fn:e.program(2,a,0,l,s),inverse:e.noop,data:a,blockParams:l,loc:{start:{line:2,column:2},end:{line:4,column:19}}}))?u:"")+"\n"+(null!=(u=o(n(44)).call(c,s[1],l[0][0],{name:"nestingChanged",hash:{},fn:e.program(4,a,0,l,s),inverse:e.noop,data:a,blockParams:l,loc:{start:{line:6,column:2},end:{line:8,column:21}}}))?u:"")+'\n
  • \n \n'+(null!=(u=p(r,"if").call(c,null!=(u=l[0][0])?p(u,"nested_title"):u,{name:"if",hash:{},fn:e.program(10,a,0,l,s),inverse:e.program(12,a,0,l,s),data:a,blockParams:l,loc:{start:{line:15,column:6},end:{line:19,column:13}}}))?u:"")+'\n \n \n\n
      \n
    • \n Top\n
    • \n\n'+(null!=(u=o(n(12)).call(c,null!=(u=l[0][0])?p(u,"headers"):u,{name:"isArray",hash:{},fn:e.program(14,a,0,l,s),inverse:e.program(17,a,0,l,s),data:a,blockParams:l,loc:{start:{line:29,column:6},end:{line:71,column:18}}}))?u:"")+"
    \n
  • \n"},2:function(e,t,n,r,o,i){var a,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
  • '+e.escapeExpression(e.lambda(null!=(a=i[1][0])?l(a,"group"):a,t))+"
  • \n"},4:function(e,t,n,r,o,i){var a,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' \n"},6:function(e,t,n,r,o){return"current-page open"},8:function(e,t,n,r,o){return"nested"},10:function(e,t,n,r,o,i){var a,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+(null!=(a=e.lambda(null!=(a=i[1][0])?l(a,"nested_title"):a,t))?a:"")+"\n"},12:function(e,t,n,r,o,i){var a,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+(null!=(a=e.lambda(null!=(a=i[1][0])?l(a,"title"):a,t))?a:"")+"\n"},14:function(e,t,n,r,o,i){var a,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(a=l(n,"each").call(null!=t?t:e.nullContext||{},null!=(a=i[1][0])?l(a,"headers"):a,{name:"each",hash:{},fn:e.program(15,o,0,i),inverse:e.noop,data:o,blockParams:i,loc:{start:{line:30,column:8},end:{line:34,column:17}}}))?a:""},15:function(e,t,n,r,o,i){var a,l=e.lambda,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
  • \n '+(null!=(a=l(null!=t?s(t,"id"):t,t))?a:"")+"\n
  • \n"},17:function(e,t,r,i,a,l){var s,u=null!=t?t:e.nullContext||{},c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(s=o(n(45)).call(u,l[1][0],{name:"showSections",hash:{},fn:e.program(18,a,0,l),inverse:e.noop,data:a,blockParams:l,loc:{start:{line:36,column:8},end:{line:50,column:25}}}))?s:"")+(null!=(s=o(n(46)).call(u,l[1][0],{name:"showSummary",hash:{},fn:e.program(23,a,0,l),inverse:e.noop,data:a,blockParams:l,loc:{start:{line:51,column:8},end:{line:55,column:24}}}))?s:"")+(null!=(s=c(r,"each").call(u,null!=(s=l[1][0])?c(s,"nodeGroups"):s,{name:"each",hash:{},fn:e.program(25,a,1,l),inverse:e.noop,data:a,blockParams:l,loc:{start:{line:56,column:8},end:{line:70,column:17}}}))?s:"")},18:function(e,t,r,i,a,l){var s,u=null!=t?t:e.nullContext||{},c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
  • \n \n Sections\n \n \n
      \n'+(null!=(s=c(r,"each").call(u,null!=t?c(t,"sections"):t,{name:"each",hash:{},fn:e.program(21,a,0,l),inverse:e.noop,data:a,blockParams:l,loc:{start:{line:43,column:14},end:{line:47,column:23}}}))?s:"")+"
    \n
  • \n"},19:function(e,t,n,r,o){return"open"},21:function(e,t,n,r,o,i){var a,l=e.lambda,s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
  • \n '+(null!=(a=l(null!=t?u(t,"id"):t,t))?a:"")+"\n
  • \n"},23:function(e,t,n,r,o,i){var a,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
  • \n Summary\n
  • \n'},25:function(e,t,n,r,o,i){var a,l=e.lambda,s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
  • \n \n '+s(l(null!=(a=i[0][0])?u(a,"name"):a,t))+'\n \n \n
      \n'+(null!=(a=u(n,"each").call(null!=t?t:e.nullContext||{},null!=(a=i[0][0])?u(a,"nodes"):a,{name:"each",hash:{},fn:e.program(26,o,0,i),inverse:e.noop,data:o,blockParams:i,loc:{start:{line:63,column:14},end:{line:67,column:23}}}))?a:"")+"
    \n
  • \n"},26:function(e,t,n,r,o,i){var a,l=e.lambda,s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
  • \n '+s(l(null!=t?u(t,"id"):t,t))+"\n
  • \n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o,i,a){var l,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(l=s(n,"each").call(null!=t?t:e.nullContext||{},null!=t?s(t,"nodes"):t,{name:"each",hash:{},fn:e.program(1,o,2,i,a),inverse:e.noop,data:o,blockParams:i,loc:{start:{line:1,column:0},end:{line:74,column:9}}}))?l:""},useData:!0,useDepths:!0,useBlockParams:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i,a,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' \n
    \n '+(null!=(i="function"==typeof(a=null!=(a=c(n,"title")||(null!=t?c(t,"title"):t))?a:s)?a.call(l,{name:"title",hash:{},data:o,loc:{start:{line:9,column:8},end:{line:9,column:19}}}):a)?i:"")+"\n"+(null!=(i=c(n,"if").call(l,null!=t?c(t,"label"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:10,column:8},end:{line:12,column:15}}}))?i:"")+"
    \n\n"+(null!=(i=c(n,"if").call(l,null!=t?c(t,"description"):t,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:15,column:6},end:{line:19,column:13}}}))?i:"")+"
    \n"},2:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' ('+e.escapeExpression("function"==typeof(i=null!=(i=a(n,"label")||(null!=t?a(t,"label"):t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"label",hash:{},data:o,loc:{start:{line:11,column:31},end:{line:11,column:40}}}):i)+")\n"},4:function(e,t,n,r,o){var i,a,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+(null!=(i="function"==typeof(a=null!=(a=l(n,"description")||(null!=t?l(t,"description"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"description",hash:{},data:o,loc:{start:{line:17,column:10},end:{line:17,column:27}}}):a)?i:"")+"\n
    \n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i,a,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n \n
    "'+u("function"==typeof(a=null!=(a=c(n,"term")||(null!=t?c(t,"term"):t))?a:s)?a.call(l,{name:"term",hash:{},data:o,loc:{start:{line:3,column:28},end:{line:3,column:36}}}):a)+'"
    \n
    Search the documentation
    \n
    \n'+(null!=(i=c(n,"each").call(l,null!=t?c(t,"suggestions"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:6,column:2},end:{line:21,column:11}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i,a,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return' \n"},2:function(e,t,n,r,o){return" selected disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n \n
    \n"},useData:!0})},function(e,t,n){var r=n(1);function o(e){return e&&(e.__esModule?e.default:e)}e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"

    Search results for "+e.escapeExpression(e.lambda(null!=t?i(t,"value"):t,t))+"

    \n"},3:function(e,t,n,r,o){return"

    Invalid Search

    \n"},5:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"results"):t,{name:"each",hash:{},fn:e.program(6,o,0),inverse:e.noop,data:o,loc:{start:{line:8,column:2},end:{line:17,column:11}}}))?i:""},6:function(e,t,n,r,o){var i,a=e.lambda,l=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n

    \n '+l(a(null!=t?s(t,"title"):t,t))+" ("+l(a(null!=t?s(t,"type"):t,t))+")\n

    \n"+(null!=(i=s(n,"each").call(null!=t?t:e.nullContext||{},null!=t?s(t,"excerpts"):t,{name:"each",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o,loc:{start:{line:13,column:8},end:{line:15,column:17}}}))?i:"")+"
    \n"},7:function(e,t,n,r,o){var i;return'

    '+(null!=(i=e.lambda(t,t))?i:"")+"

    \n"},9:function(e,t,r,i,a){var l,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(l=o(n(12)).call(null!=t?t:e.nullContext||{},null!=t?s(t,"results"):t,{name:"isArray",hash:{},fn:e.program(10,a,0),inverse:e.program(12,a,0),data:a,loc:{start:{line:19,column:2},end:{line:25,column:14}}}))?l:"")+"\n

    The search functionality is full-text based. Here are some tips:

    \n\n
      \n
    • Multiple words (such as foo bar) are searched as OR
    • \n
    • Use * anywhere (such as fo*) as wildcard
    • \n
    • Use + before a word (such as +foo) to make its presence required
    • \n
    • Use - before a word (such as -foo) to make its absence required
    • \n
    • Use WORD^NUMBER (such as foo^2) to boost the given word
    • \n
    • Use WORD~NUMBER (such as foo~2) to do a search with edit distance on word
    • \n
    \n\n

    To quickly go to a module, type, or function, use the autocompletion feature in the sidebar search.

    \n"},10:function(e,t,n,r,o){var i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"

    Sorry, we couldn't find anything for "+e.escapeExpression(e.lambda(null!=t?i(t,"value"):t,t))+".

    \n"},12:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"value"):t,{name:"if",hash:{},fn:e.program(13,o,0),inverse:e.program(15,o,0),data:o,loc:{start:{line:21,column:2},end:{line:25,column:2}}}))?i:""},13:function(e,t,n,r,o){var i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return"

    Invalid search: "+e.escapeExpression(e.lambda(null!=t?i(t,"errorMessage"):t,t))+".

    \n"},15:function(e,t,n,r,o){return"

    Please type something into the search bar to perform a search.

    \n "},compiler:[8,">= 4.3.0"],main:function(e,t,r,i,a){var l,s=null!=t?t:e.nullContext||{},u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(l=u(r,"if").call(s,null!=t?u(t,"value"):t,{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?l:"")+"\n"+(null!=(l=o(n(47)).call(s,null!=t?u(t,"results"):t,{name:"isNonEmptyArray",hash:{},fn:e.program(5,a,0),inverse:e.program(9,a,0),data:a,loc:{start:{line:7,column:0},end:{line:39,column:20}}}))?l:"")},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'\n'},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"description"):t,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o,loc:{start:{line:3,column:4},end:{line:16,column:11}}}))?i:""},2:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n
    \n'+(null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"displayAs"):t,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.program(5,o,0),data:o,loc:{start:{line:6,column:10},end:{line:10,column:17}}}))?i:"")+'
    \n
    \n '+e.escapeExpression(e.lambda(null!=t?a(t,"description"):t,t))+"\n
    \n
    \n"},3:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+(null!=(i=e.lambda(null!=t?a(t,"displayAs"):t,t))?i:"")+"\n"},5:function(e,t,n,r,o){var i=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return" "+e.escapeExpression(e.lambda(null!=t?i(t,"key"):t,t))+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n'+(null!=(i=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"shortcuts"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:2,column:2},end:{line:17,column:11}}}))?i:"")+"
    \n"},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'
    \n \n \n
    \n
    \n'},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+s("function"==typeof(i=null!=(i=u(n,"name")||(null!=t?u(t,"name"):t))?i:l)?i.call(a,{name:"name",hash:{},data:o,loc:{start:{line:3,column:4},end:{line:3,column:12}}}):i)+"\n
    \n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"each").call(null!=t?t:e.nullContext||{},null!=t?a(t,"results"):t,{name:"each",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o,loc:{start:{line:1,column:0},end:{line:5,column:9}}}))?i:""},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+e.escapeExpression(e.lambda(null!=(i=null!=t?a(t,"hint"):t)?a(i,"description"):i,t))+"\n
    \n"},3:function(e,t,n,r,o){var i,a=e.lambda,l=e.escapeExpression,s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n

    \n '+l(a(null!=(i=null!=t?s(t,"hint"):t)?s(i,"title"):i,t))+'\n
    '+l(a(null!=(i=null!=t?s(t,"hint"):t)?s(i,"version"):i,t))+"
    \n

    \n
    \n"+(null!=(i=s(n,"if").call(null!=t?t:e.nullContext||{},null!=(i=null!=t?s(t,"hint"):t)?s(i,"description"):i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o,loc:{start:{line:12,column:2},end:{line:16,column:9}}}))?i:"")},4:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'
    \n '+e.escapeExpression(e.lambda(null!=(i=null!=t?a(t,"hint"):t)?a(i,"description"):i,t))+"\n
    \n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i,a=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(i=a(n,"if").call(null!=t?t:e.nullContext||{},null!=t?a(t,"isPlain"):t,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o,loc:{start:{line:1,column:0},end:{line:17,column:7}}}))?i:""},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'
    \n
    \n
    \n'},useData:!0})},function(e,t,n){var r=n(1);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'
    \n \n \n \n \n
    \n'},useData:!0})},,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}t.__esModule=!0;var i=o(n(7)),a=r(n(39)),l=r(n(3)),s=o(n(2)),u=o(n(40)),c=r(n(42));function d(){var e=new i.HandlebarsEnvironment;return s.extend(e,i),e.SafeString=a.default,e.Exception=l.default,e.Utils=s,e.escapeExpression=s.escapeExpression,e.VM=u,e.template=function(t){return u.template(t,e)},e}var f=d();f.create=d,c.default(f),f.default=f,t.default=f,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=n(2);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var o=n.inverse,i=n.fn;if(!0===t)return i(this);if(!1===t||null==t)return o(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):o(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return i(t,n)}))},e.exports=t.default},function(e,t,n){"use strict";(function(r){t.__esModule=!0;var o,i=n(2),a=n(3),l=(o=a)&&o.__esModule?o:{default:o};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new l.default("Must pass iterator to #each");var n,o=t.fn,a=t.inverse,s=0,u="",c=void 0,d=void 0;function f(t,n,r){c&&(c.key=t,c.index=n,c.first=0===n,c.last=!!r,d&&(c.contextPath=d+t)),u+=o(e[t],{data:c,blockParams:i.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(c=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var p=e.length;s=l.LAST_COMPATIBLE_COMPILER_REVISION&&t<=l.COMPILER_REVISION)return;if(t0)return t.fn(this)}},function(e,t,n){"use strict";n.r(t),t.default=function(e,t){if(e.nodeGroups)return t.fn(this)}},function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return Array.isArray(e)&&e.length>0?t.fn(this):t.inverse(this)}},,,function(e,t,n){"use strict";n.r(t);var r=n(0);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"+Object(r.c)(d)+""+e(f,n)}return e(t,a)}(e,ie(t).sort((function(e,t){return t.length-e.length})))}var le={autocompleteSuggestions:[],selectedIdx:-1};function se(){Object(r.l)(".autocomplete").classList.remove("shown")}function ue(e){var t,n,o,i;le.autocompleteSuggestions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(Object(r.j)(e))return[];var n=C(),o=[].concat($(Z(n.modules,e,J)),$(X(n.modules,e,K)),$(Z(n.tasks,e,Y)));return ee(o).slice(0,t)}(e),le.selectedIdx=-1,Object(r.j)(e)?se():(t={term:e,suggestions:le.autocompleteSuggestions},n=t.term,o=t.suggestions,i=V()({suggestions:o,term:n}),Object(r.l)(".autocomplete").innerHTML=i,ce(0),Object(r.l)(".autocomplete").classList.add("shown"))}function ce(e){le.selectedIdx=function(e){var t=le.autocompleteSuggestions.length+1;return(le.selectedIdx+e+1+t)%t-1}(e);var t=Object(r.l)("".concat(".autocomplete-suggestion",".selected")),n=Object(r.l)("".concat(".autocomplete-suggestion",'[data-index="').concat(le.selectedIdx,'"]'));t&&t.classList.remove("selected"),n&&n.classList.add("selected")}function de(){var e;(e=Object(r.l)("form.sidebar-search input")).addEventListener("keydown",(function(t){"Escape"===t.key?(fe(),e.blur()):"Enter"===t.key?function(e){var t=Object(r.l)("form.sidebar-search input"),n=e.shiftKey||e.ctrlKey,o=-1===le.selectedIdx?null:le.autocompleteSuggestions[le.selectedIdx];e.preventDefault();var i=n?"_blank":"_self",a=document.createElement("a");a.setAttribute("target",i),o?a.setAttribute("href",o.link):a.setAttribute("href","search.html?q=".concat(encodeURIComponent(t.value))),a.click(),n||(fe(),pe())}(t):"ArrowUp"===t.key?(ce(-1),t.preventDefault()):"ArrowDown"===t.key&&(ce(1),t.preventDefault())})),e.addEventListener("input",(function(e){ue(e.target.value)})),e.addEventListener("focus",(function(e){document.body.classList.add("search-focused"),ue(e.target.value)})),e.addEventListener("blur",(function(t){var n=t.relatedTarget;if(n){if(n.matches(".autocomplete-suggestion"))return setTimeout((function(){Object(r.l)(".autocomplete").classList.contains("shown")&&e.focus()}),1e3),null;n.matches("form.sidebar-search .search-close-button")&&fe()}pe()})),Object(r.l)(".autocomplete").addEventListener("click",(function(t){t.shiftKey||t.ctrlKey?e.focus():(fe(),pe())}))}function fe(){Object(r.l)("form.sidebar-search input").value=""}function pe(){document.body.classList.remove("search-focused"),se()}var he=n(16),me=n.n(he);function ye(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ve(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&function(e){var t=e.nodes,n=Object(r.l)(".sidebar-projectVersion"),o=me()({nodes:t});n.innerHTML=o,Object(r.l)(".sidebar-projectVersionsDropdown").addEventListener("change",xe)}({nodes:function(e,t){return function(e,t){return e.some((function(e){return e.version===t}))?e:[{version:t,url:"#"}].concat(ye(e))}(e,t).map((function(e){return function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?[].concat(_e(t),[e]):t}ke.a.Pipeline.registerFunction(t,"elixirTokenSplitter"),e.pipeline.before(ke.a.stemmer,t)}function De(e){return searchNodes.find((function(t){return t.ref===e}))||null}function Ne(e,t){var n=e.doc,o=Object.keys(t).filter((function(e){return"doc"in t[e]})).map((function(e){return t[e].doc.position.map((function(e){var t=Se(e,2),o=t[0],i=t[1];return function(e,t,n){var o=Math.max(t-80,0),i=Math.min(t+n+80,e.length);return[o>0?"...":"",e.slice(o,t),""+Object(r.c)(e.slice(t,t+n))+"",e.slice(t+n,i),i=3&&(n={results:Xe.autocompleteResults},o=n.results,i=Object(r.l)("#quick-switch-results"),a=Ye()({results:o}),i.innerHTML=a,Object(r.m)(".quick-switch-result").forEach((function(e){e.addEventListener("click",(function(t){var n=e.getAttribute("data-index");ot(Xe.autocompleteResults[n].name)}))}))))}))}),300);function at(e){Xe.selectedIdx=function(e){var t=Xe.autocompleteResults.length;if(null===Xe.selectedIdx){if(e>=0)return 0;if(e<0)return t-1}return(Xe.selectedIdx+e+t)%t}(e);var t=Object(r.l)(".quick-switch-result.selected"),n=Object(r.l)('.quick-switch-result[data-index="'.concat(Xe.selectedIdx,'"]'));t&&t.classList.remove("selected"),n&&n.classList.add("selected")}var lt=[{key:"c",description:"Toggle sidebar",action:E},{key:"n",description:"Toggle night mode",action:function(){var e=u.get();u.update({nightMode:!e.nightMode})}},{key:"s",description:"Focus search bar",displayAs:"/ or s",action:ft},{key:"/",action:ft},{key:"g",description:"Go to a HexDocs package",displayAs:"g",action:rt},{key:"?",displayAs:"?",description:"Bring up this help dialog",action:function(){Object(r.l)("#modal").classList.contains("shown")&&Object(r.l)("#keyboard-shortcuts-modal-body")?$e():pt()}}],st={shortcutBeingPressed:null};function ut(){Object(r.l)(".display-shortcuts-help").addEventListener("click",(function(e){pt()})),document.addEventListener("keydown",ct),document.addEventListener("keyup",dt)}function ct(e){if(!st.shortcutBeingPressed&&!e.target.matches("input, textarea")&&!(e.ctrlKey||e.metaKey||e.altKey)){var t=lt.find((function(t){return t.key===e.key}));t&&(st.shortcutBeingPressed=t,e.preventDefault(),t.action(e))}}function dt(e){st.shortcutBeingPressed=null}function ft(e){$e(),_().then((function(){Object(r.l)("form.sidebar-search input").focus()}))}function pt(){Ue({title:"Keyboard Shortcuts",body:ze()({shortcuts:lt})})}var ht=n(22),mt=n.n(ht),yt=n(23),vt=n.n(yt),gt="plain",bt="function",wt="module",xt=[{href:"typespecs.html#basic-types",hint:{kind:gt,description:"Basic type"}},{href:"typespecs.html#literals",hint:{kind:gt,description:"Literal"}},{href:"typespecs.html#built-in-types",hint:{kind:gt,description:"Built-in type"}}],Ot={cancelHintFetching:null};function kt(e){var t=Pt(e);return t?Promise.resolve(t):function(e){var t=e.replace(".html",".html?hint=true");return new Promise((function(e,n){var r=document.createElement("iframe");function o(n){var r=n.data,o=r.href,a=r.hint;t===o&&(i(),e(a))}function i(){r.remove(),window.removeEventListener("message",o),Ot.cancelHintFetching=null}r.setAttribute("sandbox","allow-scripts allow-same-origin"),r.setAttribute("src",t),r.style.display="none",Ot.cancelHintFetching=function(){i(),n(new Error("cancelled"))},window.addEventListener("message",o),document.body.appendChild(r)}))}(e)}function Pt(e){var t=xt.find((function(t){return e.includes(t.href)}));return t?t.hint:null}var jt=450,St=768,Et={currentLinkElement:null,hoverDelayTimeout:null};function Lt(){var e;e=vt()(),Object(r.l)("body .content-inner").insertAdjacentHTML("beforeend",e),Object(r.m)(".content a").forEach((function(e){var t,n,o;!(t=e).classList.contains("detail-link")&&(n=t.href,o=n.replace("#content",""),window.location.href.split("#")[0]!==o&&function(e){return!!Pt(e)||!(e.includes("#")&&!/#.*\//.test(e))&&e.includes(".html")}(t.href))&&(e.addEventListener("mouseenter",(function(t){!function(e){var t;(t=window.innerWidth p"),a=i?i.textContent:"",{kind:bt,title:o.trim(),description:a.trim()}));if(["modules","tasks"].includes(Object(r.f)()))return At(function(e){for(var t=e.querySelector("h1");t.firstElementChild;)t.removeChild(t.firstElementChild);var n=t.textContent,r=e.querySelector("#moduledoc p"),o=r?r.textContent:"";return{kind:wt,title:n.trim(),description:o.trim()}}(t));var n,o,i,a;return null}();e&&function(e){var t=window.location.href,n={hint:e,href:t};window.parent.postMessage(n,"*")}(e)}}function At(e){return function(e){for(var t=1;t')})),Array.from(Object(r.m)(".copy-button")).forEach((function(e){return e.addEventListener("click",(function(){navigator.clipboard.writeText(e.parentElement.querySelector("code").textContent),e.classList.add("clicked"),setTimeout((function(){return e.classList.remove("clicked")}),3e3)}))})))}var Mt=n(24),Rt=n.n(Mt);function Dt(){Object(r.l)(".display-settings").addEventListener("click",(function(e){!function(){Ue({title:"Settings",body:Rt()({})});var e=Object(r.l)("#settings-modal-content"),t=e.querySelector('[name="night_mode"]'),n=e.querySelector('[name="tooltips"]'),o=e.querySelector('[name="direct_livebook_url"]'),i=e.querySelector('[name="livebook_url"]');u.getAndSubscribe((function(e){t.checked=Fe(e),n.checked=e.tooltips,null===e.livebookUrl?(o.checked=!1,i.classList.add("hidden")):(o.checked=!0,i.classList.remove("hidden"),i.value=e.livebookUrl)})),t.addEventListener("change",(function(e){u.update({nightMode:e.target.checked})})),n.addEventListener("change",(function(e){u.update({tooltips:e.target.checked})})),o.addEventListener("change",(function(e){var t=e.target.checked?i.value:null;u.update({livebookUrl:t})})),i.addEventListener("input",(function(e){u.update({livebookUrl:e.target.value})}))}()}))}Object(r.k)((function(){u.getAndSubscribe((function(e){document.body.classList.toggle("night-mode",Fe(e))})),k(),R(),de(),we(),f(),Object(He.a)(),Be(),ut(),et(),Lt(),Qt(),Qe(),Ct(),Dt()}))}]); \ No newline at end of file diff --git a/lib/ex_doc/formatter/epub/templates/module_template.eex b/lib/ex_doc/formatter/epub/templates/module_template.eex index 13c80760a..606967c0f 100644 --- a/lib/ex_doc/formatter/epub/templates/module_template.eex +++ b/lib/ex_doc/formatter/epub/templates/module_template.eex @@ -1,6 +1,6 @@ <%= head_template(config, %{title: module.title}) %>

    - <%= H.module_title(module) %> + <%= module.title %> <%= H.module_type(module) %>

    <%= if deprecated = module.deprecated do %> diff --git a/lib/ex_doc/formatter/html/templates.ex b/lib/ex_doc/formatter/html/templates.ex index ec0cb59d1..ab9a7f423 100644 --- a/lib/ex_doc/formatter/html/templates.ex +++ b/lib/ex_doc/formatter/html/templates.ex @@ -51,14 +51,9 @@ defmodule ExDoc.Formatter.HTML.Templates do @doc """ Returns the HTML formatted title for the module page. """ - def module_title(%{type: :task, title: title}), - do: title - - def module_title(%{type: :module, title: title}), - do: title - - def module_title(%{type: type, title: title}), - do: title <> " #{type}" + def module_type(%{type: :task}), do: "" + def module_type(%{type: :module}), do: "" + def module_type(%{type: type}), do: "#{type}" @doc """ Gets the first paragraph of the documentation of a node. It strips @@ -277,7 +272,6 @@ defmodule ExDoc.Formatter.HTML.Templates do search_template: [:config, :nodes_map], sidebar_template: [:config, :nodes_map], summary_template: [:name, :nodes], - summary_entry_template: [:node], redirect_template: [:config, :redirect_to], bottom_actions_template: [:refs] ] diff --git a/lib/ex_doc/formatter/html/templates/api_reference_entry_template.eex b/lib/ex_doc/formatter/html/templates/api_reference_entry_template.eex index 81280d42a..ec17835f7 100644 --- a/lib/ex_doc/formatter/html/templates/api_reference_entry_template.eex +++ b/lib/ex_doc/formatter/html/templates/api_reference_entry_template.eex @@ -1,6 +1,6 @@
    - <%=h module_node.title %> + <%=h module_node.title %> <%= if deprecated = module_node.deprecated do %> deprecated <% end %> diff --git a/lib/ex_doc/formatter/html/templates/detail_template.eex b/lib/ex_doc/formatter/html/templates/detail_template.eex index e1d7cdcc8..d02e38c50 100644 --- a/lib/ex_doc/formatter/html/templates/detail_template.eex +++ b/lib/ex_doc/formatter/html/templates/detail_template.eex @@ -7,7 +7,7 @@ Link to this <%= pretty_type(node) %> -

    <%=h node.signature %>

    +

    <%=h node.signature %>

    <%= if node.source_url do %> @@ -29,11 +29,11 @@

    Specs

    <%= for spec <- specs do %> -
    <%= spec %>
    +
    <%= spec %>
    <% end %>
    <% end %> - <%= node.rendered_doc |> link_detail_headings(enc(node.id)) %> + <%= link_detail_headings(node.rendered_doc, enc(node.id)) %> diff --git a/lib/ex_doc/formatter/html/templates/footer_template.eex b/lib/ex_doc/formatter/html/templates/footer_template.eex index ad971f000..de675a4a5 100644 --- a/lib/ex_doc/formatter/html/templates/footer_template.eex +++ b/lib/ex_doc/formatter/html/templates/footer_template.eex @@ -14,12 +14,12 @@

    Built using - ExDoc (v<%= ExDoc.version() %>) for the - Elixir programming language. + ExDoc (v<%= ExDoc.version() %>) for the + Elixir programming language. Designed by - Friedel Ziegelmayer. + Friedel Ziegelmayer.

    diff --git a/lib/ex_doc/formatter/html/templates/module_template.eex b/lib/ex_doc/formatter/html/templates/module_template.eex index 53256cc82..770bc705d 100644 --- a/lib/ex_doc/formatter/html/templates/module_template.eex +++ b/lib/ex_doc/formatter/html/templates/module_template.eex @@ -1,56 +1,57 @@ - <%= head_template(config, %{title: module.title, type: module.type}) %> - <%= sidebar_template(config, nodes_map) %> +<%= head_template(config, %{title: module.title, type: module.type}) %> +<%= sidebar_template(config, nodes_map) %> -

    - <%= module_title(module) %> (<%= config.project %> v<%= config.version %>) - <%= if module.source_url do %> - - - View Source - - <% end %> - <%= for annotation <- module.annotations do %> - (<%= annotation %>) - <% end %> -

    +

    + <%= module.title %> <%= module_type(module) %> + (<%= config.project %> v<%= config.version %>) + <%= if module.source_url do %> + + + View Source + + <% end %> + <%= for annotation <- module.annotations do %> + (<%= annotation %>) + <% end %> +

    - <%= if deprecated = module.deprecated do %> -
    - This <%= module.type %> is deprecated. <%= h(deprecated) %>. -
    - <% end %> +<%= if deprecated = module.deprecated do %> +
    + This <%= module.type %> is deprecated. <%= h(deprecated) %>. +
    +<% end %> - <%= if doc = module.rendered_doc do %> -
    - <%= link_moduledoc_headings(doc) %> -
    - <% end %> +<%= if doc = module.rendered_doc do %> +
    + <%= link_moduledoc_headings(doc) %> +
    +<% end %> - <%= if Enum.any?(summary, fn {_, v} -> v != [] end) do %> -
    -

    - - - Link to this section - - Summary -

    - <%= for {name, nodes} <- summary, do: summary_template(name, nodes) %> -
    - <% end %> +<%= if Enum.any?(summary, fn {_, v} -> v != [] end) do %> +
    +

    + + + Link to this section + + Summary +

    + <%= for {name, nodes} <- summary, do: summary_template(name, nodes) %> +
    +<% end %> - <%= for {name, nodes} <- summary, nodes != [], key = HTML.text_to_id(name) do %> -
    -

    - - - Link to this section - - <%= name %> -

    -
    - <%= for node <- nodes, do: detail_template(node, module) %> -
    -
    - <% end %> - <%= footer_template(config, module) %> +<%= for {name, nodes} <- summary, nodes != [], key = HTML.text_to_id(name) do %> +
    +

    + + + Link to this section + + <%= name %> +

    +
    + <%= for node <- nodes, do: detail_template(node, module) %> +
    +
    +<% end %> +<%= footer_template(config, module) %> diff --git a/lib/ex_doc/formatter/html/templates/sidebar_template.eex b/lib/ex_doc/formatter/html/templates/sidebar_template.eex index a19f6547d..fe191d5fb 100644 --- a/lib/ex_doc/formatter/html/templates/sidebar_template.eex +++ b/lib/ex_doc/formatter/html/templates/sidebar_template.eex @@ -25,10 +25,10 @@ <% url = config.homepage_url || "#{config.main}.html" %> <% end %> diff --git a/test/ex_doc/formatter/epub/templates_test.exs b/test/ex_doc/formatter/epub/templates_test.exs index ecb4f5b6f..3042f5d9a 100644 --- a/test/ex_doc/formatter/epub/templates_test.exs +++ b/test/ex_doc/formatter/epub/templates_test.exs @@ -89,7 +89,7 @@ defmodule ExDoc.Formatter.EPUB.TemplatesTest do test "outputs summaries" do content = get_module_page([CompiledWithDocs]) - assert content =~ ~r{\ """ end @@ -187,8 +187,8 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do ~r""" \ """ end @@ -314,7 +314,7 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do assert content =~ ~r{CompiledWithDocs [^<]*} assert content =~ - ~r{

    \s*CompiledWithDocs \(Elixir v1.0.1\)} + ~r{

    \s*CompiledWithDocs\s*\(Elixir v1.0.1\)} refute content =~ ~r{module} @@ -385,7 +385,7 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do ~S[TypesAndSpecs.Sub.t(), ] <> ~S[opaque(), :ok | :error}] - assert content =~ ~s[public(t)] + assert content =~ ~s[public(t)] refute content =~ ~s[private] assert content =~ public_html refute content =~ ~s[private\(t\)] @@ -401,7 +401,7 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do test "outputs summaries" do content = get_module_page([CompiledWithDocs]) - assert content =~ ~r{
    \s*} + assert content =~ ~r{
    \s*} end test "contains links to summary sections when those exist" do @@ -438,7 +438,7 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do content = get_module_page([CustomBehaviourOne]) assert content =~ - ~r{

    \s*CustomBehaviourOne\s*behaviour\s*\(Elixir v1.0.1\)} + ~r{

    \s*CustomBehaviourOne\s*behaviour\s*\(Elixir v1.0.1\)} assert content =~ ~r{Callbacks} assert content =~ ~r{
    } @@ -448,7 +448,7 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do content = get_module_page([CustomBehaviourTwo]) assert content =~ - ~r{

    \s*CustomBehaviourTwo\s*behaviour\s*\(Elixir v1.0.1\)} + ~r{

    \s*CustomBehaviourTwo\s*behaviour\s*\(Elixir v1.0.1\)} assert content =~ ~r{Callbacks} assert content =~ ~r{
    } @@ -460,7 +460,7 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do content = get_module_page([CustomProtocol]) assert content =~ - ~r{

    \s*CustomProtocol\s*protocol\s*\(Elixir v1.0.1\)} + ~r{

    \s*CustomProtocol\s*protocol\s*\(Elixir v1.0.1\)} end ## TASKS @@ -469,7 +469,7 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do content = get_module_page([Mix.Tasks.TaskWithDocs]) assert content =~ - ~r{

    \s*mix task_with_docs\s*\(Elixir v1.0.1\)} + ~r{

    \s*mix task_with_docs\s*\(Elixir v1.0.1\)} end end diff --git a/test/ex_doc/formatter/html_test.exs b/test/ex_doc/formatter/html_test.exs index 1719b5758..844d1dae1 100644 --- a/test/ex_doc/formatter/html_test.exs +++ b/test/ex_doc/formatter/html_test.exs @@ -206,10 +206,10 @@ defmodule ExDoc.Formatter.HTMLTest do generate_docs(doc_config()) content = File.read!("#{output_dir()}/api-reference.html") - assert content =~ ~r{CompiledWithDocs} + assert content =~ ~r{CompiledWithDocs} assert content =~ ~r{

    moduledoc

    } - assert content =~ ~r{CompiledWithDocs.Nested} - assert content =~ ~r{mix task_with_docs} + assert content =~ ~r{CompiledWithDocs.Nested} + assert content =~ ~r{mix task_with_docs} end test "groups modules by nesting" do