Skip to content

Commit

Permalink
Updated docs. Updated revision. [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Dec 18, 2024
1 parent 09e70b7 commit 445aefa
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ doubled = [item * 2 for item in *items]
Uses `when` to determine if a value should be included.

```yue
slice = [item for item in *items[1, 2]]
slice = [item for item in *items[1, 2] when item % 2 == 0]
```

`for` clauses inside of list comprehensions can be chained.
Expand Down
19 changes: 3 additions & 16 deletions Docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const darkCodeTheme = {
const lightCodeTheme = {
...themes.github,
styles: [
...themes.github.styles,
...themes.vsLight.styles,
{
types: ['title'],
style: {
Expand Down Expand Up @@ -123,12 +123,6 @@ const lightCodeTheme = {
color: '#C6105F',
},
},
{
types: ['class-name'],
style: {
color: '#af893b',
},
},
{
types: ['attr-name'],
style: {
Expand All @@ -144,7 +138,7 @@ const lightCodeTheme = {
{
types: ['function'],
style: {
color: '#c89c48',
color: '#af803b',
},
},
{
Expand All @@ -159,13 +153,6 @@ const lightCodeTheme = {
color: '#E36209',
},
},
{
types: ['comment'],
style: {
color: '#6B6B6B',
fontStyle: 'normal',
},
},
],
};

Expand Down Expand Up @@ -214,7 +201,7 @@ const config = {
lastVersion: 'current',
versions: {
current: {
label: 'v1.6.1',
label: 'v1.6.2',
},
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version.label": {
"message": "版本 1.6.1",
"message": "版本 1.6.2",
"description": "The label for version current"
},
"sidebar.apiSidebar.category.Class": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ doubled = [item * 2 for item in *items]
  使用 `when` 来筛选出需要的值。

```yue
slice = [item for item in *items[1, 2]]
slice = [item for item in *items[1, 2] when item % 2 == 0]
```

  推导中的 `for` 子句可以链式调用。
Expand Down
4 changes: 4 additions & 0 deletions Docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
--ifm-toc-border-color: rgba(0, 0, 0, 0);
}

.theme-code-block {
border: 0.5px solid var(--ifm-color-primary-darkest);
}

.navbar-sidebar {
min-height: 100vh;
}
Expand Down
2 changes: 1 addition & 1 deletion Docs/src/languages/teal-prism.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ function teal(Prism) {
/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,
keyword:
/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while|type|record|as|is|embed|enum|const)\b/,
'class-name': /\b[A-Z]\w*|boolean|number|integer|string|table|thread|any|userdata/,
function: /(?!\d)\w+(?=\s*(?:[({]))/,
'class-name': /\b[A-Z]\w*|boolean|number|integer|string|table|thread|any|userdata/,
operator: [
/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,
{
Expand Down
2 changes: 1 addition & 1 deletion Docs/src/languages/yuescript-prism.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function yuescript(Prism) {
},
function: {
pattern:
/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,
/\b(?:_G|_ENV|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,
inside: {
punctuation: /\./
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Basic/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#include <thread>

#define DORA_VERSION "1.6.2"_slice
#define DORA_REVISION "1"_slice
#define DORA_REVISION "2"_slice

#if BX_PLATFORM_ANDROID
#include <jni.h>
Expand Down

0 comments on commit 445aefa

Please sign in to comment.