feat: shortcodes from template files
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/Parsers/RefShortcodeParser.cs and the processing path in Page.cs:429, then inspect the existing shortcode tests in Fanstatic.Test/ and fixture sites in .TestSites/. Run ./build.sh test before changing behavior. Done means site and theme shortcode resolution, paired and Markdown-rendered forms, contextual parameters, clear unknown-shortcode errors, documentation examples, and passing ref/relref tests with the stated coverage and CRAP limits.
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
Only ref/relref shortcodes exist, hard-coded in Fanstatic/Parsers/RefShortcodeParser.cs, processed on raw
Markdown before Markdig (Page.cs:429).
Tasks:
- Generalize the parser:
{{< name arg1 key="v" >}}and paired{{< name >}}inner{{< /name >}} - Resolve
shortcodes/<name>.html(site → theme); keepref/relrefas built-ins - Context:
shortcode.Params(positional and named),shortcode.Inner,shortcode.Name,page,site -
{{% name %}}form whose output is Markdown-rendered (Hugo semantics) - Unknown shortcode: clear error with page path and line
- Docs page with examples
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:
- Fixture site with a
youtubeshortcode and a pairednoteshortcode renders correctly. - Existing
ref/relreftests still pass.
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:templates p:medium 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
-
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
Tất cả issue của MASS4ORG/Fanstatic
Issue tương tự
-
Attention: a throwing permission check on one contributor fails the whole aggregation requestĐang mởready-for-agent size:S status:todo
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
elsa-workflows/elsa-foundation#2830 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Edit Bar buttons are not localizedCó thể đã có người làm @idumlupinar đã nhận hôm nay. Đang mởStatus: New
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
dnnsoftware/Dnn.Platform#7565 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
AzureBlobSnapshotStore.LoadAsync allocates the snapshot twice (growable MemoryStream + ToArray)Đang mởenhancement
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 70/100