aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <waruqi@gmail.com>2019-06-23 20:55:31 +0800
committerruki <waruqi@gmail.com>2019-06-23 20:55:31 +0800
commit5c4032ec25a6b86ef7e4c097976a13373c3f5925 (patch)
tree4b0db6d1b3bc166ada82f77bec0a085047b0d31f
parent6f7387e12aeac26276b520137101b7f97f1d2ada (diff)
downloadxmake-docs-5c4032ec25a6b86ef7e4c097976a13373c3f5925.tar.gz
xmake-docs-5c4032ec25a6b86ef7e4c097976a13373c3f5925.zip
fix some links
-rw-r--r--manual/conditions.md4
-rw-r--r--zh-cn/manual/conditions.md4
2 files changed, 4 insertions, 4 deletions
diff --git a/manual/conditions.md b/manual/conditions.md
index c516b81e..34b1fe48 100644
--- a/manual/conditions.md
+++ b/manual/conditions.md
@@ -108,7 +108,7 @@ Support hosts:
* linux
* macosx
-We can also get it from [$(host)](#var-host) or [os.host](#os-host).
+We can also get it from [$(host)](/manual/builtin_variables?id=varhost) or [os.host](/manual/builtin_modules?id=oshost).
### is_mode
@@ -293,7 +293,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](#add_requires).
+It is usually used to [add_requires](/zh-cn/manual/global_interfaces?id=add_requires).
```lua
add_requires("tbox", {optional = true})
diff --git a/zh-cn/manual/conditions.md b/zh-cn/manual/conditions.md
index 5de829fd..c84fc5e5 100644
--- a/zh-cn/manual/conditions.md
+++ b/zh-cn/manual/conditions.md
@@ -121,7 +121,7 @@ end
* linux
* macosx
-你也可以通过[$(host)](#var-host)内置变量或者[os.host](#os-host)接口,来进行获取
+你也可以通过[$(host)](/zh-cn/manual/builtin_variables?id=varhost)内置变量或者[os.host](/zh-cn/manual/builtin_modules?id=oshost)接口,来进行获取
### is_mode
@@ -314,7 +314,7 @@ $ xmake f --test1=false
此接口从2.2.3版本开始引入,用于检测远程依赖包是否存在或启用,可用于描述域。
-一般配合[add_requires](#add_requires)一起使用,例如:
+一般配合[add_requires](/zh-cn/manual/global_interfaces?id=add_requires)一起使用,例如:
```lua
add_requires("tbox", {optional = true})