-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
69 changed files
with
11,155 additions
and
4,459 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict' | ||
|
||
module.exports = (...args) => { | ||
const numArgs = args.length | ||
if (numArgs === 3) return args[0] && args[1] | ||
if (numArgs < 3) throw new Error('{{and}} helper expects at least 2 arguments') | ||
args.pop() | ||
return args.every((it) => it) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
'use strict' | ||
|
||
const TAG_ALL_RX = /<[^>]+>/g | ||
|
||
module.exports = (html) => html && html.replace(TAG_ALL_RX, '') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'use strict' | ||
|
||
module.exports = (a, b) => a === b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'use strict' | ||
|
||
module.exports = (value) => (value || 0) + 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'use strict' | ||
|
||
module.exports = (a, b) => a !== b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'use strict' | ||
|
||
module.exports = (val) => !val |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use strict' | ||
|
||
module.exports = (...args) => { | ||
const numArgs = args.length | ||
if (numArgs === 3) return args[0] || args[1] | ||
if (numArgs < 3) throw new Error('{{or}} helper expects at least 2 arguments') | ||
args.pop() | ||
return args.some((it) => it) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use strict' | ||
|
||
module.exports = (collection, property, orderSpec) => { | ||
if (orderSpec == null || orderSpec === '*') return Object.values(collection) | ||
const sourceCollection = Object.values(collection).reduce((accum, it) => accum.set(it[property], it), new Map()) | ||
const order = orderSpec | ||
.split(',') | ||
.map((it) => it.trim()) | ||
.filter((it) => { | ||
if (it.charAt() !== '!') return true | ||
sourceCollection.delete(it.substr(1)) | ||
}) | ||
const restIdx = order.indexOf('*') | ||
if (~restIdx) order.splice(restIdx, 1) | ||
const targetCollection = order.reduce((accum, key) => { | ||
if (sourceCollection.has(key)) { | ||
accum.push(sourceCollection.get(key)) | ||
sourceCollection.delete(key) | ||
} | ||
return accum | ||
}, []) | ||
if (~restIdx) targetCollection.splice(restIdx, 0, ...sourceCollection.values()) | ||
return targetCollection | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use strict' | ||
|
||
const { posix: path } = require('path') | ||
|
||
module.exports = (to, from, ctx) => { | ||
if (!to) return '#' | ||
// NOTE only legacy invocation provides both to and from | ||
if (!ctx) from = (ctx = from).data.root.page.url | ||
if (to.charAt() !== '/') return to | ||
if (!from) return (ctx.data.root.site.path || '') + to | ||
let hash = '' | ||
const hashIdx = to.indexOf('#') | ||
if (~hashIdx) { | ||
hash = to.substr(hashIdx) | ||
to = to.substr(0, hashIdx) | ||
} | ||
return to === from | ||
? hash || (isDir(to) ? './' : path.basename(to)) | ||
: (path.relative(path.dirname(from + '.'), to) || '.') + (isDir(to) ? '/' + hash : hash) | ||
} | ||
|
||
function isDir (str) { | ||
return str.charAt(str.length - 1) === '/' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'use strict' | ||
|
||
module.exports = () => new Date().getFullYear().toString() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
{{> head defaultPageTitle='Page Not Found'}} | ||
</head> | ||
<body class="status-404"> | ||
{{> header}} | ||
{{> body}} | ||
{{> footer}} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
{{> head defaultPageTitle='Untitled'}} | ||
</head> | ||
<body class="article{{#with (or page.attributes.role page.role)}} {{{this}}}{{/with}}"> | ||
{{> header}} | ||
{{> body}} | ||
{{> footer}} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<article class="doc"> | ||
<h1 class="page">{{{or page.title 'Page Not Found'}}}</h1> | ||
<div class="paragraph"> | ||
<p>The page you’re looking for does not exist. It may have been moved. You can{{#with site.homeUrl}} return to the <a href="{{{this}}}">start page</a>, or{{/with}} follow one of the links in the navigation to the left.</p> | ||
</div> | ||
<div class="paragraph"> | ||
<p>If you arrived on this page by clicking on a link, please notify the owner of the site that the link is broken. | ||
If you typed the URL of this page manually, please double check that you entered the address correctly.</p> | ||
</div> | ||
|
||
<div class="admonitionblock warning"> | ||
<table> | ||
<tbody><tr> | ||
<td class="icon"> | ||
<i class="fa icon-warning" title="Warning"></i> | ||
</td> | ||
<td class="content"> | ||
<div class="paragraph"> | ||
<p>On Nov 29th, 2021, we migrated our documentation from our previous publishing platform to a self-managed solution. | ||
It may take a few weeks for search engines to reindex our documentation site. | ||
We apologize for any inconvenience if you followed a broken link from a search engine in the meantime. | ||
Please type in the search box located at the top of the page to find what you are looking for. </p> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody></table> | ||
</div> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<article class="doc"> | ||
{{#with page.title}} | ||
<h1 class="page">{{{this}}}</h1> | ||
{{/with}} | ||
{{{page.contents}}} | ||
{{> pagination}} | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="body"> | ||
{{> nav}} | ||
{{> main}} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<nav class="breadcrumbs" aria-label="breadcrumbs"> | ||
{{#if page.breadcrumbs}} | ||
<ul> | ||
{{#with page.componentVersion}} | ||
{{#if (and ./title (ne ./title @root.page.breadcrumbs.0.content))}} | ||
<li><a href="{{{relativize ./url}}}">{{{./title}}}</a></li> | ||
{{/if}} | ||
{{/with}} | ||
{{#each page.breadcrumbs}} | ||
<li> | ||
{{~#if (and ./url (eq ./urlType 'internal'))~}} | ||
<a href="{{{relativize ./url}}}">{{{./content}}}</a> | ||
{{~else~}} | ||
{{{./content}}} | ||
{{~/if~}} | ||
</li> | ||
{{/each}} | ||
</ul> | ||
{{/if}} | ||
</nav> |
Oops, something went wrong.