Kaynağa Gözat

Vitepress: Update some old links and correct some minor errors (#226)

* fix: update links and correct minor errors.

* fix: correct minor errors

* fix: dead link
Willaaaaaaa 6 ay önce
ebeveyn
işleme
6ba02c30b1

+ 1 - 1
docs/about/sponsor.md

@@ -4,7 +4,7 @@ If you would like to support the development of Xmake, you are encouraged to don
 
 Feel free to contact us for more details on sponsorship.
 
-- [Contact us](https://xmake.io/#/about/contact)
+- [Contact us](/about/contact)
 
 ## Payment Methods
 

+ 5 - 5
docs/api/description/conditions.md

@@ -108,7 +108,7 @@ Support hosts:
 * linux
 * macosx
 
-We can also get it from [$(host)](https://xmake.io/#/manual/builtin_variables?id=varhost) or [os.host](https://xmake.io/#/manual/builtin_modules?id=oshost).
+We can also get it from [$(host)](/api/description/builtin-variables#var-host) or [os.host](/api/scripts/builtin-modules/os#os-host).
 
 ## is_subhost
 
@@ -282,7 +282,7 @@ end
 ```
 
 ::: tip NOTE
-This interface is not only able to determine the custom options defined through the [option](#option),
+This interface is not only able to determine the custom options defined through the [option](/api/description/configuration-option#option),
 but also to determine the built-in global and local configuration.
 :::
 
@@ -321,7 +321,7 @@ $ xmake f --test1=false
 
 ::: tip NOTE
 This interface can determine not only the built-in global and local configs,
-but also the custom options defined through the [option](#option).
+but also the custom options defined through the [option](/api/description/configuration-option#option).
 :::
 
 ## has_package
@@ -330,7 +330,7 @@ but also the custom options defined through the [option](#option).
 
 This interface is introduced from version 2.2.3 to detect whether a dependent package exists or is enabled.
 
-It is usually used to [add_requires](https://xmake.io/#/zh-cn/manual/global_interfaces?id=add_requires).
+It is usually used to [add_requires](/api/description/global-interfaces#add-requires).
 
 ```lua
 add_requires("tbox", {optional = true})
@@ -349,5 +349,5 @@ If the remote dependencies are added via the optional add-on package added by `a
 Indicates that it does not exist, and then does some special processing for other flags definitions and even source file compilation controls.
 
 ::: tip NOTE
-The difference between this interface and [has_config](#has_config) is that [has_config](#has_config) is used for [option](#option) whereas this is used for [add_requires](#add_requires).
+The difference between this interface and [has_config](#has_config) is that [has_config](#has_config) is used for [option](/api/description/configuration-option#option) whereas this is used for [add_requires](/api/description/global-interfaces#add-requires).
 :::

+ 3 - 3
docs/api/description/configuration-option.md

@@ -60,7 +60,7 @@ $ xmake
 
 ### End definition option
 
-This is an optional api that shows the departure option scope, similar to [target_end](https://xmake.io/#/manual/project_target?id=target_end).
+This is an optional api that shows the departure option scope, similar to [target_end](/api/description/project-target#target-end).
 
 ## add_deps
 
@@ -179,7 +179,7 @@ option("test")
 | boolean    | Typically used as a parameter switch, value range: `true/false` | `xmake f --optionname=[y/n/yes/no/true/false]`  |
 | string     | can be any string, generally used for pattern judgment          | `xmake f --optionname=value`                    |
 
-If it is an option of the `boolean` value, it can be judged by [has_config](https://xmake.io/#/manual/conditions?id=has_config), and the option is enabled.
+If it is an option of the `boolean` value, it can be judged by [has_config](/api/description/conditions#has-config), and the option is enabled.
 
 If it is an option of type `string`, it can be used directly in built-in variables, for example:
 
@@ -399,7 +399,7 @@ This is optional. Generally, the system library does not need to add this, and i
 
 ### Adding a load search directory for a dynamic library at runtime
 
-After the option passes the detection, it will be automatically added to the corresponding target. For details, see: [target.add_rpathdirs](https://xmake.io/#/manual/project_target?id=targetadd_rpathdirs).
+After the option passes the detection, it will be automatically added to the corresponding target. For details, see: [target.add_rpathdirs](/api/description/project-target#add-rpathdirs).
 
 ## add_cincludes
 

+ 1 - 1
docs/api/description/global-interfaces.md

@@ -105,7 +105,7 @@ We can set build version in v2.1.7 version:
 set_version("1.5.1", {build = "%Y%m%d%H%M"})
 ```
 
-We can also add version to the config header files, @see [add_configfiles](https://xmake.io/#/manual/project_target?id=add-template-configuration-files)
+We can also add version to the config header files, @see [add_configfiles](/zh/api/description/project-target#add-configfiles)
 
 :::tip NOTE
 We can set the version globally, but now we can also set it individually in the target field.

+ 2 - 2
docs/api/description/package-dependencies.md

@@ -200,7 +200,7 @@ end
 
 - Adjust the link order within the package
 
-For specific details, please see the target's internal documentation for `add_linkorders`, [target/add_linkorders](https://xmake.io/#/zh-cn/manual/project_target?id=targetadd_linkorders).
+For specific details, please see the target's internal documentation for `add_linkorders`, [target:add_linkorders](/zh/api/description/project-target#add-linkorders).
 
 ```lua
 package("libpng")
@@ -212,7 +212,7 @@ package("libpng")
 
 - Configure the link group of the package
 
-For specific details, please see the target's internal documentation for `add_linkgroups`, [target/add_linkgroups](https://xmake.io/#/zh-cn/manual/project_target?id=targetadd_linkgroups).
+For specific details, please see the target's internal documentation for `add_linkgroups`, [target:add_linkgroups](/api/description/project-target#add-linkgroups).
 
 ```lua
 package("libpng")

+ 18 - 18
docs/api/description/plugin-and-task.md

@@ -74,37 +74,37 @@ task("echo")
     -- Set the command line options for the plugin. There are no parameter options here, just the plugin description.
     set_menu {
                 -- Settings menu usage
-                usage = "xmake echo [options]"
+                usage = "xmake echo [options]",
 
                 -- Setup menu description
-            ,   description = "Echo the given info!"
+                description = "Echo the given info!",
 
                 -- Set menu options, if there are no options, you can set it to {}
-            ,   options =
+                options =
                 {
                     -- Set k mode as key-only bool parameter
-                    {'b', "bright", "k", nil, "Enable bright." }
-                ,   {'d', "dim", "k", nil, "Enable dim." }
-                ,   {'-', "blink", "k", nil, "Enable blink." }
-                ,   {'r', "reverse", "k", nil, "Reverse color." }
+                    {'b', "bright", "k", nil, "Enable bright." },
+                    {'d', "dim", "k", nil, "Enable dim." },
+                    {'-', "blink", "k", nil, "Enable blink." },
+                    {'r', "reverse", "k", nil, "Reverse color." },
 
                     -- When the menu is displayed, a blank line
-                ,   {}
+                    {},
 
                     -- Set kv as the key-value parameter and set the default value: black
-                ,   {'c', "color", "kv", "black", "Set the output color."
-                                                     , " - red"
-                                                     , " - blue"
-                                                     , " - yellow"
-                                                     , " - green"
-                                                     , " - magenta"
-                                                     , " - cyan"
-                                                     , " - white" }
+                    {'c', "color", "kv", "black", "Set the output color.",
+                                                       " - red",
+                                                       " - blue",
+                                                       " - yellow",
+                                                       " - green",
+                                                       " - magenta",
+                                                       " - cyan",
+                                                       " - white" },
 
                     -- Set `vs` as a value multivalued parameter and a `v` single value type
                     -- generally placed last, used to get a list of variable parameters
-                ,   {}
-                ,   {nil, "contents", "vs", nil, "The info contents." }
+                    {}
+                    {nil, "contents", "vs", nil, "The info contents." }
                 }
             }
 ```

+ 3 - 3
docs/api/description/project-target.md

@@ -408,7 +408,7 @@ if this time, the build configuration is: `xmake f -m debug -a armv7`, then the
 
 If you want to further customize the directory name of the target file, refer to: [set_targetdir](#set_targetdir).
 
-Or implement more advanced logic by writing custom scripts, see: [after_build](#after_build) and [os.mv](https://xmake.io/#/manual/builtin_modules?id=osmv).
+Or implement more advanced logic by writing custom scripts, see: [after_build](#after_build) and [os.mv](/api/scripts/builtin-modules/os#os-mv).
 
 ## set_filename
 
@@ -2120,7 +2120,7 @@ Users no longer need to call the [add_links](#add_links), [add_includedirs](#add
 
 For how to set up the package search directory, please refer to: [add_packagedirs](https://xmake.io/#/manual/global_interfaces?id=add_packagedirs) interface
 
-After v2.2.2, this interface also supports packages defined by [add_requires](https://xmake.io/#/manual/global_interfaces?id=add_requires) in remote dependency management.
+After v2.2.2, this interface also supports packages defined by [add_requires](/api/description/global-interfaces#add-requires) in remote dependency management.
 
 ```lua
 add_requires("zlib", "polarssl")
@@ -2339,7 +2339,7 @@ toolchain("myclang")
     - ...
 ```
 
-For details about this piece, you can go to the [Custom Toolchain](https://xmake.io/#/manual/custom_toolchain).
+For details about this piece, you can go to the [Custom Toolchain](/api/description/custom-toolchain).
 
 For more details, please see: [#780](https://github.com/xmake-io/xmake/issues/780)
 

+ 3 - 3
docs/api/scripts/extension-modules/core-base-global.md

@@ -29,8 +29,8 @@ The output is as follows:
 
 ```lua
 {
-    clean = true
-,   ccache = "ccache"
-,   xcode_dir = "/Applications/Xcode.app"
+    clean = true,
+    ccache = "ccache",
+    xcode_dir = "/Applications/Xcode.app"
 }
 ```

+ 1 - 1
docs/api/scripts/extension-modules/core-base-json.md

@@ -5,7 +5,7 @@ Xmake provides a built-in json module, based on the implementation of lua_cjson,
 
 We can use `import("core.base.json")` for direct import and use.
 
-There are also some examples here: [Jsom Examples](https://github.com/xmake-io/xmake/blob/master/tests/modules/json/test.lua)
+There are also some examples here: [Json Examples](https://github.com/xmake-io/xmake/blob/master/tests/modules/json/test.lua)
 
 ## json.decode
 

+ 26 - 26
docs/api/scripts/extension-modules/core-project-config.md

@@ -81,31 +81,31 @@ The output is for example:
 
 ```lua
 {
-    sh = "xcrun -sdk macosx clang++"
-,   xcode_dir = "/Applications/Xcode.app"
-,   ar = "xcrun -sdk macosx ar"
-,   small = true
-,   object = false
-,   arch = "x86_64"
-,   xcode_sdkver = "10.12"
-,   ex = "xcrun -sdk macosx ar"
-,   cc = "xcrun -sdk macosx clang"
-,   rc = "rustc"
-,   plat = "macosx"
-,   micro = false
-,   host = "macosx"
-,   as = "xcrun -sdk macosx clang"
-,   dc = "dmd"
-,   gc = "go"
-,   openssl = false
-,   ccache = "ccache"
-,   cxx = "xcrun -sdk macosx clang"
-,   sc = "xcrun -sdk macosx swiftc"
-,   mm = "xcrun -sdk macosx clang"
-,   builddir = "build"
-,   mxx = "xcrun -sdk macosx clang++"
-,   ld = "xcrun -sdk macosx clang++"
-,   mode = "release"
-,   kind = "static"
+    sh = "xcrun -sdk macosx clang++",
+    xcode_dir = "/Applications/Xcode.app",
+    ar = "xcrun -sdk macosx ar",
+    small = true,
+    object = false,
+    arch = "x86_64",
+    xcode_sdkver = "10.12",
+    ex = "xcrun -sdk macosx ar",
+    cc = "xcrun -sdk macosx clang",
+    rc = "rustc",
+    plat = "macosx",
+    micro = false,
+    host = "macosx",
+    as = "xcrun -sdk macosx clang",
+    dc = "dmd",
+    gc = "go",
+    openssl = false,
+    ccache = "ccache",
+    cxx = "xcrun -sdk macosx clang",
+    sc = "xcrun -sdk macosx swiftc",
+    mm = "xcrun -sdk macosx clang",
+    builddir = "build",
+    mxx = "xcrun -sdk macosx clang++",
+    ld = "xcrun -sdk macosx clang++",
+    mode = "release",
+    kind = "static"
 }
 ```

+ 1 - 1
docs/api/scripts/option-instance.md

@@ -1,6 +1,6 @@
 # Option Instance
 
-This page describes the interface for `option` of functions like `on_load()`, `on_check()` or `after_check()` of the [Configuration option](https://xmake.io/#/manual/configuration_option.md)
+This page describes the interface for `option` of functions like `on_load()`, `on_check()` or `after_check()` of the [Configuration option](/api/description/configuration-option)
 
 ## option:value
 

+ 3 - 3
docs/api/scripts/package-instance.md

@@ -1,6 +1,6 @@
 # Package instance
 
-This page describes the interface for `package` of functions like `on_load()`, `on_install()` or `on_test()` of the [Package Dependencies](https://xmake.io/#/manual/package_dependencies.md)
+This page describes the interface for `package` of functions like `on_load()`, `on_install()` or `on_test()` of the [Package Dependencies](/api/description/package-dependencies)
 
 ## package:name
 
@@ -72,13 +72,13 @@ Same as `package:get("description")`
   + cygwin
   + bsd
 
-If the package is binary [`os.host`](http://xmake.io/#/manual/builtin_modules.md#oshost) is returned
+If the package is binary [`os.host`](/api/scripts/builtin-modules/os#os-host) is returned
 
 ## package:arch
 
 - Get the architecture of the package (e.g. x86, x64, x86_64)
 
-If the package is binary [`os.arch`](http://xmake.io/#/manual/builtin_modules.md#osarch) is returned
+If the package is binary [`os.arch`](/api/scripts/builtin-modules/os#os-arch) is returned
 
 ## package:targetos
 

+ 1 - 1
docs/zh/about/peripheral_items.md

@@ -6,7 +6,7 @@
 
 有需要的同学可以微信联系(waruqi)来预定。
 
-付款方式可以看下这里:[赞助](https://xmake.io/zh/about/sponsor),或者直接微信转账。
+付款方式可以看下这里:[赞助](/zh/about/sponsor),或者直接微信转账。
 
 ### 限量版金边马克杯(带盖勺🥄)
 

+ 1 - 1
docs/zh/about/sponsor.md

@@ -2,7 +2,7 @@ Xmake 项目属于个人开源项目,它的发展需要您的帮助,如果
 
 欢迎联系我们,获取更多赞助详情。
 
-- [联系方式](https://xmake.io/#/zh-cn/about/contact)
+- [联系方式](/zh/about/contact)
 
 ## 赞助方式
 

+ 5 - 5
docs/zh/api/description/conditions.md

@@ -109,7 +109,7 @@ end
 * linux
 * macosx
 
-你也可以通过[$(host)](https://xmake.io/#/zh-cn/manual/builtin_variables?id=varhost)内置变量或者[os.host](https://xmake.io/#/zh-cn/manual/builtin_modules?id=oshost)接口,来进行获取
+你也可以通过[$(host)](/zh/api/description/builtin-variables#var-host)内置变量或者[os.host](/zh/api/scripts/builtin-modules/os#os-host)接口,来进行获取
 
 ## is_subhost
 
@@ -288,7 +288,7 @@ end
 ```
 
 ::: tip 提示
-此接口不仅能够判断通过[option](#option)定义的自定义配置选项,同时还能判断内置的全局配置、本地配置。
+此接口不仅能够判断通过[option](/zh/api/description/configuration-option#option)定义的自定义配置选项,同时还能判断内置的全局配置、本地配置。
 :::
 
 ## has_config
@@ -326,7 +326,7 @@ $ xmake f --test1=false
 ```
 
 ::: tip 提示
-此接口不仅能够判断内置的全局配置、本地配置,同时还可以判断通过[option](#option)定义的自定义配置选项。
+此接口不仅能够判断内置的全局配置、本地配置,同时还可以判断通过[option](/zh/api/description/configuration-option#option)定义的自定义配置选项。
 :::
 
 ## has_package
@@ -335,7 +335,7 @@ $ xmake f --test1=false
 
 此接口从2.2.3版本开始引入,用于检测远程依赖包是否存在或启用,可用于描述域。
 
-一般配合[add_requires](https://xmake.io/#/zh-cn/manual/global_interfaces?id=add_requires)一起使用,例如:
+一般配合[add_requires](/zh/api/description/global-interfaces#add-requires)一起使用,例如:
 
 ```lua
 add_requires("tbox", {optional = true})
@@ -354,5 +354,5 @@ target("test")
 表示不存在,然后对其他flags定义甚至源文件编译控制做一些特殊处理。
 
 ::: tip 注意
-此接口跟[has_config](#has_config)的区别在于,[has_config](#has_config)用于[option](#option),而它用于[add_requires](#add_requires)。
+此接口跟[has_config](#has_config)的区别在于,[has_config](#has_config)用于[option](/zh/api/description/configuration-option#option),而它用于[add_requires](/zh/api/description/global-interfaces#add-requires)。
 :::

+ 3 - 3
docs/zh/api/description/configuration-option.md

@@ -61,7 +61,7 @@ $ xmake
 
 ### 结束定义选项
 
-这是一个可选api,显示离开选项作用域,用法和[target_end](https://xmake.io/#/zh-cn/manual/project_target?id=target_end)类似。
+这是一个可选api,显示离开选项作用域,用法和[target_end](/zh/api/description/project-target#target_end)类似。
 
 ## add_deps
 
@@ -176,7 +176,7 @@ option("test")
 | boolean | 一般用作参数开关,值范围:`true/false` | `xmake f --optionname=[y/n/yes/no/true/false]` |
 | string  | 可以是任意字符串,一般用于模式判断     | `xmake f --optionname=value`                   |
 
-如果是`boolean`值的选项,可以通过[has_config](https://xmake.io/#/zh-cn/manual/conditions?id=has_config)来进行判断,选项是否被启用。
+如果是`boolean`值的选项,可以通过[has_config](/zh/api/description/conditions#has-config)来进行判断,选项是否被启用。
 
 如果是`string`类型的选项,可以在内建变量中直接使用,例如:
 
@@ -396,7 +396,7 @@ target("test")
 
 ### 添加程序运行时动态库的加载搜索目录
 
-在选项通过检测后,会自动添加到对应的target上去,具体使用见:[target.add_rpathdirs](https://xmake.io/#/zh-cn/manual/project_target?id=targetadd_rpathdirs)。
+在选项通过检测后,会自动添加到对应的target上去,具体使用见:[target:add_rpathdirs](/zh/api/description/project-target#add-rpathdirs)。
 
 ## add_cincludes
 

+ 1 - 1
docs/zh/api/description/global-interfaces.md

@@ -105,7 +105,7 @@ set_version("1.5.1")
 set_version("1.5.1", {build = "%Y%m%d%H%M"})
 ```
 
-我们也能够添加版本宏定义到头文件,请参考:[add_configfiles](https://xmake.io/#/manual/project_target?id=add-template-configuration-files)
+我们也能够添加版本宏定义到头文件,请参考:[add_configfiles](/zh/api/description/project-target#add-configfiles)
 
 :::tip 注意
 我们可以全局设置版本,但现在我们也可以在 target 域去单独设置它。

+ 2 - 2
docs/zh/api/description/package-dependencies.md

@@ -196,7 +196,7 @@ end
 
 - 调整包内部的链接顺序
 
-具体详情可以看下 target 内部对 `add_linkorders` 的文档说明,[target/add_linkorders](https://xmake.io/#/zh-cn/manual/project_target?id=targetadd_linkorders)。
+具体详情可以看下 target 内部对 `add_linkorders` 的文档说明,[target:add_linkorders](/zh/api/description/project-target#add_linkorders)。
 
 ```lua
 package("libpng")
@@ -208,7 +208,7 @@ package("libpng")
 
 - 配置包的链接组
 
-具体详情可以看下 target 内部对 `add_linkgroups` 的文档说明,[target/add_linkgroups](https://xmake.io/#/zh-cn/manual/project_target?id=targetadd_linkgroups)。
+具体详情可以看下 target 内部对 `add_linkgroups` 的文档说明,[target:add_linkgroups](/zh/api/description/project-target#add-linkgroups)。
 
 ```lua
 package("libpng")

+ 18 - 18
docs/zh/api/description/plugin-and-task.md

@@ -76,37 +76,37 @@ task("echo")
     -- 设置插件的命令行选项,这里没有任何参数选项,仅仅显示插件描述
     set_menu {
                 -- 设置菜单用法
-                usage = "xmake echo [options]"
+                usage = "xmake echo [options]",
 
                 -- 设置菜单描述
-            ,   description = "Echo the given info!"
+                description = "Echo the given info!",
 
                 -- 设置菜单选项,如果没有选项,可以设置为{}
-            ,   options =
+                options =
                 {
                     -- 设置k模式作为key-only型bool参数
-                    {'b', "bright",     "k",  nil,       "Enable bright."               }
-                ,   {'d', "dim",        "k",  nil,       "Enable dim."                  }
-                ,   {'-', "blink",      "k",  nil,       "Enable blink."                }
-                ,   {'r', "reverse",    "k",  nil,       "Reverse color."               }
+                    {'b', "bright",     "k",  nil,       "Enable bright."               },
+                    {'d', "dim",        "k",  nil,       "Enable dim."                  },
+                    {'-', "blink",      "k",  nil,       "Enable blink."                },
+                    {'r', "reverse",    "k",  nil,       "Reverse color."               },
 
                     -- 菜单显示时,空白一行
-                ,   {}
+                    {},
 
                     -- 设置kv作为key-value型参数,并且设置默认值:black
-                ,   {'c', "color",      "kv", "black",   "Set the output color."
-                                                     ,   "    - red"
-                                                     ,   "    - blue"
-                                                     ,   "    - yellow"
-                                                     ,   "    - green"
-                                                     ,   "    - magenta"
-                                                     ,   "    - cyan"
-                                                     ,   "    - white"                  }
+                    {'c', "color",      "kv", "black",   "Set the output color.",
+                                                         "    - red",
+                                                         "    - blue",
+                                                         "    - yellow",
+                                                         "    - green",
+                                                         "    - magenta",
+                                                         "    - cyan",
+                                                         "    - white"},
 
                     -- 设置`vs`作为values多值型参数,还有`v`单值类型
                     -- 一般放置在最后,用于获取可变参数列表
-                ,   {}
-                ,   {nil, "contents",   "vs", nil,       "The info contents."           }
+                    {},
+                    {nil, "contents",   "vs", nil,       "The info contents."           }
                 }
             }
 ```

+ 3 - 3
docs/zh/api/description/project-target.md

@@ -407,7 +407,7 @@ target("xxx")
 
 如果还想进一步定制目标文件的目录名,可参考:[set_targetdir](#set_targetdir)。
 
-或者通过编写自定义脚本,实现更高级的逻辑,具体见:[after_build](#after_build)和[os.mv](https://xmake.io/#/zh-cn/manual/builtin_modules?id=osmv)。
+或者通过编写自定义脚本,实现更高级的逻辑,具体见:[after_build](#after_build)和[os.mv](/zh/api/scripts/builtin-modules/os#os-mv)。
 
 ## set_filename
 
@@ -2109,7 +2109,7 @@ target("test")
 
 对于如何设置包搜索目录,可参考:[add_packagedirs](https://xmake.io/#/zh-cn/manual/global_interfaces?id=add_packagedirs) 接口
 
-而在v2.2.2版本之后,此接口也同时支持远程依赖包管理中[add_requires](https://xmake.io/#/zh-cn/manual/global_interfaces?id=add_requires)定义的包。
+而在v2.2.2版本之后,此接口也同时支持远程依赖包管理中[add_requires](/zh/api/description/global-interfaces#add-requires)定义的包。
 
 ```lua
 add_requires("zlib", "polarssl")
@@ -2329,7 +2329,7 @@ toolchain("myclang")
     -- ...
 ```
 
-关于这块的详情介绍,可以到[自定义工具链](https://xmake.io/#/zh-cn/manual/custom_toolchain)章节查看
+关于这块的详情介绍,可以到[自定义工具链](/zh/api/description/custom-toolchain)章节查看
 
 更多详情见:[#780](https://github.com/xmake-io/xmake/issues/780)
 

+ 3 - 3
docs/zh/api/scripts/extension-modules/core-base-global.md

@@ -29,8 +29,8 @@
 
 ```lua
 {
-    clean = true
-,   ccache = "ccache"
-,   xcode_dir = "/Applications/Xcode.app"
+    clean = true,
+    ccache = "ccache",
+    xcode_dir = "/Applications/Xcode.app"
 }
 ```

+ 1 - 1
docs/zh/api/scripts/extension-modules/core-base-json.md

@@ -5,7 +5,7 @@ xmake 提供了内置的 json 模块,基于 lua_cjson 实现,我们可以用
 
 我们可以通过 `import("core.base.json")` 直接导入使用。
 
-这里也有一些例子:[Jsom Examples](https://github.com/xmake-io/xmake/blob/master/tests/modules/json/test.lua)
+这里也有一些例子:[Json Examples](https://github.com/xmake-io/xmake/blob/master/tests/modules/json/test.lua)
 
 ## json.decode
 

+ 26 - 26
docs/zh/api/scripts/extension-modules/core-project-config.md

@@ -80,31 +80,31 @@ end
 
 ```lua
 {
-    sh = "xcrun -sdk macosx clang++"
-,   xcode_dir = "/Applications/Xcode.app"
-,   ar = "xcrun -sdk macosx ar"
-,   small = true
-,   object = false
-,   arch = "x86_64"
-,   xcode_sdkver = "10.12"
-,   ex = "xcrun -sdk macosx ar"
-,   cc = "xcrun -sdk macosx clang"
-,   rc = "rustc"
-,   plat = "macosx"
-,   micro = false
-,   host = "macosx"
-,   as = "xcrun -sdk macosx clang"
-,   dc = "dmd"
-,   gc = "go"
-,   openssl = false
-,   ccache = "ccache"
-,   cxx = "xcrun -sdk macosx clang"
-,   sc = "xcrun -sdk macosx swiftc"
-,   mm = "xcrun -sdk macosx clang"
-,   builddir = "build"
-,   mxx = "xcrun -sdk macosx clang++"
-,   ld = "xcrun -sdk macosx clang++"
-,   mode = "release"
-,   kind = "static"
+    sh = "xcrun -sdk macosx clang++",
+    xcode_dir = "/Applications/Xcode.app",
+    ar = "xcrun -sdk macosx ar",
+    small = true,
+    object = false,
+    arch = "x86_64",
+    xcode_sdkver = "10.12",
+    ex = "xcrun -sdk macosx ar",
+    cc = "xcrun -sdk macosx clang",
+    rc = "rustc",
+    plat = "macosx",
+    micro = false,
+    host = "macosx",
+    as = "xcrun -sdk macosx clang",
+    dc = "dmd",
+    gc = "go",
+    openssl = false,
+    ccache = "ccache",
+    cxx = "xcrun -sdk macosx clang",
+    sc = "xcrun -sdk macosx swiftc",
+    mm = "xcrun -sdk macosx clang",
+    builddir = "build",
+    mxx = "xcrun -sdk macosx clang++",
+    ld = "xcrun -sdk macosx clang++",
+    mode = "release",
+    kind = "static"
 }
 ```

+ 1 - 1
docs/zh/api/scripts/option-instance.md

@@ -1,6 +1,6 @@
 # 选项实例 {#option-instance}
 
-此页面描述了 [配置选项](https://xmake.io/#/zh-cn/manual/configuration_option.md) 的 `on_load()`、`on_check()` 或 `after_check()` 等函数的 `option` 接口
+此页面描述了 [配置选项](/zh/api/description/configuration-option) 的 `on_load()`、`on_check()` 或 `after_check()` 等函数的 `option` 接口
 
 
 ## option:value

+ 3 - 3
docs/zh/api/scripts/package-instance.md

@@ -1,6 +1,6 @@
 # 包实例 {#package-instance}
 
-此页面描述了 [包依赖管理](https://xmake.io/#/zh-cn/manual/package_dependencies.md) 的 `on_load()`、`on_install()` 或 `on_test()` 等函数的 `package` 接口
+此页面描述了 [包依赖管理](/zh/api/description/package-dependencies) 的 `on_load()`、`on_install()` 或 `on_test()` 等函数的 `package` 接口
 
 ## package:name
 
@@ -70,13 +70,13 @@ package:add("defines", "SDL_MAIN_HANDLED")
   + cygwin
   + bsd
 
-如果包是二进制的,则会返回 [`os.host`](https://xmake.io/#/zh-cn/manual/builtin_modules.md#oshost) 的值
+如果包是二进制的,则会返回 [`os.host`](/zh/api/scripts/builtin-modules/os#os-host) 的值
 
 ## package:arch
 
 - 获取包的架构(例如 x86、x64、x86_64)
 
-如果包是二进制的,则返回 [`os.arch`](https://xmake.io/#/zh-cn/manual/builtin_modules.md#osarch)
+如果包是二进制的,则返回 [`os.arch`](/zh/api/scripts/builtin-modules/os#os-arch)
 
 ## package:targetos