瀏覽代碼

autoupdate docs by xmake-repo/ci

ruki 2 年之前
父節點
當前提交
00858a0bd1

+ 15 - 0
mirror/getting_started.html

@@ -248,6 +248,21 @@ envs(1) found!
 <pre><code class="lang-console">$ xrepo env -b base python --version
 </code></pre>
 <p><code>xrepo env -b/--bind</code> is to bind the specified virtual environment. For more details, see: <a href="https://github.com/xmake-io/xmake/issues/1762">#1762</a></p>
+<h4 id="quickswitchingoftemporaryvirtualenvironments">Quick switching of temporary virtual environments</h4>
+<p>Not only can we manage switching environments by configuring environment configuration files such as <code>myenv.lua</code>, but we can also specify a list of environment packages to bind to on the command line on an ad hoc basis, allowing for quick switching without any configuration.</p>
+<p>For example, if we want to enter an environment with python 3.0, luajit and cmake, all we need to do is to execute</p>
+<pre><code class="lang-console">$ xrepo env -b "python 3.x,luajit,cmake" shell
+[python,luajit,cmake] $ python --version
+Python 3.10.6
+[python,luajit,cmake] $ cmake --version
+cmake version 3.25.3
+`
+</code></pre>
+<p>Xmake will automatically install the dependencies and open a new shell environment, which will also have a prompt on the left side of the terminal.</p>
+<p>If we want to exit the current environment, we simply need to run</p>
+<pre><code class="lang-console">[python,luajit,cmake] $ xrepo env quit
+$
+</code></pre>
 <h3 id="showthegivenpackageinformation">Show the given package information</h3>
 <pre><code class="lang-console">$ xrepo info zlib
 The package info of project:

+ 1 - 1
mirror/packages/linux.html

@@ -1120,7 +1120,7 @@
 </tr>
 <tr>
 <td>Versions</td>
-<td>1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.7.0</td>
+<td>1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.7.0, 1.7.1</td>
 </tr>
 <tr>
 <td>Architectures</td>

+ 1 - 1
mirror/packages/macosx.html

@@ -931,7 +931,7 @@
 </tr>
 <tr>
 <td>Versions</td>
-<td>1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.7.0</td>
+<td>1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.7.0, 1.7.1</td>
 </tr>
 <tr>
 <td>Architectures</td>

+ 1 - 1
mirror/packages/windows.html

@@ -762,7 +762,7 @@
 </tr>
 <tr>
 <td>Versions</td>
-<td>1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.7.0</td>
+<td>1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.7.0, 1.7.1</td>
 </tr>
 <tr>
 <td>Architectures</td>

+ 14 - 0
mirror/zh-cn/getting_started.html

@@ -248,6 +248,20 @@ envs(1) found!
 <pre><code class="lang-console">$ xrepo env -b base python --version
 </code></pre>
 <p><code>xrepo env -b/--bind</code> 就是绑定指定的虚拟环境,更多详情见:<a href="https://github.com/xmake-io/xmake/issues/1762">#1762</a></p>
+<h4 id="">快速切换临时虚拟环境</h4>
+<p>我们不仅可以通过配置 <code>myenv.lua</code> 等环境配置文件,来管理切换环境,也可以直接在命令行临时指定需要绑定的环境包列表,实现快速切换,无需任何配置。</p>
+<p>例如,我们想进入一个带有 python 3.0, luajit 和 cmake 的环境,只需要执行:</p>
+<pre><code class="lang-console">$ xrepo env -b "python 3.x,luajit,cmake" shell
+[python,luajit,cmake] $ python --version
+Python 3.10.6
+[python,luajit,cmake] $ cmake --version
+cmake version 3.25.3
+</code></pre>
+<p>Xmake 会自动安装相关依赖,然后开启一个新的 shell 环境,新环境终端左边也有 prompt 提示。</p>
+<p>如果我们想退出当前环境,仅仅需要执行</p>
+<pre><code class="lang-console">[python,luajit,cmake] $ xrepo env quit
+$
+</code></pre>
 <h3 id="">查看包信息</h3>
 <pre><code class="lang-console">$ xrepo info zlib
 The package info of project:

+ 1 - 1
packages/linux.md

@@ -675,7 +675,7 @@ add_requires("bc")
 | -- | -- |
 | Homepage | [https://github.com/google/benchmark](https://github.com/google/benchmark) |
 | License | Apache-2.0 |
-| Versions | 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.7.0 |
+| Versions | 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.7.0, 1.7.1 |
 | Architectures | arm64-v8a, armv7, armv7s, i386, mips, mips64, mips64el, mipsel, x86_64 |
 | Definition | [benchmark/xmake.lua](https://github.com/xmake-io/xmake-repo/blob/master/packages/b/benchmark/xmake.lua) |
 

+ 1 - 1
packages/macosx.md

@@ -554,7 +554,7 @@ add_requires("bc")
 | -- | -- |
 | Homepage | [https://github.com/google/benchmark](https://github.com/google/benchmark) |
 | License | Apache-2.0 |
-| Versions | 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.7.0 |
+| Versions | 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.7.0, 1.7.1 |
 | Architectures | arm64, x86_64 |
 | Definition | [benchmark/xmake.lua](https://github.com/xmake-io/xmake-repo/blob/master/packages/b/benchmark/xmake.lua) |
 

+ 1 - 1
packages/windows.md

@@ -438,7 +438,7 @@ add_requires("bazel")
 | -- | -- |
 | Homepage | [https://github.com/google/benchmark](https://github.com/google/benchmark) |
 | License | Apache-2.0 |
-| Versions | 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.7.0 |
+| Versions | 1.5.2, 1.5.3, 1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.6.1, 1.7.0, 1.7.1 |
 | Architectures | arm64, x64, x86 |
 | Definition | [benchmark/xmake.lua](https://github.com/xmake-io/xmake-repo/blob/master/packages/b/benchmark/xmake.lua) |
 

+ 15 - 15
sitemap.xml

@@ -7,77 +7,77 @@
     
 <url>
   <loc>https://xrepo.xmake.io</loc>
-  <lastmod>2023-04-04T02:47:56+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:44+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/index.html</loc>
-  <lastmod>2023-04-04T02:47:59+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:47+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/zh-cn/index.html</loc>
-  <lastmod>2023-04-04T02:47:59+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:47+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/zh-cn/getting_started.html</loc>
-  <lastmod>2023-04-04T02:47:59+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:48+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/getting_started.html</loc>
-  <lastmod>2023-04-04T02:48:00+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:48+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/packages/linux.html</loc>
-  <lastmod>2023-04-04T02:48:00+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:48+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/packages/windows.html</loc>
-  <lastmod>2023-04-04T02:48:00+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:49+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/packages/mingw.html</loc>
-  <lastmod>2023-04-04T02:48:01+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:49+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/packages/iphoneos.html</loc>
-  <lastmod>2023-04-04T02:48:01+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:49+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/packages/cross.html</loc>
-  <lastmod>2023-04-04T02:48:01+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:50+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/packages/macosx.html</loc>
-  <lastmod>2023-04-04T02:48:02+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:50+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/packages/android.html</loc>
-  <lastmod>2023-04-04T02:48:02+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:51+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/packages/bsd.html</loc>
-  <lastmod>2023-04-04T02:48:02+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:51+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/packages/msys.html</loc>
-  <lastmod>2023-04-04T02:48:02+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:51+08:00</lastmod>
 </url>
 
 <url>
   <loc>https://xrepo.xmake.io/mirror/packages/wasm.html</loc>
-  <lastmod>2023-04-04T02:48:03+08:00</lastmod>
+  <lastmod>2023-04-05T12:44:51+08:00</lastmod>
 </url>
 
 </urlset>