generate-fixtures round trip and new fixture builder API (api-components-bundle #321)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- php
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu với các trang tài liệu về fixtures/scaffold và lệnh silverback:api-components:generate-fixtures được mô tả trong issue. Tài liệu hóa bốn phương thức của CwaFixtureBuilder, các redirect, các callback phụ thuộc vào route và cách capture một live site trước khi purge-and-reload; được xem là hoàn thành khi API và workflow được tài liệu hóa bao quát hành vi fixture được liệt kê.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Source: components-web-app/api-components-bundle#321, PR components-web-app/api-components-bundle#322.
silverback:api-components:generate-fixtures now writes a scaffold that reloads as the same site after a purge. It carries:
- published state and drafts
- uploaded files, copied to
assets/next to the scaffold - component-owned groups and groups shared through
locationReference - relations (e.g. a navigation link's route), dates, and inherited and non-public fields
- meta descriptions, scheduled or draft routes (
liveAt) and redirects
The command lists anything it cannot reproduce.
New CwaFixtureBuilder API:
allow:on page groupsliveAt(?DateTimeImmutable)on page and page data builders$cwa->redirect('/old', to: 'routeName')$cwa->afterRoutes(fn (CwaFixtureBuilder $cwa) => ...), which runs once routes exist and before positions are created. Use it for anything that references a route.
Docs impact: the fixtures / scaffold pages should document the four builder methods and how to capture a live site with generate-fixtures before a purge-and-reload.
- Ngôn ngữ chính
- Vue
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 components-web-app/docs
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
components-web-app/docs#119 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
components-web-app/docs#1 · 2 bình luận ·
Tất cả issue của components-web-app/docs
Issue tương tự
-
add-on doc enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
JuliaGraphics/ColorTypes.jl#344 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-butler-finding chore
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
jordansmall/spindrift#4146 ·
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 68/100
DaveGamble/cJSON#1093 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
midnightntwrk/midnight-docs#1430 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug documentation needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
stacklok/docs-website#1185 ·
Maintainer thường phản hồi trong vòng 1 ngày