From ca29e2b3aaf020e0c891e2257ab9018b4445c1f5 Mon Sep 17 00:00:00 2001 From: sunrisepeak Date: Mon, 4 May 2026 19:26:27 +0800 Subject: [PATCH] chore: update xlings ecosystem references --- .devcontainer/postCreate.sh | 2 +- .github/workflows/dslings-ref-ci.yml | 4 ++-- .github/workflows/online-ebook.yml | 4 ++-- README.md | 4 ++-- README.zh.hant.md | 4 ++-- README.zh.md | 4 ++-- book/en/src/README.md | 4 ++-- book/en/src/base/chapter_1.md | 16 ++++++++-------- book/en/src/cpp11/00-auto-and-decltype.md | 2 +- book/en/src/cpp11/01-default-and-delete.md | 2 +- book/en/src/cpp11/02-final-and-override.md | 2 +- book/en/src/cpp11/03-trailing-return-type.md | 2 +- book/en/src/cpp11/04-rvalue-references.md | 2 +- book/en/src/cpp11/05-move-semantics.md | 2 +- book/en/src/cpp11/06-scoped-enums.md | 2 +- book/en/src/cpp11/07-constexpr.md | 2 +- book/en/src/cpp11/08-literal-type.md | 2 +- book/en/src/cpp11/09-list-initialization.md | 2 +- .../en/src/cpp11/10-delegating-constructors.md | 2 +- book/en/src/cpp11/11-inherited-constructors.md | 2 +- book/en/src/cpp11/14-type-alias.md | 2 +- book/en/src/cpp11/15-variadic-templates.md | 2 +- book/en/src/cpp11/16-generalized-unions.md | 2 +- book/en/src/cpp11/17-pod-type.md | 2 +- book/src/README.md | 4 ++-- book/src/base/chapter_1.md | 18 +++++++++--------- book/src/cpp11/00-auto-and-decltype.md | 2 +- book/src/cpp11/01-default-and-delete.md | 2 +- book/src/cpp11/02-final-and-override.md | 2 +- book/src/cpp11/03-trailing-return-type.md | 2 +- book/src/cpp11/04-rvalue-references.md | 2 +- book/src/cpp11/05-move-semantics.md | 2 +- book/src/cpp11/06-scoped-enums.md | 2 +- book/src/cpp11/07-constexpr.md | 2 +- book/src/cpp11/08-literal-type.md | 2 +- book/src/cpp11/09-list-initialization.md | 2 +- book/src/cpp11/10-delegating-constructors.md | 2 +- book/src/cpp11/11-inherited-constructors.md | 2 +- book/src/cpp11/14-type-alias.md | 2 +- book/src/cpp11/15-variadic-templates.md | 2 +- book/src/cpp11/16-generalized-unions.md | 2 +- book/src/cpp11/17-pod-type.md | 2 +- dslings/en/hello-mcpp.cpp | 8 ++++---- dslings/hello-mcpp.cpp | 6 +++--- 44 files changed, 71 insertions(+), 71 deletions(-) diff --git a/.devcontainer/postCreate.sh b/.devcontainer/postCreate.sh index b4d70a1..53f65e0 100644 --- a/.devcontainer/postCreate.sh +++ b/.devcontainer/postCreate.sh @@ -6,7 +6,7 @@ sudo apt-get update sudo apt-get install -y ncurses-bin libtinfo6 libncursesw6 curl ca-certificates git if ! command -v xlings >/dev/null 2>&1; then - curl -fsSL https://raw.githubusercontent.com/d2learn/xlings/refs/heads/main/tools/other/quick_install.sh | bash -s -- v0.4.2 + curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s -- v0.4.14 fi echo "xlings installed" diff --git a/.github/workflows/dslings-ref-ci.yml b/.github/workflows/dslings-ref-ci.yml index 1cbfd2d..ab21712 100644 --- a/.github/workflows/dslings-ref-ci.yml +++ b/.github/workflows/dslings-ref-ci.yml @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest env: - XLINGS_VERSION: "0.4.3" + XLINGS_VERSION: "0.4.14" steps: - uses: actions/checkout@v4 @@ -31,7 +31,7 @@ jobs: - name: Install Xlings ${{ env.XLINGS_VERSION }} run: | set -eu - curl -fsSL "https://github.com/d2learn/xlings/releases/download/v${XLINGS_VERSION}/xlings-${XLINGS_VERSION}-linux-x86_64.tar.gz" \ + curl -fsSL "https://github.com/openxlings/xlings/releases/download/v${XLINGS_VERSION}/xlings-${XLINGS_VERSION}-linux-x86_64.tar.gz" \ | tar -xzf - -C /tmp /tmp/xlings-${XLINGS_VERSION}-linux-x86_64/bin/xlings self install echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH" diff --git a/.github/workflows/online-ebook.yml b/.github/workflows/online-ebook.yml index 499323c..42a91a2 100644 --- a/.github/workflows/online-ebook.yml +++ b/.github/workflows/online-ebook.yml @@ -37,7 +37,7 @@ jobs: working-directory: book env: - XLINGS_VERSION: "0.4.3" + XLINGS_VERSION: "0.4.14" MDBOOK_VERSION: 0.4.43 steps: @@ -46,7 +46,7 @@ jobs: - name: Install Xlings ${{ env.XLINGS_VERSION }} run: | set -eu - curl -fsSL "https://github.com/d2learn/xlings/releases/download/v${XLINGS_VERSION}/xlings-${XLINGS_VERSION}-linux-x86_64.tar.gz" \ + curl -fsSL "https://github.com/openxlings/xlings/releases/download/v${XLINGS_VERSION}/xlings-${XLINGS_VERSION}-linux-x86_64.tar.gz" \ | tar -xzf - -C /tmp /tmp/xlings-${XLINGS_VERSION}-linux-x86_64/bin/xlings self install echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH" diff --git a/README.md b/README.md index 2c7ed4d..a6a8253 100644 --- a/README.md +++ b/README.md @@ -51,13 +51,13 @@ #### Linux/MacOS ```bash -curl -fsSL https://d2learn.org/xlings-install.sh | bash +curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash ``` #### Windows - PowerShell ```bash -irm https://d2learn.org/xlings-install.ps1.txt | iex +irm https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.ps1 | iex ``` > tips: xlings -> [details](https://xlings.d2learn.org) diff --git a/README.zh.hant.md b/README.zh.hant.md index 2a72700..97139d0 100644 --- a/README.zh.hant.md +++ b/README.zh.hant.md @@ -51,13 +51,13 @@ #### Linux/MacOS ```bash -curl -fsSL https://d2learn.org/xlings-install.sh | bash +curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash ``` #### Windows - PowerShell ```bash -irm https://d2learn.org/xlings-install.ps1.txt | iex +irm https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.ps1 | iex ``` > 註: xlings工具 -> [詳情](https://xlings.d2learn.org) diff --git a/README.zh.md b/README.zh.md index 5cd6e2a..c88aede 100644 --- a/README.zh.md +++ b/README.zh.md @@ -51,13 +51,13 @@ #### Linux/MacOS ```bash -curl -fsSL https://d2learn.org/xlings-install.sh | bash +curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash ``` #### Windows - PowerShell ```bash -irm https://d2learn.org/xlings-install.ps1.txt | iex +irm https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.ps1 | iex ``` > 注: xlings工具 -> [详情](https://xlings.d2learn.org) diff --git a/book/en/src/README.md b/book/en/src/README.md index 2c18feb..5f2b455 100644 --- a/book/en/src/README.md +++ b/book/en/src/README.md @@ -47,13 +47,13 @@ #### Linux/MacOS ```bash -curl -fsSL https://d2learn.org/xlings-install.sh | bash +curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash ``` #### Windows - PowerShell ```bash -irm https://d2learn.org/xlings-install.ps1.txt | iex +irm https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.ps1 | iex ``` > tips: xlings -> [details](https://xlings.d2learn.org) diff --git a/book/en/src/base/chapter_1.md b/book/en/src/base/chapter_1.md index 87bf204..9baf009 100644 --- a/book/en/src/base/chapter_1.md +++ b/book/en/src/base/chapter_1.md @@ -17,19 +17,19 @@ **Linux** ```bash -curl -fsSL https://d2learn.org/xlings-install.sh | bash +curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash ``` or ```bash -wget https://d2learn.org/xlings-install.sh -O - | bash +wget https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh -O - | bash ``` **Windows - PowerShell** ```bash -Invoke-Expression (Invoke-Webrequest 'https://d2learn.org/xlings-install.ps1.txt' -UseBasicParsing).Content +Invoke-Expression (Invoke-Webrequest 'https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.ps1' -UseBasicParsing).Content ``` ## 1. Get Project and Auto-configure Environment @@ -74,7 +74,7 @@ d2x update ## 2. Automated Detection Program Introduction -After entering the automated code practice environment using `xlings checker`, the tool will automatically locate and open the corresponding practice code file, and output compiler errors and hints in the console. The detection program generally has two detection phases: the first is compile-time detection, where you need to fix compilation errors based on hints in the practice code and compiler error messages in the console; the second is runtime detection, which checks if the current code passes all checkpoints when running. When compilation errors are fixed and all checkpoints are passed, the console will display that the current exercise is completed and prompt you to proceed to the next exercise. +After entering the automated code practice environment using `d2x checker`, the tool will automatically locate and open the corresponding practice code file, and output compiler errors and hints in the console. The detection program generally has two detection phases: the first is compile-time detection, where you need to fix compilation errors based on hints in the practice code and compiler error messages in the console; the second is runtime detection, which checks if the current code passes all checkpoints when running. When compilation errors are fixed and all checkpoints are passed, the console will display that the current exercise is completed and prompt you to proceed to the next exercise. **Practice Code File Example** @@ -87,7 +87,7 @@ After entering the automated code practice environment using `xlings checker`, t // // Tips: // This project uses the xlings tool to build automated code practice projects. Execute -// xlings checker in the project root directory to enter "compiler-driven development mode" +// d2x checker in the project root directory to enter "compiler-driven development mode" // for automatic exercise code detection. // You need to modify errors in the code based on console error messages and hints. // When all compilation errors and runtime checkpoints are fixed, you can delete or comment @@ -140,13 +140,13 @@ int main() { [HONLY LOGW]: main: dslings/hello-mcpp.cpp:26 - 🥳 Delete the D2X_WAIT to continue... -AI-Tips-Config: https://d2learn.org/docs/xlings -->> AI hints (requires configuring large model key, optional) +AI-Tips-Config: https://xlings.d2learn.org/en/documents/d2x/intro.html -->> AI hints (requires configuring large model key, optional) ---------E-Files--------- dslings/hello-mcpp.cpp -->> Current detected file ------------------------- -Homepage: https://github.com/d2learn/xlings +Homepage: https://github.com/openxlings/xlings ``` ## 3. Configure Project (Optional) @@ -195,7 +195,7 @@ xlings install **Tutorial Discussion Section:** [https://forum.d2learn.org/category/20](https://forum.d2learn.org/category/20) -**xlings:** [https://github.com/d2learn/xlings](https://github.com/d2learn/xlings) +**xlings:** [https://github.com/openxlings/xlings](https://github.com/openxlings/xlings) **Tutorial Repository:** [https://github.com/mcpp-community/d2mcpp](https://github.com/mcpp-community/d2mcpp) diff --git a/book/en/src/cpp11/00-auto-and-decltype.md b/book/en/src/cpp11/00-auto-and-decltype.md index f0cd167..6993249 100644 --- a/book/en/src/cpp11/00-auto-and-decltype.md +++ b/book/en/src/cpp11/00-auto-and-decltype.md @@ -186,4 +186,4 @@ decltype( (b) ) // Deduction result is int & - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/01-default-and-delete.md b/book/en/src/cpp11/01-default-and-delete.md index 55288df..4c6466f 100644 --- a/book/en/src/cpp11/01-default-and-delete.md +++ b/book/en/src/cpp11/01-default-and-delete.md @@ -196,4 +196,4 @@ d2x checker default-and-delete-2 - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/02-final-and-override.md b/book/en/src/cpp11/02-final-and-override.md index bbbf0d2..2d44627 100644 --- a/book/en/src/cpp11/02-final-and-override.md +++ b/book/en/src/cpp11/02-final-and-override.md @@ -190,4 +190,4 @@ d2x checker final-and-override - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/03-trailing-return-type.md b/book/en/src/cpp11/03-trailing-return-type.md index c6c134e..1564e43 100644 --- a/book/en/src/cpp11/03-trailing-return-type.md +++ b/book/en/src/cpp11/03-trailing-return-type.md @@ -179,4 +179,4 @@ d2x checker trailing-return-type - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/04-rvalue-references.md b/book/en/src/cpp11/04-rvalue-references.md index 6e037d7..33b7fce 100644 --- a/book/en/src/cpp11/04-rvalue-references.md +++ b/book/en/src/cpp11/04-rvalue-references.md @@ -169,4 +169,4 @@ d2x checker rvalue-references - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/05-move-semantics.md b/book/en/src/cpp11/05-move-semantics.md index 326e2c9..f959246 100644 --- a/book/en/src/cpp11/05-move-semantics.md +++ b/book/en/src/cpp11/05-move-semantics.md @@ -206,4 +206,4 @@ d2x checker move-semantics-2 - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/06-scoped-enums.md b/book/en/src/cpp11/06-scoped-enums.md index a2837e3..69e1871 100644 --- a/book/en/src/cpp11/06-scoped-enums.md +++ b/book/en/src/cpp11/06-scoped-enums.md @@ -219,4 +219,4 @@ d2x checker scoped-enums-1 - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/07-constexpr.md b/book/en/src/cpp11/07-constexpr.md index 6688f3a..b5bd7c5 100644 --- a/book/en/src/cpp11/07-constexpr.md +++ b/book/en/src/cpp11/07-constexpr.md @@ -195,4 +195,4 @@ d2x checker constexpr - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/08-literal-type.md b/book/en/src/cpp11/08-literal-type.md index 73ff77f..636bfbf 100644 --- a/book/en/src/cpp11/08-literal-type.md +++ b/book/en/src/cpp11/08-literal-type.md @@ -193,4 +193,4 @@ d2x checker literal-type-1 - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/09-list-initialization.md b/book/en/src/cpp11/09-list-initialization.md index 9f05f36..ed7d914 100644 --- a/book/en/src/cpp11/09-list-initialization.md +++ b/book/en/src/cpp11/09-list-initialization.md @@ -182,4 +182,4 @@ MyVector v1(1, 2); // Matches MyVector(int x, int y) - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/10-delegating-constructors.md b/book/en/src/cpp11/10-delegating-constructors.md index e39eb46..98d7a47 100644 --- a/book/en/src/cpp11/10-delegating-constructors.md +++ b/book/en/src/cpp11/10-delegating-constructors.md @@ -208,4 +208,4 @@ public: - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/11-inherited-constructors.md b/book/en/src/cpp11/11-inherited-constructors.md index 78a4e7a..f179701 100644 --- a/book/en/src/cpp11/11-inherited-constructors.md +++ b/book/en/src/cpp11/11-inherited-constructors.md @@ -237,4 +237,4 @@ d2x checker inherited-constructors - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/14-type-alias.md b/book/en/src/cpp11/14-type-alias.md index 30aa2e7..d35abe8 100644 --- a/book/en/src/cpp11/14-type-alias.md +++ b/book/en/src/cpp11/14-type-alias.md @@ -208,4 +208,4 @@ d2x checker type-alias - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/15-variadic-templates.md b/book/en/src/cpp11/15-variadic-templates.md index a0673d4..54a4510 100644 --- a/book/en/src/cpp11/15-variadic-templates.md +++ b/book/en/src/cpp11/15-variadic-templates.md @@ -242,4 +242,4 @@ d2x checker variadic-templates - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) diff --git a/book/en/src/cpp11/16-generalized-unions.md b/book/en/src/cpp11/16-generalized-unions.md index 9747d98..27fb0a2 100644 --- a/book/en/src/cpp11/16-generalized-unions.md +++ b/book/en/src/cpp11/16-generalized-unions.md @@ -180,4 +180,4 @@ TODO - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) \ No newline at end of file +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) \ No newline at end of file diff --git a/book/en/src/cpp11/17-pod-type.md b/book/en/src/cpp11/17-pod-type.md index 643a397..b4d5cc5 100644 --- a/book/en/src/cpp11/17-pod-type.md +++ b/book/en/src/cpp11/17-pod-type.md @@ -155,4 +155,4 @@ d2x checker pod-type - [Discussion Forum](https://forum.d2learn.org/category/20) - [d2mcpp Tutorial Repository](https://github.com/mcpp-community/d2mcpp) - [Tutorial Video List](https://space.bilibili.com/65858958/lists/5208246) -- [Tutorial Support Tool - xlings](https://github.com/d2learn/xlings) \ No newline at end of file +- [Tutorial Support Tool - xlings](https://github.com/openxlings/xlings) \ No newline at end of file diff --git a/book/src/README.md b/book/src/README.md index 16721ba..02c350e 100644 --- a/book/src/README.md +++ b/book/src/README.md @@ -47,13 +47,13 @@ #### Linux/MacOS ```bash -curl -fsSL https://d2learn.org/xlings-install.sh | bash +curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash ``` #### Windows - PowerShell ```bash -irm https://d2learn.org/xlings-install.ps1.txt | iex +irm https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.ps1 | iex ``` > 注: xlings工具 -> [详情](https://xlings.d2learn.org) diff --git a/book/src/base/chapter_1.md b/book/src/base/chapter_1.md index 4ac33e8..fabfeb8 100644 --- a/book/src/base/chapter_1.md +++ b/book/src/base/chapter_1.md @@ -8,28 +8,28 @@ # 使用说明 -**d2mcpp**是一个强调动手实践的现代C++核心语言特性教程项目。基于[xlings(d2x)工具](https://github.com/d2learn/xlings)搭建了一套**编译器驱动开发模式**的代码练习, 可以自动化的检测练习代码的状态和跳转到下一个练习... +**d2mcpp**是一个强调动手实践的现代C++核心语言特性教程项目。基于[xlings(d2x)工具](https://github.com/openxlings/xlings)搭建了一套**编译器驱动开发模式**的代码练习, 可以自动化的检测练习代码的状态和跳转到下一个练习... ## 0.xlings工具安装 -> xlings包含教程项目所需的工具 - [更多工具细节](https://github.com/d2learn/xlings) +> xlings包含教程项目所需的工具 - [更多工具细节](https://github.com/openxlings/xlings) **Linux** ```bash -curl -fsSL https://d2learn.org/xlings-install.sh | bash +curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash ``` or ```bash -wget https://d2learn.org/xlings-install.sh -O - | bash +wget https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh -O - | bash ``` **Windows - PowerShell** ```bash -Invoke-Expression (Invoke-Webrequest 'https://d2learn.org/xlings-install.ps1.txt' -UseBasicParsing).Content +Invoke-Expression (Invoke-Webrequest 'https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.ps1' -UseBasicParsing).Content ``` ## 1.获取项目及自动配置环境 @@ -87,7 +87,7 @@ d2x update // // Tips/提示: // 该项目是使用xlings工具搭建的自动化代码练习项目, 通过在项目根目录下 -// 执行 xlings checker 进入"编译器驱动开发模式"的练习代码自动检测. +// 执行 d2x checker 进入"编译器驱动开发模式"的练习代码自动检测. // 你需要根据控制台的报错和提示信息, 修改代码中的错误. 当修复所有编译错误和 // 运行时检查点后, 你可以删除或注释掉代码中的 D2X_WAIT 宏, 会自动进入下一个练习. // @@ -138,13 +138,13 @@ int main() { [HONLY LOGW]: main: dslings/hello-mcpp.cpp:26 - 🥳 Delete the D2X_WAIT to continue... -AI-Tips-Config: https://d2learn.org/docs/xlings -->> AI提示(需要配置大模型的key, 可不使用) +AI-Tips-Config: https://xlings.d2learn.org/documents/d2x/intro.html -->> AI提示(需要配置大模型的key, 可不使用) ---------E-Files--------- dslings/hello-mcpp.cpp -->> 当前检测的文件 ------------------------- -Homepage: https://github.com/d2learn/xlings +Homepage: https://github.com/openxlings/xlings ``` ## 3.配置项目(可选) @@ -193,7 +193,7 @@ xlings install **教程讨论版块:** [https://forum.d2learn.org/category/20](https://forum.d2learn.org/category/20) -**xlings:** [https://github.com/d2learn/xlings](https://github.com/d2learn/xlings) +**xlings:** [https://github.com/openxlings/xlings](https://github.com/openxlings/xlings) **教程仓库:** [https://github.com/mcpp-community/d2mcpp](https://github.com/mcpp-community/d2mcpp) diff --git a/book/src/cpp11/00-auto-and-decltype.md b/book/src/cpp11/00-auto-and-decltype.md index ad6a002..9162bea 100644 --- a/book/src/cpp11/00-auto-and-decltype.md +++ b/book/src/cpp11/00-auto-and-decltype.md @@ -186,4 +186,4 @@ decltype( (b) ) // 推导结果是 int & - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) \ No newline at end of file +- [教程支持工具-xlings](https://github.com/openxlings/xlings) \ No newline at end of file diff --git a/book/src/cpp11/01-default-and-delete.md b/book/src/cpp11/01-default-and-delete.md index 122de82..c8dedbb 100644 --- a/book/src/cpp11/01-default-and-delete.md +++ b/book/src/cpp11/01-default-and-delete.md @@ -195,4 +195,4 @@ d2x checker default-and-delete-2 - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) +- [教程支持工具-xlings](https://github.com/openxlings/xlings) diff --git a/book/src/cpp11/02-final-and-override.md b/book/src/cpp11/02-final-and-override.md index 209af04..fa40a7a 100644 --- a/book/src/cpp11/02-final-and-override.md +++ b/book/src/cpp11/02-final-and-override.md @@ -189,4 +189,4 @@ d2x checker final-and-override - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) +- [教程支持工具-xlings](https://github.com/openxlings/xlings) diff --git a/book/src/cpp11/03-trailing-return-type.md b/book/src/cpp11/03-trailing-return-type.md index 688028a..9fba383 100644 --- a/book/src/cpp11/03-trailing-return-type.md +++ b/book/src/cpp11/03-trailing-return-type.md @@ -179,4 +179,4 @@ d2x checker trailing-return-type - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) +- [教程支持工具-xlings](https://github.com/openxlings/xlings) diff --git a/book/src/cpp11/04-rvalue-references.md b/book/src/cpp11/04-rvalue-references.md index 0f97035..03d3b13 100644 --- a/book/src/cpp11/04-rvalue-references.md +++ b/book/src/cpp11/04-rvalue-references.md @@ -169,4 +169,4 @@ d2x checker rvalue-references - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) +- [教程支持工具-xlings](https://github.com/openxlings/xlings) diff --git a/book/src/cpp11/05-move-semantics.md b/book/src/cpp11/05-move-semantics.md index 61f7afa..6f18793 100644 --- a/book/src/cpp11/05-move-semantics.md +++ b/book/src/cpp11/05-move-semantics.md @@ -203,4 +203,4 @@ d2x checker move-semantics-2 - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) +- [教程支持工具-xlings](https://github.com/openxlings/xlings) diff --git a/book/src/cpp11/06-scoped-enums.md b/book/src/cpp11/06-scoped-enums.md index 859eacc..99c9066 100644 --- a/book/src/cpp11/06-scoped-enums.md +++ b/book/src/cpp11/06-scoped-enums.md @@ -219,4 +219,4 @@ d2x checker scoped-enums-1 - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) +- [教程支持工具-xlings](https://github.com/openxlings/xlings) diff --git a/book/src/cpp11/07-constexpr.md b/book/src/cpp11/07-constexpr.md index bfb1525..beee2e8 100644 --- a/book/src/cpp11/07-constexpr.md +++ b/book/src/cpp11/07-constexpr.md @@ -195,4 +195,4 @@ d2x checker constexpr - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) +- [教程支持工具-xlings](https://github.com/openxlings/xlings) diff --git a/book/src/cpp11/08-literal-type.md b/book/src/cpp11/08-literal-type.md index 7055654..d7da3ba 100644 --- a/book/src/cpp11/08-literal-type.md +++ b/book/src/cpp11/08-literal-type.md @@ -193,4 +193,4 @@ d2x checker literal-type-1 - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) +- [教程支持工具-xlings](https://github.com/openxlings/xlings) diff --git a/book/src/cpp11/09-list-initialization.md b/book/src/cpp11/09-list-initialization.md index 7ea4753..0ec452c 100644 --- a/book/src/cpp11/09-list-initialization.md +++ b/book/src/cpp11/09-list-initialization.md @@ -182,4 +182,4 @@ MyVector v1(1, 2); // 匹配MyVector(int x, int y) - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) \ No newline at end of file +- [教程支持工具-xlings](https://github.com/openxlings/xlings) \ No newline at end of file diff --git a/book/src/cpp11/10-delegating-constructors.md b/book/src/cpp11/10-delegating-constructors.md index 74c8d56..e4cb719 100644 --- a/book/src/cpp11/10-delegating-constructors.md +++ b/book/src/cpp11/10-delegating-constructors.md @@ -208,4 +208,4 @@ public: - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) \ No newline at end of file +- [教程支持工具-xlings](https://github.com/openxlings/xlings) \ No newline at end of file diff --git a/book/src/cpp11/11-inherited-constructors.md b/book/src/cpp11/11-inherited-constructors.md index f50d809..303e65a 100644 --- a/book/src/cpp11/11-inherited-constructors.md +++ b/book/src/cpp11/11-inherited-constructors.md @@ -239,4 +239,4 @@ d2x checker inherited-constructors - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) \ No newline at end of file +- [教程支持工具-xlings](https://github.com/openxlings/xlings) \ No newline at end of file diff --git a/book/src/cpp11/14-type-alias.md b/book/src/cpp11/14-type-alias.md index ec2d24f..5a78af6 100644 --- a/book/src/cpp11/14-type-alias.md +++ b/book/src/cpp11/14-type-alias.md @@ -208,4 +208,4 @@ d2x checker type-alias - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) +- [教程支持工具-xlings](https://github.com/openxlings/xlings) diff --git a/book/src/cpp11/15-variadic-templates.md b/book/src/cpp11/15-variadic-templates.md index 7e83b0e..9a259db 100644 --- a/book/src/cpp11/15-variadic-templates.md +++ b/book/src/cpp11/15-variadic-templates.md @@ -242,4 +242,4 @@ d2x checker variadic-templates - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) +- [教程支持工具-xlings](https://github.com/openxlings/xlings) diff --git a/book/src/cpp11/16-generalized-unions.md b/book/src/cpp11/16-generalized-unions.md index 229927f..0c771c7 100644 --- a/book/src/cpp11/16-generalized-unions.md +++ b/book/src/cpp11/16-generalized-unions.md @@ -179,4 +179,4 @@ TODO - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具-xlings](https://github.com/d2learn/xlings) \ No newline at end of file +- [教程支持工具-xlings](https://github.com/openxlings/xlings) \ No newline at end of file diff --git a/book/src/cpp11/17-pod-type.md b/book/src/cpp11/17-pod-type.md index 46c0e40..8b304ba 100644 --- a/book/src/cpp11/17-pod-type.md +++ b/book/src/cpp11/17-pod-type.md @@ -155,5 +155,5 @@ d2x checker pod-type - [交流讨论](https://forum.d2learn.org/category/20) - [d2mcpp 教程仓库](https://github.com/mcpp-community/d2mcpp) - [教程视频列表](https://space.bilibili.com/65858958/lists/5208246) -- [教程支持工具 - xlings](https://github.com/d2learn/xlings) +- [教程支持工具 - xlings](https://github.com/openxlings/xlings) diff --git a/dslings/en/hello-mcpp.cpp b/dslings/en/hello-mcpp.cpp index 04a7e71..f9f33b6 100644 --- a/dslings/en/hello-mcpp.cpp +++ b/dslings/en/hello-mcpp.cpp @@ -6,7 +6,7 @@ // // Tips: // This project is an automated code practice project built using the xlings tool. -// By executing `xlings checker` in the project root directory, you enter the +// By executing `d2x checker` in the project root directory, you enter the // "compiler-driven development mode" for automatic code practice detection. // You need to modify errors in the code based on console error messages and prompts. // After fixing all compilation errors and runtime checkpoints, you can delete or @@ -68,12 +68,12 @@ int main() { [HONLY LOGW]: main: dslings/hello-mcpp.cpp:26 - 🥳 Delete the D2X_WAIT to continue... -AI-Tips-Config: https://d2learn.org/docs/xlings -->> AI tips (requires configuring large model key, optional) +AI-Tips-Config: https://xlings.d2learn.org/en/documents/d2x/intro.html -->> AI tips (requires configuring large model key, optional) ---------E-Files--------- dslings/hello-mcpp.cpp -->> Current file being checked ------------------------- -Homepage: https://github.com/d2learn/xlings +Homepage: https://github.com/openxlings/xlings -*/ \ No newline at end of file +*/ diff --git a/dslings/hello-mcpp.cpp b/dslings/hello-mcpp.cpp index 2b17ce2..9cf4da3 100644 --- a/dslings/hello-mcpp.cpp +++ b/dslings/hello-mcpp.cpp @@ -6,7 +6,7 @@ // // Tips/提示: // 该项目是使用xlings工具搭建的自动化代码练习项目, 通过在项目根目录下 -// 执行 xlings checker 进入"编译器驱动开发模式"的练习代码自动检测. +// 执行 d2x checker 进入"编译器驱动开发模式"的练习代码自动检测. // 你需要根据控制台的报错和提示信息, 修改代码中的错误. 当修复所有编译错误和 // 运行时检查点后, 你可以删除或注释掉代码中的 D2X_WAIT 宏, 会自动进入下一个练习. // @@ -63,12 +63,12 @@ int main() { [HONLY LOGW]: main: dslings/hello-mcpp.cpp:26 - 🥳 Delete the D2X_WAIT to continue... -AI-Tips-Config: https://d2learn.org/docs/xlings -->> AI提示(需要配置大模型的key, 可不使用) +AI-Tips-Config: https://xlings.d2learn.org/documents/d2x/intro.html -->> AI提示(需要配置大模型的key, 可不使用) ---------E-Files--------- dslings/hello-mcpp.cpp -->> 当前检测的文件 ------------------------- -Homepage: https://github.com/d2learn/xlings +Homepage: https://github.com/openxlings/xlings */ \ No newline at end of file