Make the docs check fail on an em dash in a page
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 88/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- markdown, python
- Lĩnh vực
- documentation, testing
Hướng nghiên cứu
Bắt đầu với check() và docstring của module trong scripts/check_docs.py, sau đó xem lại make_project, run_check và test_page_missing_from_nav_fails trong tests/test_check_docs.py. Cập nhật bước kiểm tra và các bài kiểm thử cho dấu gạch ngang dài, đồng thời liệt kê quy tắc trong các mục được chỉ định của CONTRIBUTING.md và CLAUDE.md. Hoàn tất khi các bài kiểm thử mới bao quát việc từ chối và các ký tự gạch ngang được phép, đồng thời các bước kiểm tra đã được ghi lại đều đạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What to change
CLAUDE.md and CONTRIBUTING.md both say: no em dashes. No check enforces that today, so a reviewer has to catch every one by eye. Add one to scripts/check_docs.py. That script already runs in CI before the build.
- In
check()inscripts/check_docs.py, read each Markdown page under the docs directory. Report aProblemfor every line that contains an em dash (the character U+2014, which you can write in Python as"\u2014"), with that line's number. Use a message such asem dash, use a comma, colon, or parentheses instead. Flag every em dash, including any in code: the rule allows none. Leave en dashes and hyphens alone. - Update the module docstring at the top of the script so it lists the new problem.
- Add tests to
tests/test_check_docs.pyusing the existingmake_projectandrun_checkhelpers:- A page with an em dash fails with exit code 1. The message names the file and the right line.
- A page with only hyphens and en dashes still passes.
- Add the new check to the lists of what the script fails on, in both places:
CONTRIBUTING.md, in the paragraph under "Preview locally" that begins "The strict build fails on".CLAUDE.md, in thescripts/check_docs.pybullet under "What this repository is".
The pages have no em dashes today, so the existing test_repository_pages_pass test should keep passing.
Where to look
scripts/check_docs.py: thecheck()function and the module docstring.tests/test_check_docs.py:make_project,run_check, andtest_page_missing_from_nav_failsas a model.CONTRIBUTING.md, heading "Preview locally".CLAUDE.md, heading "What this repository is".
How to test
From CONTRIBUTING.md:
uv sync
uv run pytest
uv run python scripts/check_docs.py
uv run zensical build --strict
Then try it by hand. Add an em dash to any page in docs/, run uv run python scripts/check_docs.py, and check that it prints that page and line and exits with 1 (echo $?). Take the em dash out before you commit.
Done when
-
uv run python scripts/check_docs.pyreports any em dash in a page underdocs/, with its file and line, and exits with 1. - New tests cover a page that fails and a page with hyphens and en dashes that passes.
- The script's docstring,
CONTRIBUTING.md, andCLAUDE.mdlist the new check. -
uv run pytest,uv run python scripts/check_docs.py, anduv run zensical build --strictall pass, and every commit is signed off (git commit -s).
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 0
- Merge trung bình
- 10 giờ 40 phút
- Pull request đã merge (30 ngày)
- 11
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 openpickleball/developers
-
documentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
openpickleball/developers#20 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
openpickleball/developers#18 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của openpickleball/developers
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
-
frontend testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
vendrabuck/HERD#1588 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Lessons: record the second case of L14 (security updates cover only pip)Có thể đã có người làm @vishwanathj đã nhận hôm nay. Đang mởarea/docs no-test-needed type/docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
vishwanathj/ocp_lab.ai#39 · 1 bình luận ·
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
laaielichter/Gulliver#228 ·
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
Maintainer thường phản hồi trong vòng 1 ngày