Future-proofing the example code
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- git
- Lĩnh vực
- documentation, tooling
Hướng nghiên cứu
Bắt đầu trong thư mục preproc của repository và so sánh preprocessor đi kèm với links preprocessor mặc định của mdBook. Điều tra cách các commit được tham chiếu có thể vẫn truy cập được từ master và cách chọn các phần tệp cần đưa vào. Được xem là hoàn thành khi tutorial có thể lấy một phần mã inline từ một commit được chỉ định mà không phụ thuộc vào việc cập nhật thủ công lặp đi lặp lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Parts II and III will have the reader (and thus, the writer as well) working iteratively on a codebase. Where it gets iffy is that any change made to earlier lessons must be consistently reflected in later lessons. (This could happen for example because an earlier lesson is amended to make "room for" a later one, to update the syntax for a newer RGBDS version etc.)
Propagating these changes throughout the tutorial, where they would be presented "inline", would be a massive pain. Instead, I suggest the codebase should be checked out into Git, and inline code examples pulled from that repo.
This does get somewhat involved in several ways (e.g. ensuring that all referenced commits are reachable from the master branch, keeping referenced line numbers consistent when rebasing, etc.), but I think is essential if we want to avoid the tutorial irremediably bit-rotting in the longer term.
The concrete solution, I'd say, is to build a mdBook preprocessor (either stand-alone, or as part of the bundled one), that is able to include portions of files (like the default links preproc is able to), but picking a version of that file in a specific commit. libgit integration is desirable so as to avoid a ton of slow git checkouts, but not necessary—the priority is to it make work.
- Ngôn ngữ chính
- Assembly
- Star
- 179
- Fork
- 64
- Merge trung bình
- 7 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của gbdev/gb-asm-tutorial
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
gbdev/gb-asm-tutorial#194 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
gbdev/gb-asm-tutorial#184 · 1 bình luận ·
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
gbdev/gb-asm-tutorial#141 · 2 bình luận · 2 reaction ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
gbdev/gb-asm-tutorial#109 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
gbdev/gb-asm-tutorial#183 ·
Tất cả issue của gbdev/gb-asm-tutorial
Issue tương tự
-
content
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
GDQuest/learn-gdscript#1395 ·
-
rules
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
HttpClient
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
symfony/symfony-docs#23092 ·
-
[Docs Request]: 模块修改建议 & 增加 Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
huggingface/sentence-transformers#4074 ·