Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix some spelling #708

Merged
merged 33 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1e3c4ab
spelling: according
jsoref Jun 14, 2024
0b558eb
spelling: asynchronously
jsoref Jun 14, 2024
34b9b55
spelling: background
jsoref Jun 14, 2024
d927265
spelling: camel
jsoref Jun 14, 2024
df0c00d
spelling: cannot
jsoref Jun 14, 2024
4f7dd06
spelling: case-sensitive
jsoref Jun 14, 2024
7311733
spelling: comparison
jsoref Jun 14, 2024
47516e5
spelling: demos
jsoref Jun 14, 2024
3ea5a5a
spelling: forloop
jsoref Jun 14, 2024
fe32c07
spelling: formatters
jsoref Jun 14, 2024
9430455
spelling: github
jsoref Jun 14, 2024
bc07933
spelling: guidelines
jsoref Jun 14, 2024
0a05b98
spelling: hashes
jsoref Jun 14, 2024
377e70e
spelling: https
jsoref Jun 14, 2024
daa7e17
spelling: javascript
jsoref Jun 14, 2024
cbaeede
spelling: keep
jsoref Jun 14, 2024
10028a8
spelling: natural
jsoref Jun 14, 2024
a33c9e7
spelling: neither
jsoref Jun 14, 2024
b1b938d
spelling: no longer
jsoref Jun 14, 2024
5e2a637
spelling: nonexistent
jsoref Jun 14, 2024
6713c6c
spelling: output
jsoref Jun 14, 2024
d768fa6
spelling: polymorphism
jsoref Jun 14, 2024
9bca1fb
spelling: precache
jsoref Jun 14, 2024
55ed33c
spelling: programmatically
jsoref Jun 14, 2024
d48c9a8
spelling: punctuation
jsoref Jun 14, 2024
50c0861
spelling: registration
jsoref Jun 14, 2024
4ba961f
spelling: rendered
jsoref Jun 14, 2024
e5522eb
spelling: synchronously
jsoref Jun 14, 2024
bd5e04b
spelling: thrown
jsoref Jun 14, 2024
5d9a156
spelling: trimmed
jsoref Jun 14, 2024
a010357
spelling: unbalanced
jsoref Jun 14, 2024
f0f4306
chore: use example.com
harttle Jun 17, 2024
330d22f
chore: fix reference for sidebar.registration
harttle Jun 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@

* Tag#render now returns void, use emitter argument
to write rendered html.
* ship to Node.js 8, the dist/liquid.cjs.js (main) nolonger
* ship to Node.js 8, the dist/liquid.cjs.js (main) no longer
supports Node.js 6, other bundles are also provided via dist/liquid.esm.js, dist/liquid.js (ES5 umd) and liquid.min.js (minified ES5 umd)
* remove default export, now should be used like import
{Liquid} from 'liquidjs'
Expand Down Expand Up @@ -1113,7 +1113,7 @@ supports Node.js 6, other bundles are also provided via dist/liquid.esm.js, dist

### Features

* at_least, at_most, sort_naturual for [#132](https://github.com/harttle/liquidjs/issues/132) ([e6f5f1c](https://github.com/harttle/liquidjs/commit/e6f5f1c))
* at_least, at_most, sort_natural for [#132](https://github.com/harttle/liquidjs/issues/132) ([e6f5f1c](https://github.com/harttle/liquidjs/commit/e6f5f1c))
harttle marked this conversation as resolved.
Show resolved Hide resolved

# [8.3.0](https://github.com/harttle/liquidjs/compare/v8.2.4...v8.3.0) (2019-06-27)

Expand Down Expand Up @@ -1177,7 +1177,7 @@ supports Node.js 6, other bundles are also provided via dist/liquid.esm.js, dist

### Performance Improvements

* use polymophism instead duck test ([82d7673](https://github.com/harttle/liquidjs/commit/82d7673))
* use polymorphism instead duck test ([82d7673](https://github.com/harttle/liquidjs/commit/82d7673))

## [8.0.1](https://github.com/harttle/liquidjs/compare/v8.0.0...v8.0.1) (2019-03-22)

Expand All @@ -1201,7 +1201,7 @@ supports Node.js 6, other bundles are also provided via dist/liquid.esm.js, dist

### BREAKING CHANGES

* Options and method names in JavaScript API are now renamed to cammelCase, for a complete list see #109
* Options and method names in JavaScript API are now renamed to camelCase, for a complete list see #109

## [7.5.1](https://github.com/harttle/liquidjs/compare/v7.5.0...v7.5.1) (2019-03-05)

Expand Down
24 changes: 12 additions & 12 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion benchmark/engines/create-liquid.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function createEngine (pkg) {
cache: true,
extname: '.liquid'
})
liquid.registerFilter('url', path => `http://example.com${path}`)
liquid.registerFilter('url', path => `https://example.com${path}`)
harttle marked this conversation as resolved.
Show resolved Hide resolved
return {
load: path => liquid.parse(readFileSync(path + '.liquid', 'utf8')),
render: (tpl, data) => liquid.renderSync(tpl, data)
Expand Down
2 changes: 1 addition & 1 deletion benchmark/engines/handlebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ handlebars.registerHelper('concat', function (...args) {
})

handlebars.registerHelper('url', function (path) {
return `http://example.com${path}`
return `https://example.com${path}`
})

handlebars.registerHelper('inc', function (num) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/engines/swig.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const swig = require('swig')

swig.setFilter('url', function (path) {
return `http://example.com${path}`
return `https://example.com${path}`
})

swig.setFilter('prepend', function (input, arg) {
Expand Down
2 changes: 1 addition & 1 deletion benchmark/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function tag () {
new Benchmark.Suite('tag')
.add('if', test('{% if "foobar" %}foo{% endif %}'))
.add('unless', test('{%unless "foo"%}true{%else%}false{%endunless%}'))
.add('for', test('{% for i in (1..3) %}{{fooloop.index}}{% endfor %}'))
.add('for', test('{% for i in (1..3) %}{{forloop.index}}{% endfor %}'))
harttle marked this conversation as resolved.
Show resolved Hide resolved
.add('switch', test('{%case 3%}{% when 1 %}1{% when 2 %}2{% when 3 %}3{%endcase%}'))
.add('assign', test('{%assign a="foo bar"%}'))
.add('capture', test('{%capture foo%}what is this{%endcapture%}'))
Expand Down
2 changes: 1 addition & 1 deletion benchmark/templates/todolist.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function capitalize (str) {
return str[0].toUpperCase() + str.slice(1).toLowerCase()
}
function url (path) {
return `http://example.com${path}`
return `https://example.com${path}`
}
function renderTodoIcon (id) {
return <img title="risus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices" src="http://images.example.com/{id}.png"/>
Expand Down
4 changes: 2 additions & 2 deletions bin/character-gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const isInlineBlank = c => c === '\t' || c === ' ' || c === '\r'
const isSign = c => c === '-' || c === '+'
// See https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/RegExp
const unicodeBlanks = '\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000'
const unicodePunctuations = '“”'
const unicodePunctuation = '“”'
harttle marked this conversation as resolved.
Show resolved Hide resolved

const types = []
for (let i = 0; i < 128; i++) {
Expand Down Expand Up @@ -48,4 +48,4 @@ export function isWord (char: string): boolean {
`.trim())

console.log([...unicodeBlanks].map(char => `TYPES[${char.charCodeAt(0)}]`).join(' = ') + ' = BLANK')
console.log([...unicodePunctuations].map(char => `TYPES[${char.charCodeAt(0)}]`).join(' = ') + ' = PUNCTUATION')
console.log([...unicodePunctuation].map(char => `TYPES[${char.charCodeAt(0)}]`).join(' = ') + ' = PUNCTUATION')
Loading
Loading