Skip to content

Commit

Permalink
Update docusaurus monorepo to v3.5.1 (#198)
Browse files Browse the repository at this point in the history
* Update docusaurus monorepo to v3.5.1

* fix doc error

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Newbe36524 <[email protected]>
  • Loading branch information
renovate[bot] and newbe36524 authored Aug 10, 2024
1 parent f1e16d3 commit 205fa4a
Show file tree
Hide file tree
Showing 7 changed files with 213 additions and 214 deletions.
2 changes: 1 addition & 1 deletion src/docs/faq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var simpleFunc = "return Math.Floor(arg1/0.3);"

### 我不想每次都编译,能否缓存脚本的结果?

答:不可以,缓存结果需要您来完成,Natasha 走的是轻量化路线,`AssemblyCSharpBuilder` 为最小最基础的编译单元,如果你想缓存,可以自己实现一个 ConcurrentDictionary<string,Delegate/Action/Func> 来缓存结果。Natasha 不负责编译职责之外的事情。
答:不可以,缓存结果需要您来完成,Natasha 走的是轻量化路线,`AssemblyCSharpBuilder` 为最小最基础的编译单元,如果你想缓存,可以自己实现一个 `ConcurrentDictionary<string,Delegate/Action/Func>` 来缓存结果。Natasha 不负责编译职责之外的事情。

### 我只想使用 using 全集,但不想添加那么多的引用。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ A: The dynamic construction ability of Natasha is very powerful. It can be used

### I don't want to compile every time, can I cache the result of the script?

A: No, caching the result needs to be done by you. Natasha follows the lightweight route. `AssemblyCSharpBuilder` is the smallest and most basic compilation unit. If you want to cache, you can implement a ConcurrentDictionary<string,Delegate/Action/Func> to cache the result.Natasha is not responsible for anything other than the compilation responsibility.
A: No, caching the result needs to be done by you. Natasha follows the lightweight route. `AssemblyCSharpBuilder` is the smallest and most basic compilation unit. If you want to cache, you can implement a `ConcurrentDictionary<string,Delegate/Action/Func>` to cache the result.Natasha is not responsible for anything other than the compilation responsibility.

### I only want to use the using statement, but I don't want to add so many references.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var simpleFunc = "return Math.Floor(arg1/0.3);"

### スクリプトの結果をキャッシュしたくありません。毎回コンパイルするのは嫌ですか?

答え:できません。結果をキャッシュするには、自分でConcurrentDictionary<string,Delegate/Action/Func>を実装する必要があります。Natashaは軽量化路線を歩んでおり、`AssemblyCSharpBuilder`が最小限の基本的なコンパイルユニットです。Natasha 不负责<span class="notranslate">编译职责之外</span>的事情。
答え:できません。結果をキャッシュするには、自分で`ConcurrentDictionary<string,Delegate/Action/Func>`を実装する必要があります。Natashaは軽量化路線を歩んでおり、`AssemblyCSharpBuilder`が最小限の基本的なコンパイルユニットです。Natasha 不负责<span class="notranslate">编译职责之外</span>的事情。

### 我只想使用 <span class="notranslate">using</span> 全集,但不想添加那么多的引用。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Package(Builder) + API + Extension => Operator

<br/>

直接使用Natasha内置的Builder可以快速实现定制,例如:OopBuilder<TOperator>MethodBuilder<TOperator>泛型方法。
直接使用Natasha内置的Builder可以快速实现定制,例如:`OopBuilder<TOperator>``MethodBuilder<TOperator>`泛型方法。
前者为其提供对象构造模板,后者专注构建方法。

<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var simpleFunc = "return Math.Floor(arg1/0.3);"

### 我不想每次都编译,能否缓存脚本的结果?

答:不可以,缓存结果需要您来完成,Natasha 走的是轻量化路线,`AssemblyCSharpBuilder` 为最小最基础的编译单元,如果你想缓存,可以自己实现一个 ConcurrentDictionary<string,Delegate/Action/Func> 来缓存结果。Natasha 不负责编译职责之外的事情。
答:不可以,缓存结果需要您来完成,Natasha 走的是轻量化路线,`AssemblyCSharpBuilder` 为最小最基础的编译单元,如果你想缓存,可以自己实现一个 `ConcurrentDictionary<string,Delegate/Action/Func>` 来缓存结果。Natasha 不负责编译职责之外的事情。

### 我只想使用 using 全集,但不想添加那么多的引用。

Expand Down
6 changes: 3 additions & 3 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"zh": "docusaurus write-translations --locale zh-Hans --override"
},
"dependencies": {
"@docusaurus/core": "3.4.0",
"@docusaurus/plugin-pwa": "3.4.0",
"@docusaurus/preset-classic": "3.4.0",
"@docusaurus/core": "3.5.1",
"@docusaurus/plugin-pwa": "3.5.1",
"@docusaurus/preset-classic": "3.5.1",
"@mdx-js/react": "3.0.1",
"clsx": "2.1.1",
"react": "18.3.1",
Expand Down
Loading

0 comments on commit 205fa4a

Please sign in to comment.