Introduce automated documentation linting
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ó
- 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
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- markdown
- Lĩnh vực
- documentation, tooling
Hướng nghiên cứu
Không có tệp nào trong repository hoặc test nào được nêu tên. Hãy bắt đầu bằng cách đọc các tài liệu tham chiếu được liên kết về Vale, GitLab technical-writing và các issue liên quan (#642 và #519), sau đó đối chiếu các giai đoạn linting được đề xuất với dự án tài liệu này. Để được xem là hoàn tất, cần có một tập hợp các check đã được thống nhất, quyết định về các lỗi build và nội dung được import, cùng với phạm vi triển khai được ghi lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Goal 🏁
Improve consistency across the documentation for both readers and writers. Or at least highlight the inconsistencies.
This suggestion is prompted:
- by @lucyb's mention of the alex linter
- by my reading around "docs as code" tooling
Tooling 🔨
There are several linting tools out there. But, Vale allows you to apply different style rules or guides taken from various different linters. You can also write your own rules in YAML.
Vale aside: there are lots of other potential tools around. But Vale is mentioned a lot.
How do other people work? 👀
For example, GitLab's technical writers use:
- Text content and writing style: markdownlint, Vale
- Text formatting: Markdownlint, yamllint
- Link validity: nanoc
- File permissions and naming:
lint-doc.sh
I'm more interested in the stages, than the specific tools chosen by the GitLab team. We don't have any of these right now. I also opened #642 for link checking as I believe that's a self-contained problem.
Note that tools like markdownlint are actually focused on markup consistency, not content consistency. This might be another benefit. We — understandably — have a mixture of Markdown styles across our documentation due to different author contributions.
Considerations 💭
- Is this a good idea, in principle?
- Are the checks useful or distractingly noisy?
- Would this add friction for less regular contributors?
- Should failed linting cause an outright failure of a build, or just alert "content managers" to this to later fix up? If failing, what types of lint failures should fail a build?
- What checks do we want (relates to #519)?
- Are there issues of having consistency across imported content? We include content in the documentation from the source of cohort-extractor and Data Builder. This content may not be subject to the same checks.
- Ngôn ngữ chính
- Python
- Star
- 48
- Fork
- 10
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- 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 opensafely/documentation
-
bug improve content
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
opensafely/documentation#2102 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
initiative:retire-actions-registry
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
opensafely/documentation#2035 · 1 bình luận ·
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 78/100
opensafely/documentation#2017 · 9 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Unpin `click`Đang mở
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 72/100
opensafely/documentation#2006 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
job-ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
opensafely/documentation#2000 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của opensafely/documentation
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
raman325/lock_code_manager#1864 ·
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 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
521xueweihan/HelloGitHub#4636 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ida-arbeitszeit/workers-control#1607 ·
Maintainer thường phản hồi trong vòng 1 ngày