feat: theme composition (theme lookup chain)
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
- 35/100
Hướng nghiên cứu
Start with Fanstatic/Models/Theme.cs and the LiquidPhysicalFileProvider and FileUtils.GetTemplateLookupOrder paths named in the issue; then inspect related tests in Fanstatic.Test/ and fixture sites in .TestSites/. Run ./build.sh test to establish the baseline. Done means a site can override one partial while other assets resolve through the theme chain, with the documented lookup order and stated coverage requirements.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Part of the Phase 3 epic (#33).
Current State
A site uses exactly one theme (Theme: → Theme.CreateFromSite, Fanstatic/Models/Theme.cs:63), and template
files are resolved inside that single folder (LiquidPhysicalFileProvider, FileUtils.GetTemplateLookupOrder).
Overriding one partial means forking the theme.
Tasks:
- Accept
Theme: [my-overrides, base-theme](a single string keeps working) - Resolve layouts, partials, shortcodes, render hooks, filters, data, i18n and static files through the chain;
first match wins; static files from later layers are copied first so earlier layers override - Site-level
layouts/folder as the implicit first layer - Docs page explaining the lookup order
Tests live in Fanstatic.Test/ (xUnit + NSubstitute); fixture sites in .TestSites/. Run ./build.sh test; new/changed methods need CRAP ≤ 15 and ≥ 75 % line coverage.
Acceptance Criteria:
- A site overrides one partial of a theme without copying the theme; everything else comes from the theme.
Related:
- #33 (Phase 3 epic, parent)
- Ngôn ngữ chính
- C#
- Star
- 1
- Fork
- 0
- Merge trung bình
- 10 giờ 23 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc 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 MASS4ORG/Fanstatic
-
c:templates p:low size:S t:task
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
-
c:content good first issue p:low size:S t:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
-
c:content p:medium size:L t:feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
c:templates p:medium size:S t:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 57/100
-
c:templates p:high size:M t:feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Tất cả issue của MASS4ORG/Fanstatic
Issue tương tự
-
ASP.NET Core container quickstart: `docker-run: debug` task sample is missing its closing braceĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
microsoft/vscode-docs#10499 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
python triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/semantic-kernel#14615 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vzeol/DeployCraft#125 ·
Maintainer thường phản hồi trong vòng 1 ngày