ReactPy static site generation (SSG)
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
Hướng nghiên cứu
Start by reviewing the client-side components introduced in PR #1269 and the proposed reactpy CLI and reactpy.pyscript API boundaries. Done means defining and implementing a path from *.py or Jinja-compatible *.html inputs to equivalently named static pages in the requested output directory, including the stated base URL behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Current Situation
Now that we have client side components, it is now technologically possible for ReactPy to be compiled into a static site / flatpage(s).
Proposed Actions
Create some sort of reactpy CLI (or maybe a Bun plugin?) that allows ReactPy to be compiled down into flatpage(s).
This function should compile client-side components *.py files into equivalently named *.html files. Alternatively, if the user provides a glob pattern with *.html, these templates are assumed to be Jinja compatible.
For example, a CLI command might looks like this:
reactpy ssg "glob_pattern/to/my_components_*.py" --outdir "dist/" --base_url "example/"
We should also have a Python API equivalent for people wanting to perform SSG via scripts. It might look like this:
from reactpy.pyscript import compile_static_site
compile_static_site( "glob_pattern/to/my_components_*.py", outdir="dist/")
- Ngôn ngữ chính
- Python
- Star
- 8.1k
- Fork
- 332
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 reactive-python/reactpy
-
Outdated GIF in Docs Đang mởpriority-3-low type-docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
reactive-python/reactpy#1034 ·
-
priority-2-moderate type-revision
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
reactive-python/reactpy#1319 ·
-
priority-1-high
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
reactive-python/reactpy#1277 ·
-
priority-3-low
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
reactive-python/reactpy#1273 · 1 reaction ·
-
Create WSGI middleware Đang mởpriority-2-moderate
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 32/100
reactive-python/reactpy#1260 ·
Tất cả issue của reactive-python/reactpy
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
zostera/django-bootstrap4#894 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
use-agent-os/agent-os#3276 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NousResearch/hermes-agent#117848 ·