Browse Source

fix links

ruki 6 months ago
parent
commit
645bf17ee1

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

@@ -106,7 +106,7 @@ Support hosts:
 * linux
 * macosx
 
-We can also get it from [$(host)](/manual/builtin_variables?id=varhost) or [os.host](/manual/builtin_modules?id=oshost).
+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).
 
 ## is_subhost
 
@@ -328,7 +328,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](/zh-cn/manual/global_interfaces?id=add_requires).
+It is usually used to [add_requires](https://xmake.io/#/zh-cn/manual/global_interfaces?id=add_requires).
 
 ```lua
 add_requires("tbox", {optional = true})

+ 1 - 1
docs/examples/cpp/wasm.md

@@ -6,7 +6,7 @@ $ xmake f -p wasm
 $ xmake
 ```
 
-For detailed wasm compilation configuration see: [wasm configuration](/guide/configuration?id=wasm)
+For detailed wasm compilation configuration see: [wasm configuration](https://xmake.io/#/guide/configuration?id=wasm)
 
 Alternatively, when compiling a file with the `-preload-file assets/xxx.md` setting, we can also simplify its setup by configuring
 

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

@@ -107,7 +107,7 @@ end
 * linux
 * macosx
 
-你也可以通过[$(host)](/zh-cn/manual/builtin_variables?id=varhost)内置变量或者[os.host](/zh-cn/manual/builtin_modules?id=oshost)接口,来进行获取
+你也可以通过[$(host)](https://xmake.io/#/zh-cn/manual/builtin_variables?id=varhost)内置变量或者[os.host](https://xmake.io/#/zh-cn/manual/builtin_modules?id=oshost)接口,来进行获取
 
 ## is_subhost
 
@@ -333,7 +333,7 @@ $ xmake f --test1=false
 
 此接口从2.2.3版本开始引入,用于检测远程依赖包是否存在或启用,可用于描述域。
 
-一般配合[add_requires](/zh-cn/manual/global_interfaces?id=add_requires)一起使用,例如:
+一般配合[add_requires](https://xmake.io/#/zh-cn/manual/global_interfaces?id=add_requires)一起使用,例如:
 
 ```lua
 add_requires("tbox", {optional = true})

+ 1 - 1
docs/zh/examples/cpp/wasm.md

@@ -5,7 +5,7 @@ $ xmake f -p wasm
 $ xmake
 ```
 
-详细的 Wasm 编译配置见:[Wasm 配置](/zh-cn/guide/configuration?id=wasm)
+详细的 Wasm 编译配置见:[Wasm 配置](https://xmake.io/#/zh-cn/guide/configuration?id=wasm)
 
 另外,在编译带有 `--preload-file assets/xxx.md` 设置的文件时候,我们也可以通过配置,简化对它的设置。