diff --git a/docs/v8/build.md b/docs/v8/build.md index c9812d3..f83de8f 100644 --- a/docs/v8/build.md +++ b/docs/v8/build.md @@ -40,11 +40,11 @@ sidebar_position: 3 3. 编译源代码: ```shell - tools/dev/gm.py arm64.release + tools/dev/gm.py arm64.debug ``` 或者,编译源代码并立即运行测试: ```shell - tools/dev/gm.py arm64.release.check + tools/dev/gm.py arm64.debug.check ``` diff --git a/docs/v8/clion-debugging.md b/docs/v8/clion-debugging.md index 42dd1bb..34aabc9 100644 --- a/docs/v8/clion-debugging.md +++ b/docs/v8/clion-debugging.md @@ -80,7 +80,7 @@ console.log(a + b + c); - Build: `` - Clean: `` - ![custom-build-targets.png](img/custom-build-targets.png) + ![custom-build-targets.png](clion-debugging/img/custom-build-targets.png) 5. 完成配置后,点击 `OK` 或 `Apply` 来保存更改。 @@ -98,7 +98,7 @@ console.log(a + b + c); - Program arguments: `debug.js` - 其它设置保持默认 - ![run-debug-configurations.png](img/run-debug-configurations.png) + ![run-debug-configurations.png](clion-debugging/img/run-debug-configurations.png) 选中 `Store as project file` 后将自动保存配置至 `.run/Debug.run.xml` 文件。其内容如下: @@ -125,7 +125,7 @@ console.log(a + b + c); 2. 在文件末尾的 `main` 函数处设置断点,并右键断点图标选择 `Use file name only`。 - ![breakpoints.png](img/breakpoints.png) + ![breakpoints.png](clion-debugging/img/breakpoints.png) ## 开始调试 @@ -133,8 +133,8 @@ console.log(a + b + c); 程序将在 `main` 函数处暂停。 -![main.png](img/main.png) +![main.png](clion-debugging/img/main.png) 至此,可以愉快地进行调试了,比如 `Step Into` 一个函数。 -![shell-main.png](img/shell-main.png) +![shell-main.png](clion-debugging/img/shell-main.png) diff --git a/docs/v8/img/breakpoints.png b/docs/v8/clion-debugging/img/breakpoints.png similarity index 100% rename from docs/v8/img/breakpoints.png rename to docs/v8/clion-debugging/img/breakpoints.png diff --git a/docs/v8/img/custom-build-targets.png b/docs/v8/clion-debugging/img/custom-build-targets.png similarity index 100% rename from docs/v8/img/custom-build-targets.png rename to docs/v8/clion-debugging/img/custom-build-targets.png diff --git a/docs/v8/img/main.png b/docs/v8/clion-debugging/img/main.png similarity index 100% rename from docs/v8/img/main.png rename to docs/v8/clion-debugging/img/main.png diff --git a/docs/v8/img/run-debug-configurations.png b/docs/v8/clion-debugging/img/run-debug-configurations.png similarity index 100% rename from docs/v8/img/run-debug-configurations.png rename to docs/v8/clion-debugging/img/run-debug-configurations.png diff --git a/docs/v8/img/shell-main.png b/docs/v8/clion-debugging/img/shell-main.png similarity index 100% rename from docs/v8/img/shell-main.png rename to docs/v8/clion-debugging/img/shell-main.png diff --git a/docs/v8/source-code.md b/docs/v8/source-code.md index 4adfdc1..323e188 100644 --- a/docs/v8/source-code.md +++ b/docs/v8/source-code.md @@ -53,3 +53,13 @@ git pull ```shell gclient sync ``` + +## 设置聚焦隐私(可选) + +从「聚焦」搜索中排除源代码文件夹。 + +![siri-and-spotlight.png](source-code/img/siri-and-spotlight.png) + +![privacy.png](source-code/img/privacy.png) + +从「聚焦」搜索中排除特定文件和文件夹。请参阅 [防止「聚焦」在文件中搜索](https://support.apple.com/zh-cn/guide/mac-help/mchl1bb43b84/14.0/mac/14.0)。 diff --git a/docs/v8/source-code/img/privacy.png b/docs/v8/source-code/img/privacy.png new file mode 100644 index 0000000..b511468 Binary files /dev/null and b/docs/v8/source-code/img/privacy.png differ diff --git a/docs/v8/source-code/img/siri-and-spotlight.png b/docs/v8/source-code/img/siri-and-spotlight.png new file mode 100644 index 0000000..4da6741 Binary files /dev/null and b/docs/v8/source-code/img/siri-and-spotlight.png differ diff --git a/docusaurus.config.ts b/docusaurus.config.ts index d0773d8..62f6ad2 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -25,8 +25,8 @@ const config: Config = { // useful metadata like html lang. For example, if your site is Chinese, you // may want to replace "en" with "zh-Hans". i18n: { - defaultLocale: 'en', - locales: ['en'], + defaultLocale: 'zh-Hans', + locales: ['zh-Hans'], }, presets: [ @@ -48,7 +48,7 @@ const config: Config = { themeConfig: { // Replace with your project's social card - image: 'img/docusaurus-social-card.jpg', + image: 'img/social-card.jpg', navbar: { title: 'Env Doc', logo: { diff --git a/static/img/docusaurus-social-card.jpg b/static/img/docusaurus-social-card.jpg deleted file mode 100644 index ffcb448..0000000 Binary files a/static/img/docusaurus-social-card.jpg and /dev/null differ diff --git a/static/img/docusaurus.png b/static/img/docusaurus.png deleted file mode 100644 index f458149..0000000 Binary files a/static/img/docusaurus.png and /dev/null differ diff --git a/static/img/favicon.ico b/static/img/favicon.ico index c01d54b..eac31f5 100644 Binary files a/static/img/favicon.ico and b/static/img/favicon.ico differ diff --git a/static/img/logo.svg b/static/img/logo.svg index 9db6d0d..612f2be 100644 --- a/static/img/logo.svg +++ b/static/img/logo.svg @@ -1 +1,9 @@ - \ No newline at end of file + + + + + + + + + diff --git a/static/img/social-card.jpg b/static/img/social-card.jpg new file mode 100644 index 0000000..37d3295 Binary files /dev/null and b/static/img/social-card.jpg differ diff --git a/static/img/undraw_docusaurus_mountain.svg b/static/img/undraw_docusaurus_mountain.svg deleted file mode 100644 index af961c4..0000000 --- a/static/img/undraw_docusaurus_mountain.svg +++ /dev/null @@ -1,171 +0,0 @@ - - Easy to Use - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/static/img/undraw_docusaurus_react.svg b/static/img/undraw_docusaurus_react.svg deleted file mode 100644 index 94b5cf0..0000000 --- a/static/img/undraw_docusaurus_react.svg +++ /dev/null @@ -1,170 +0,0 @@ - - Powered by React - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/static/img/undraw_docusaurus_tree.svg b/static/img/undraw_docusaurus_tree.svg deleted file mode 100644 index d9161d3..0000000 --- a/static/img/undraw_docusaurus_tree.svg +++ /dev/null @@ -1,40 +0,0 @@ - - Focus on What Matters - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -