Kaynağa Gözat

improve build

ruki 5 ay önce
ebeveyn
işleme
8132d4bd2f

+ 3 - 1
docs/posts/xmake-update-v2.5.1.md

@@ -90,7 +90,9 @@ The final configuration result is: zlib/pcre/libpng/libwebp is a shared library,
 
 Through pattern matching, we can put some common configurations of each package into the unified `add_requireconfs` to pre-configure, which greatly simplifies the definition of each `add_requires`.
 
-!> By default, for the same configuration, xmake will give priority to the configuration in add_requires instead of add_requireconfs.
+:::NOTE
+By default, for the same configuration, xmake will give priority to the configuration in add_requires instead of add_requireconfs.
+:::
 
 If the version is set in `add_requires("zlib 1.2.11")`, the configuration of add_requires will be used first, and the version configuration in add_requireconfs will be completely ignored. Of course, we can also completely override the version specified in `add_requires` through override .
 

+ 3 - 1
docs/posts/xmake-update-v2.5.8.md

@@ -255,7 +255,9 @@ target("demo")
 
 Among them, we set the code directory location of the foo package through `set_sourcedir()`, and then import the auxiliary module of `package.tools.cmake` through import to call cmake to build the code, xmake will automatically obtain the generated libfoo.a and the corresponding header document.
 
-!> If only the local source code is integrated, we don't need to set additional `add_urls` and `add_versions`.
+:::NOTE
+If only the local source code is integrated, we don't need to set additional `add_urls` and `add_versions`.
+:::
 
 For the configuration description of the package, see: [Package description description](/zh/guide/package-management/package-distribution).
 

+ 6 - 2
docs/posts/xmake-update-v2.6.6.md

@@ -366,7 +366,9 @@ We can also connect to multiple services at the same time, such as distributed c
 $ xmake service --connect --distcc --ccache
 ```
 
-!> If there is no parameter, the default connection is the remote compilation service.
+:::NOTE
+If there is no parameter, the default connection is the remote compilation service.
+:::
 
 #### Distributed compilation project
 
@@ -690,7 +692,9 @@ We can also connect to multiple services at the same time, such as distributed c
 $ xmake service --connect --distcc --ccache
 ```
 
-!> If there is no parameter, the default connection is the remote compilation service.
+:::NOTE
+If there is no parameter, the default connection is the remote compilation service.
+:::
 
 #### Disconnect server
 

+ 3 - 1
docs/posts/xmake-update-v2.8.3.md

@@ -46,7 +46,9 @@ First of all, we need to install VSCode-EmmyLua plugin in VSCode's plugin market
 $ xrepo update-repo
 ```
 
-!> Xmake also needs to be kept up to date.
+:::NOTE
+Xmake also needs to be kept up to date.
+:::
 
 Then, execute the following command in your own project directory:
 

+ 3 - 1
docs/posts/xmake-update-v2.8.5.md

@@ -451,7 +451,9 @@ $ xmake test -g "foo"
 $ xmake test -g "foo*"
 ```
 
-!> Running grouping also supports pattern matching.
+:::NOTE
+Running grouping also supports pattern matching.
+:::
 
 In addition, if the `group` parameter is not set to `add_tests`, we can also get the group name bound to the target by default.
 

+ 3 - 1
docs/posts/xmake-update-v2.8.6.md

@@ -271,7 +271,9 @@ packing build/xpack/test/test-macosx-v1.0.0.tar.gz ..
 pack ok
 ```
 
-!> It should be noted that to add binary files to the package, use `add_installfiles` instead of `add_sourcefiles`.
+:::NOTE
+It should be noted that to add binary files to the package, use `add_installfiles` instead of `add_sourcefiles`.
+:::
 
 We can also use `add_targets` to bind the target target programs and libraries that need to be installed. See the interface description for `add_targets` below for more details.
 

+ 6 - 2
docs/zh/posts/quickstart-12-custom-scripts.md

@@ -67,12 +67,16 @@ target("test")
 
 这是不是看着有点像lua了?虽说,平常可以把它当做普通配置问题,但是xmake毕竟基于lua,所以描述域还是支持lua的基础语言特性的。
 
-!> 不过需要注意的是,描述域虽然支持lua的脚本语法,但在描述域尽量不要写太复杂的lua脚本,比如一些耗时的函数调用和for循环
+:::注意
+不过需要注意的是,描述域虽然支持lua的脚本语法,但在描述域尽量不要写太复杂的lua脚本,比如一些耗时的函数调用和for循环
+:::
 
 并且在描述域,主要目的是为了设置配置项,因此xmake并没有完全开放所有的模块接口,很多接口在描述域是被禁止调用的,
 即使开放出来的一些可调用接口,也是完全只读的,不耗时的安全接口,比如:`os.getenv()`等读取一些常规的系统信息,用于配置逻辑的控制。
 
-!> 另外需要注意一点,xmake.lua是会被多次解析的,用于在不同阶段解析不同的配置域:比如:`option()`, `target()`等域。
+:::注意
+另外需要注意一点,xmake.lua是会被多次解析的,用于在不同阶段解析不同的配置域:比如:`option()`, `target()`等域。
+:::
 
 因此,不要想着在xmake.lua的描述域,写复杂的lua脚本,也不要在描述域调用print去显示信息,因为会被执行多遍,记住:会被执行多遍!!!
 

+ 3 - 1
docs/zh/posts/xmake-update-v2.5.1.md

@@ -96,7 +96,9 @@ add_requires("libcurl", {configs = {shared = false}})
 
 我们通过模式匹配的方式,可以将一些每个包的常用配置都放置到统一的 `add_requireconfs` 中去预先配置好,极大简化每个 `add_requires` 的定义。
 
-!> 默认情况下,对于相同的配置,xmake 会优先使用 add_requires 中的配置,而不是 add_requireconfs。
+:::注意
+默认情况下,对于相同的配置,xmake 会优先使用 add_requires 中的配置,而不是 add_requireconfs。
+:::
 
 如果 `add_requires("zlib 1.2.11")` 中设置了版本,就会优先使用 add_requires 的配置,完全忽略 add_requireconfs 里面的版本配置,当然我们也可以通过 override 来完全重写 `add_requires` 中指定的版本。
 

+ 3 - 1
docs/zh/posts/xmake-update-v2.5.8.md

@@ -256,7 +256,9 @@ target("demo")
 
 其中,我们通过 `set_sourcedir()` 来设置 foo 包的代码目录位置,然后通过 import 导入 `package.tools.cmake` 辅助模块来调用 cmake 构建代码,xmake 会自动获取生成的 libfoo.a 和对应的头文件。
 
-!> 如果仅仅本地源码集成,我们不需要额外设置 `add_urls` 和 `add_versions`。
+:::注意
+如果仅仅本地源码集成,我们不需要额外设置 `add_urls` 和 `add_versions`。
+:::
 
 关于包的配置描述,详情见:[包描述说明](https://xmake.io/zh/)
 

+ 12 - 4
docs/zh/posts/xmake-update-v2.6.6.md

@@ -166,7 +166,9 @@ $ cat ~/.xmake/service/client.conf
 }
 ```
 
-!> 如果去掉用户名,也没配置 token,那就是匿名模式,如果服务器也没配置 token,就是完全禁用认证,直接连接。
+:::注意
+如果去掉用户名,也没配置 token,那就是匿名模式,如果服务器也没配置 token,就是完全禁用认证,直接连接。
+:::
 
 #### 可信主机验证
 
@@ -307,7 +309,9 @@ $ cat ~/.xmake/service/server.conf
 
 我们可以在 hosts 列表里面配置多个服务器地址,以及对应的 token。
 
-!> 分布式编译,推荐使用 token 认证模式,因为密码模式,每台服务器连接时候都要输入一次密码,很繁琐。
+:::注意
+分布式编译,推荐使用 token 认证模式,因为密码模式,每台服务器连接时候都要输入一次密码,很繁琐。
+:::
 
 ```console
 $cat ~/.xmake/service/client.conf
@@ -342,7 +346,9 @@ $ xmake service --connect --distcc
 $ xmake service --connect --distcc --ccache
 ```
 
-!> 如果不带任何参数,默认连接的是远程编译服务。
+:::注意
+如果不带任何参数,默认连接的是远程编译服务。
+:::
 
 #### 分布式编译项目
 
@@ -648,7 +654,9 @@ $ xmake service --connect --ccache
 $ xmake service --connect --distcc --ccache
 ```
 
-!> 如果不带任何参数,默认连接的是远程编译服务。
+:::注意
+如果不带任何参数,默认连接的是远程编译服务。
+:::
 
 #### 断开连接
 

+ 3 - 1
docs/zh/posts/xmake-update-v2.8.3.md

@@ -49,7 +49,9 @@ Xmake ≈ Make/Ninja + CMake/Meson + Vcpkg/Conan + distcc + ccache/sccache
 xrepo update-repo
 ```
 
-!> Xmake 也需要保持最新版本。
+:::注意
+Xmake 也需要保持最新版本。
+:::
 
 然后,在自己的工程目录下执行以下命令:
 

+ 3 - 1
docs/zh/posts/xmake-update-v2.8.5.md

@@ -456,7 +456,9 @@ $ xmake test -g "foo"
 $ xmake test -g "foo*"
 ```
 
-!> 运行分组,也是支持模式匹配的。
+:::注意
+运行分组,也是支持模式匹配的。
+:::
 
 另外,如果没有设置 `group` 参数给 `add_tests`,我们也可以默认获取绑定到 target 的组名。
 

+ 3 - 1
docs/zh/posts/xmake-update-v2.8.6.md

@@ -274,7 +274,9 @@ packing build/xpack/test/test-macosx-v1.0.0.tar.gz ..
 pack ok
 ```
 
-!> 需要注意的是,打二进制文件到包里,使用的是 `add_installfiles` 而不是 `add_sourcefiles`。
+:::注意
+需要注意的是,打二进制文件到包里,使用的是 `add_installfiles` 而不是 `add_sourcefiles`。
+:::
 
 我们也可以通过 `add_targets` 去绑定需要安装的 target 目标程序和库。更多详情见下面关于 `add_targets` 的接口描述。
 

+ 1 - 0
scripts/build.sh

@@ -5,4 +5,5 @@ npm add vitepress-plugin-llms -D
 npm add gray-matter -D
 npm add markdown-it -D
 npm install
+npm run generate-blog
 vitepress build docs