Commit Graph
2182 Commits
Author SHA1 Message Date
krahets 9c928face6 docs: clarify the operation-counting convention 2026-10-11 02:51:20 +08:00
817a24d7ef docs(ru): polish arrays, linked lists and searching explanations (#1895)
* placeholder

* 0413更新

* 0413删除comments

* 第四章第一节进行一对一修改,发现几个核心问题,后续不再重复叙述。具体问题参见具体说明
因为该版本不会被用在最后的校对输出中,后续不再复制纸质版原文,只标注出现不一致的部分
1.非程序部分大量出现文本和纸质版不一致,已全部修改,AI翻译版本没有纸质版自然
2.程序部分python部分就和纸质版不一致,但是其他程序和AI翻译的python一致,建议让AI先搬运纸质版python的翻译,再加工其他的部分,翻译水平尚可。
3.程序部分AI翻译版本不稳定,大部分使用动宾结构表达,少部分使用动名词结构,出现少量语法错误。纸质版大多使用动名词结构
4.相对中文在线版格式未出现问题,该部分表现较好

* 第四章后续章节未精确修改和俄语版不一致的部分,因为从第一节可以看出,AI基本上都是自己翻的。
在这里标出了所有应该修改的部分
除了第一节以外新增的问题:
1.程序部分出现语法错误
2.单复数问题在程序和标题中出现多次,正文中更是屡见不鲜
3.程序部分,python错了之后,后续的程序全部参照python一起错,建议统一修改,还是参照python但是一起修改掉

* 第十章第一节整体检查
1.正文部分和纸质版的重叠仍然基本没有,都是AI翻译
2.程序部分除了python和纸质版翻译不一致以外,出现较为严重的术语错误
3.接下来的四节内容我将不再展示正文部分的不一致,以上已经可以充分说明了

* 第十章后续章节梳理(该部分仍然绝大部分的内容都和纸质版完全不一致,从措辞到表达方法都不一致,包括正文也包括程序)
考虑到还需要进行AI设计,在此没有重复标注
其他问题:
1.正文中有一些细节,比如说引号的删除、大小写的确认、
2.程序上也出现了术语错误和语法错误

* docs(ru): refine wording after sentence-level Chinese comparison

---------

Co-authored-by: Veronica <[email protected]>
Co-authored-by: krahets <[email protected]>
2026-10-11 02:35:33 +08:00
f81f725c30 docs(ru): polish algorithm introduction (#1905)
* placeholder

* 0413更新

* 0413删除comments

* docs(ru): refine wording after sentence-level Chinese comparison

---------

Co-authored-by: Veronica <[email protected]>
Co-authored-by: krahets <[email protected]>
2026-10-11 02:35:27 +08:00
mazezenandkrahets 7afce71b13 fix: seed C array example randomness once across translations (#1910)
Co-authored-by: krahets <[email protected]>
2026-10-11 02:23:46 +08:00
dageckoandkrahets e0f6d18618 ci: pin selected third-party Actions to commit SHAs (#1873)
Co-authored-by: krahets <[email protected]>
2026-10-11 01:31:36 +08:00
Pádraic Slatteryandkrahets 112ee773e8 ci: update checkout and selected language setup Actions (#1848)
Co-authored-by: krahets <[email protected]>
2026-10-11 01:27:27 +08:00
4d4e22a507 ci: add Zig 0.14.1 build and test workflow (#1863)
* ci: add Zig CI workflow

Add GitHub Actions workflow for Zig (the only supported language
without CI). Runs zig build and zig build test on ubuntu, macOS,
and Windows. Targets Zig 0.14.1 per codes/zig/build.zig.

Co-Authored-By: claude-flow <[email protected]>

* ci: use a compatible macOS image for Zig 0.14.1

---------

Co-authored-by: Santosh Maturi <[email protected]>
Co-authored-by: claude-flow <[email protected]>
Co-authored-by: krahets <[email protected]>
2026-10-11 01:27:13 +08:00
mazezenandkrahets 04757b6a57 fix: remove redundant counter in C complexity examples (#1908)
Co-authored-by: krahets <[email protected]>
2026-10-11 01:26:58 +08:00
46a09cf31a fix: correct Swift fixed-size array insertion bounds (#1968)
Co-authored-by: Cuong Nguyen <[email protected]>
Co-authored-by: krahets <[email protected]>
2026-10-11 01:26:44 +08:00
Yudong Jin 620abe42f3 fix: sync array, deque, and printing fixes across translations (#1973)
Synchronize the fixes from #1936, #1824, and #1961 across translated editions and normalize C# and Dart formatting. Move Java CI to Ubuntu 24.04 so its Java 11/17 checks can run.
2026-10-11 00:58:16 +08:00
Anupam Mediratta 4eba6da393 fix: allocate tree-printing strings by their length (#1961)
Automated security fix generated by OrbisAI Security
2026-10-10 19:18:26 +08:00
KingCrimsonJY 5b279d48b3 fix: handle single-node pops in linked-list deques (#1824) 2026-10-10 19:18:20 +08:00
ShenMian bd46fca90d fix: zero-initialize C++ arrays in documentation (#1936)
Explicitly initialize the array elements to 0 to eliminate potential undefined behavior.
2026-10-10 19:18:12 +08:00
Beatrix CHAN db6f21aaf5 fix: use repository image paths and descriptive badge alt text in READMEs (#1969)
Use repository-relative image paths in the five language READMEs and add descriptive language badge alt text. Point the Russian README header to the existing shared image.
2026-10-10 15:14:25 +08:00
Yudong Jin 28c1e74c1d Add multilingual exercise code (#1959)
Replace the exercise pages' Python-only snippets with source-backed implementations for the 13 visible programming languages, and localize reader-facing comments by site language. Zig remains out of scope.

Approval bypass: repository protection requires one approval but does not enforce it for administrators. All 68 completed checks succeeded; four non-required Java jobs remained queued on the existing ubuntu-20.04 workflow, with no failed checks.
2026-08-18 04:57:57 +08:00
Yudong Jin bf86c39b6c Fix multilingual content typos (#1958) 2026-08-18 03:08:23 +08:00
Yudong Jin 69932aed18 Remove Warp sponsorship and refine endorsement cards (#1953)
Remove the ended Warp sponsorship from multilingual READMEs and landing pages, and restyle the landing-page endorsements as rounded cards.
2026-07-24 15:31:39 +08:00
Yudong Jin 69acdc5bf3 Refine Zensical callout backgrounds (#1951)
Use a stronger tint for callout title bars and a lighter tint for callout bodies while preserving Python Tutor styling.
2026-07-22 17:38:56 +08:00
Yudong Jin a3166c2018 Simplify generated exercise page sources (#1943) 2026-07-19 07:19:42 +08:00
Yudong Jin 668f9b0cfb Keep edit links on Traditional Chinese exercises (#1942)
Remove the navigation metadata that hid the edit action from the generated Taiwan Traditional Chinese exercise pages.
2026-07-19 04:31:23 +08:00
Yudong Jin 9135647d93 Add translated chapter exercise pages (#1941)
Add dedicated chapter exercise sections and generated exercise pages for the English, Japanese, and Russian editions.

Add navigation for all published languages while keeping Taiwan Traditional Chinese exercise pages generated at build time.
2026-07-19 04:25:58 +08:00
Yudong Jin 4935d2d387 fix mobile reading media overflow (#1896) 2026-04-19 02:23:31 +08:00
Yudong Jin 22b3b568ef fix Ru translation (#1894)
* docs(ru): replace prose quotes with guillemets

* docs(ru): replace prose semicolons with periods

* docs(ru): align animation title forms

* docs(ru): align figure and table references
2026-04-14 18:10:12 +08:00
Yudong Jin 1d12e2def5 Update README translation review copy (#1886) 2026-04-10 23:15:43 +08:00
Yudong Jin b01036b09e Revisit the English version (#1885)
* Update giscus scroller.

* Refine English docs and landing page

* Sync the headings.

* Update landing pages.

* Update the avatar

* Update Acknowledgements

* Update landing pages.

* Update contributors.

* Update

* Fix the formula formatting.

* Fix the glossary.

* Chapter 6. Hashing

* Remove Chinese chars.

* Fix headings.

* Update giscus themes.

* fallback to default giscus theme to solve 429 many requests error.

* Add borders for callouts.

* docs: sync character encoding translations

* Update landing page media layout and i18n
2026-04-10 23:03:03 +08:00
Yudong Jin ae03a167a4 docs: sync character encoding translations (#1884) 2026-04-10 22:20:41 +08:00
Beatrix CHAN 56653a2698 Fix formatting of 'list' in documentation (#1883) 2026-04-10 02:27:39 +08:00
Yudong Jin edd13d4c86 Update giscus themes (#1879)
* Update giscus themes

* Adjust giscus dark button
2026-04-01 01:23:44 +08:00
Yudong Jin dcd4db3f54 Update landing page videos (#1878) 2026-03-31 23:56:00 +08:00
Yudong Jin 6e600f5ba7 Add animation player (#1877)
* Add auto slide controller.

* Fix the animation blocks.

* renamed as animation_player

* Bug fixes

* Refine animation player controls
2026-03-31 21:24:11 +08:00
Yudong Jin e3c74cfa01 Sync multilingual versions (#1875)
* Sync multilingual docs and comments

* Refactor zensical extra.css

* Refine zensical styles

* Tune zensical landing buttons

* Refine landing section themes
2026-03-31 18:31:56 +08:00
Yudong Jin 323eb92c0f Update chapter covers (#1874)
* Align headings in mkdocs.yaml

* Update chapter covers.

* Bug fixes

* Add the link of yuyanhuang

* Add hover effect to the profile texts.
2026-03-31 05:27:28 +08:00
Senrian e01acc8d97 fix: change Rust multi-line comment format from /** to // (#1859) 2026-03-30 14:47:46 +08:00
Kunchen-LuoandChance Luo c2eb1dbc5a Fix confusion between queSize and rear pointer in ArrayQueue implementation (#1851)
- `queSize` represents the queue's size, not the rear pointer position.
- In `pop`, `queSize--` decreases the size, not the rear pointer.
- The rear pointer is calculated using modulo (`%`) with the `front` and `queSize` to avoid confusion.

Co-authored-by: Chance Luo <[email protected]>
2026-03-30 14:46:56 +08:00
6251b8e232 fix: improve Dockerfile for international contributors (#1861)
* fix: improve Dockerfile for international contributors

- Upgrade base image from python:3.10.0-alpine to python:3.12-alpine
  for security patches
- Replace hardcoded Chinese PyPI mirror with configurable ARG defaulting
  to official PyPI (Chinese users can override via --build-arg)
- Add missing Japanese docs build step

Co-Authored-By: claude-flow <[email protected]>

* Change Python base image and add Russian docs

Updated Python base image from 3.12 to 3.10 and added support for Russian documentation.

---------

Co-authored-by: Santosh Maturi <[email protected]>
Co-authored-by: claude-flow <[email protected]>
Co-authored-by: Yudong Jin <[email protected]>
2026-03-30 14:37:29 +08:00
Yudong Jin a2cf8a3de7 Update landing pages and fonts (#1872)
* Update landing pages and fonts.

* Update the avatar.
2026-03-30 07:36:36 +08:00
Yudong Jin d7b2277d2b Re-translate the Japanese version (#1871)
* Retranslate Japanese docs with GPT-5.4

* Retranslate Japanese code with GPT-5.4
2026-03-30 07:30:15 +08:00
Yudong Jin fe6443235b Review the ru version with Codex. (#1870) 2026-03-30 07:27:40 +08:00
Yudong Jin 7a78369e4c Migrate to Zensical (#1869)
* Fix Russian Ruby code extraction.

* Add zensical configs.
2026-03-29 05:41:25 +08:00
Yudong Jin bc4c5ec414 Update the landing pages (#1867)
* Update translators info in the multi-lang landing pages.

* Update translators info in the multi-lang landing pages.

* Update desc of code reviewers.
2026-03-29 02:08:35 +08:00
Yudong Jin 772183705e Add ru version (#1865)
* Add Russian docs site baseline

* Add Russian localized codebase

* Polish Russian code wording

* Update ru code translation.

* Update code translation and chapter covers.

* Fix pythontutor extraction.

* Add README and landing page.

* placeholder of profiles

* Use figures of English version

* Remove chapter paperbook
2026-03-28 04:24:07 +08:00
Yudong Jin 2ca570cc33 Update multi-lang chapter covers. (#1864) 2026-03-28 02:09:21 +08:00
Yudong Jin 2213a59ff6 Update acknowledgements (#1842)
* Update acknowledgements.

* Sync zh and zh-hant versions.
2026-01-04 16:26:46 +08:00
Yudong Jin f304c8385a Update buttons in the landing pages. (#1841) 2026-01-02 05:44:19 +08:00
Yudong Jin 0586e611b7 Update buttons in READMEs (#1840)
* Update READMEs

* Update buttons in READMEs.
2026-01-02 05:16:24 +08:00
Yudong Jin b99aaa4fb8 Update READMEs (#1839)
* Update READMEs

* Update README.md
2026-01-02 05:09:21 +08:00
Yudong Jin 666da25a2a Prepare 1.3.0 release (#1838)
* Update the contributors list.

* Update the version number.

* Sync zh and zh-hant versions.

* Move epub builder to the utils branch.

* Optimize all figure files using pngquant.

* Update copyright.

* Update Acknowledgements.

* Update buttons in README.
1.3.0
2026-01-02 03:37:38 +08:00
Yudong Jin 10f76bd59a Remove incomplete zig code from docs. (#1837) 2025-12-31 19:47:59 +08:00
Yudong Jin 2778a6f9c7 Translate all code to English (#1836)
* Review the EN heading format.

* Fix pythontutor headings.

* Fix pythontutor headings.

* bug fixes

* Fix headings in **/summary.md

* Revisit the CN-to-EN translation for Python code using Claude-4.5

* Revisit the CN-to-EN translation for Java code using Claude-4.5

* Revisit the CN-to-EN translation for Cpp code using Claude-4.5.

* Fix the dictionary.

* Fix cpp code translation for the multipart strings.

* Translate Go code to English.

* Update workflows to test EN code.

* Add EN translation for C.

* Add EN translation for CSharp.

* Add EN translation for Swift.

* Trigger the CI check.

* Revert.

* Update en/hash_map.md

* Add the EN version of Dart code.

* Add the EN version of Kotlin code.

* Add missing code files.

* Add the EN version of JavaScript code.

* Add the EN version of TypeScript code.

* Fix the workflows.

* Add the EN version of Ruby code.

* Add the EN version of Rust code.

* Update the CI check for the English version  code.

* Update Python CI check.

* Fix cmakelists for en/C code.

* Fix Ruby comments
2025-12-31 07:44:52 +08:00
Yudong Jin 45e1295241 Revisit the English version (#1835)
* Review the English version using Claude-4.5.

* Update mkdocs.yml

* Align the section titles.

* Bug fixes
2025-12-30 17:54:01 +08:00