Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

feat: menus

Đang mở
#30 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
backend

Hướng nghiên cứu

Start by reading the Phase 2 epic (#23) and the existing Params.MainMenu usage in ../Fanstatic-site/fanstatic.yaml; inspect the site configuration, front matter, and menu-related entry points in Fanstatic.Test/ and .TestSites/. Run ./build.sh test to understand the test setup. Done means config and front matter menus support nested, weight-ordered items, active-item helpers, and per-language menus, with the docs site migrated and documented and the stated coverage thresholds met.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

c:content p:medium size:M t:feature

Part of the Phase 2 epic (#23).

Current State

Menus are hand-built from Params (the docs site uses Params.MainMenu in ../Fanstatic-site/fanstatic.yaml).

Tasks:
  • Site config Menus: { main: [{ Name, Url, Weight, Parent, Identifier }] }
  • Front matter Menu: main or Menu: { main: { Weight: 10, Parent: docs } } to add pages
  • site.Menus.main ordered by weight then name, with Children
  • page.IsMenuCurrent / page.HasMenuCurrent helpers (or filters) for active states
  • Multilingual: menus per language
  • Migrate the docs site menu and document it

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:
  • Nested menu from config + front matter renders in weight order with the active item marked.
Related:
  • #23 (Phase 2 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MASS4ORG/Fanstatic

Tất cả issue của MASS4ORG/Fanstatic

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.