{"id":45664414,"url":"https://github.com/d2learn/d2x","last_synced_at":"2026-03-08T03:02:09.709Z","repository":{"id":325124795,"uuid":"1099769196","full_name":"d2learn/d2x","owner":"d2learn","description":"一个交互式教程项目搭建工具","archived":false,"fork":false,"pushed_at":"2026-02-23T18:54:02.000Z","size":224,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-23T21:50:26.125Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d2learn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-19T12:22:53.000Z","updated_at":"2026-02-23T18:54:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/d2learn/d2x","commit_stats":null,"previous_names":["d2learn/d2x"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/d2learn/d2x","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2learn%2Fd2x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2learn%2Fd2x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2learn%2Fd2x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2learn%2Fd2x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d2learn","download_url":"https://codeload.github.com/d2learn/d2x/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d2learn%2Fd2x/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29778024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T04:54:30.205Z","status":"ssl_error","status_checked_at":"2026-02-24T04:53:58.628Z","response_time":75,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-24T09:38:02.176Z","updated_at":"2026-03-08T03:02:09.702Z","avatar_url":"https://github.com/d2learn.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d2x - [xlings](https://github.com/d2learn/xlings)\n\n\u003e 一个交互式教程项目搭建工具 - `Book + Video + Code + X`\n\n[![xlings](https://img.shields.io/badge/C++-23-orange.svg)](https://github.com/d2learn/xlings)\n[![xlings](https://img.shields.io/badge/xlings-ok-green.svg)](https://github.com/d2learn/xlings)\n[![License](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](LICENSE-CODE)\n\n| [xlings工具](https://github.com/d2learn/xlings) - [论坛](https://forum.d2learn.org) - [项目模板及说明](https://d2learn.github.io/d2x-project-template) - [d2x类项目索引仓库](https://github.com/d2learn/xim-pkgindex-d2x) |\n| --- |\n\n```cpp\nd2x version: 0.1.4\n\nUsage: $ d2x [command] [target] [options]\n\nCommands:\n         new            create new d2x project from template\n         install        install d2x package via xlings\n         book           open project's book\n         checker        run checker for d2x project's exercises\n         config         configure d2x (.d2x.json)\n         list           list available d2x packages\n```\n\n## 功能特色\n\n- 使用C++23模块化实现\n- 支持一键创建交互式教程项目(模板)\n- 支持书籍目录和本地预览\n- 支持一键获取d2x类项目和包管理\n- 支持交互式的实时代码练习及自动检测验证\n- 支持AI智能学习引导, 并可以自定义后端大模型\n\n## 快速开始\n\n\u003cdetails\u003e\n  \u003csummary\u003e点击查看xlings安装命令\u003c/summary\u003e\n\n---\n\n#### Linux/MacOS\n\n```bash\ncurl -fsSL https://d2learn.org/xlings-install.sh | bash\n```\n\n#### Windows - PowerShell\n\n```bash\nirm https://d2learn.org/xlings-install.ps1.txt | iex\n```\n\n\u003e tips: xlings -\u003e [details](https://xlings.d2learn.org)\n\n---\n\n\u003c/details\u003e\n\n**安装**\n\n\u003e 通过xlings包管理器安装d2x工具\n\n```\nxlings install d2x\n```\n\n**创建交互式教程**\n\n\u003e new命令可以快速创建一个基础的交互教程项目\n\n```\nd2x new hello\n```\n\n- 注: [交互式教程项目及说明文档](https://d2learn.github.io/d2x-project-template)\n\n**一键获取教程**\n\n\u003e d2x可以通过install命令一键安装被收录在 [`d2x类项目索引仓库`](https://github.com/d2learn/xim-pkgindex-d2x) 中的教程项目, 并能自动配置好本地环境\n\n```\nd2x install d2mcpp\n```\n\n**教程书籍**\n\n\u003e 在一个d2x类教程项目中, 可以通过book命令本地预览教程的电子书\n\n```\nd2x book\n```\n\n**交互式代码练习**\n\n\u003e 在一个d2x类教程项目中, 可以通过checker进入代码练习模式\n\n```\nd2x checker\n```\n\n注: 可以使用`d2x checker [target_name]`直接从指定target开始检测, 且`target_name`支持字符串匹配\n\n## 项目案例\n\n| 项目 | 简介 | 备注 |\n| --- | --- | --- |\n| [d2mcpp](https://github.com/mcpp-community/d2mcpp) | 现代C++核心特性入门教程 | |\n| [d2ds](https://github.com/d2learn/d2ds) | 强调动手实践的数据结构学习项目 | |\n\n## 其他\n\n- [d2x类项目索引仓库](https://github.com/d2learn/xim-pkgindex-d2x)\n- [d2x项目模板](https://github.com/d2learn/d2x-project-template)\n- [论坛交流和反馈](https://forum.d2learn.org)\n- `交流群`: 167535744","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd2learn%2Fd2x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd2learn%2Fd2x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd2learn%2Fd2x/lists"}