Skip to content

Commit 1ee1a34

Browse files
committed
Merge remote-tracking branch 'origin/master' into feat/fetch-reader
2 parents f3e3fb1 + 0e24a2d commit 1ee1a34

37 files changed

+550
-74790
lines changed

documentation/Standard-Lib.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Add comments in the stdlib files (one line above the function/value), the format
141141

142142
After you fill the comments, you need to update the document by running
143143
```bash
144-
npm run docs:update
144+
npm run build:docs
145145
```
146146

147147
Check the output document out and submit a pull request. Thank you!

lib/js/位經.wy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@
3535

3636
疏曰「「位變。同犀之~x也。」」
3737
今有一術。名之曰「位變」。欲行是術。必先得一數。曰「甲」。乃行是術曰。
38-
施「(x=>y=>(~x))」於「甲」。名之曰「乙」。乃得「乙」。
38+
施「(x=>(~x))」於「甲」。名之曰「乙」。乃得「乙」。
3939
是謂「位變」之術也。

lib/列經.wy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
今有一術。名之曰「擷取」。欲行是術。必先得一列。曰「甲」。二數。曰「乙」曰「丙」。乃行是術曰。
8787
吾有一列。名之曰「丁」。
8888
吾有一數。曰「乙」。名之曰「戊」。
89-
若「丙」小於零者。夫「甲」之長。加其以「丙」。昔之「丙」者。今其是矣。
89+
若「丙」小於零者。夫「甲」之長。加其以「丙」。昔之「丙」者。今其是矣。云云。
9090

9191
恆為是。若「戊」大於「丙」者乃止也。
9292
夫「甲」之「戊」。充「丁」以其。

lib/曆法.wy

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
夫「乙」之「「商」」。加其以一。夫「數字」之其。加其以「「十」」。昔之「數」者。今其是矣。云云。
150150
夫「乙」之「「餘」」。若其大於零者。
151151
夫「乙」之「「餘」」。加其以一。夫「數字」之其。加「數」以其。昔之「數」者。今其是矣。云云。
152-
乃得「數」
152+
乃得「數」。
153153
是謂「言百內數」之術也。
154154

155155
吾有一術。名之曰「言年月日」。欲行是術。必先得一數。曰「積日」。乃行是術曰。
@@ -173,6 +173,7 @@
173173
夫「年」。取一以施「言百內數」。加其以「「年」」。加「年月日」以其。昔之「年月日」者。今其是矣。
174174
若非。
175175
夫「年」。取一以施「言序數」。加其以「「年」」。加「年月日」以其。昔之「年月日」者。今其是矣。
176+
云云。
176177
減一於「積年」。除其以十。所餘幾何。加其以一。夫「天干」之其。加「年月日」以其。昔之「年月日」者。今其是矣。
177178
減一於「積年」。除其以十二。所餘幾何。加其以一。夫「地支」之其。加「年月日」以其。昔之「年月日」者。今其是矣。
178179
加「年月日」以「「年」」。昔之「年月日」者。今其是矣。
@@ -183,6 +184,7 @@
183184
加「年月日」以「「正月」」。昔之「年月日」者。今其是矣。
184185
若非。
185186
夫「月」。取一以施「言百內數」。加其以「「月」」。加「年月日」以其。昔之「年月日」者。今其是矣。
187+
云云。
186188

187189
若「日」不大於十者。
188190
加「年月日」以「「初」」。昔之「年月日」者。今其是矣。云云。
@@ -249,7 +251,7 @@
249251
今有一術。名之曰「言彼之時刻」。欲行是術。必先得一數。曰「時」。乃行是術曰。
250252
施「時差」於「時」。加其於「時」。名之曰「甲」。
251253
夫「甲」。夫八萬六千四百。取二以施「取底除」。名之曰「乙」。
252-
夫「乙」之「「餘」」。取一以施「言時刻」。乃得矣。
254+
夫「乙」之「「餘」」。取一以施「取底」。取一以施「言時刻」。乃得矣。
253255
是謂「言彼之時刻」之術也。
254256

255257
注曰「「彼年何年號。同Javascript之"西元" for modern dates也。」」
@@ -347,7 +349,7 @@
347349
今有一術。名之曰「彼秒何秒」。欲行是術。必先得一數。曰「時」。乃行是術曰。
348350
施「時差」於「時」。加其於「時」。名之曰「甲」。
349351
夫「甲」。夫六十。取二以施「取底除」。
350-
取一以施「取底」。乃得矣。
352+
夫其之「「餘」」。取一以施「取底」。乃得矣。
351353
是謂「彼秒何秒」之術也。
352354

353355
吾有一術。名之曰「月積何日」。欲行是術。必先得一數。曰「積月」。乃行是術曰。

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,14 @@
2020
"scripts": {
2121
"build": "npm run clear && webpack --mode production",
2222
"build:dev": "npm run clear && webpack --mode development",
23+
"build:site": "webpack --mode development --config webpack.site.config.js",
24+
"build:docs": "node ./tools/make_examples_readme.js && node ./tools/make_stdlib_cheatsheet.js",
25+
"dev:site": "webpack --mode development --config webpack.site.config.js --watch",
2326
"dev": "npm run clear && webpack --mode development --watch",
2427
"clear": "rimraf ./dist",
2528
"publish": "bump --commit && node ./tools/publish.js",
2629
"publish:ci": "node ./tools/publish.js",
2730
"release": "bump --commit --tag && git push --follow-tags",
28-
"docs:update": "node ./tools/stdlib_doc.js",
29-
"make_examples_readme": "node ./tools/make_examples_readme.js",
30-
"make_ide": "node ./tools/make_ide.js",
31-
"make_site": "node ./tools/make_site.js",
32-
"ide:dev": "nodemon --ignore build,dist ./tools/make_ide.js",
33-
"site:dev": "nodemon --ignore build,dist ./tools/make_site.js",
3431
"test": "mocha --require mocha-snapshots",
3532
"test:update": "mocha --require mocha-snapshots --update",
3633
"lint:fix": "npm run lint -- --fix",

0 commit comments

Comments
 (0)