From 5c4032ec25a6b86ef7e4c097976a13373c3f5925 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 23 Jun 2019 20:55:31 +0800 Subject: fix some links --- manual/conditions.md | 4 ++-- zh-cn/manual/conditions.md | 4 ++-- 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}) -- cgit v1.2.3