You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Combines features from PRs#17317,#17322, and#17370:- Adds Vale style checking for documentation- Creates a reusable workflow for documentation validation- Optimizes PR checks and post-merge validation- Adds automatic GitHub issue creation for broken links- Updates all documentation checks to run in a structured mannerThis PR supersedes:- PR#17317: Docs Preview GitHub Action- PR#17322: Shared Docs GitHub Action- PR#17370: Vale Style Checking and Docs Workflow Improvements
-`actions/docs-preview`: Preview link generation for documentation changes
9
+
-`vale`: Configuration and style rules for Vale documentation linting
10
+
-`.linkspector.yml`: Configuration for link checking
11
+
12
+
##Available Workflows
13
+
14
+
###Reusable Workflow
15
+
16
+
The`docs-unified.yaml` workflow provides a reusable workflow that can be called from other workflows. This combines all documentation checks in one workflow:
17
+
18
+
```yaml
19
+
jobs:
20
+
docs-validation:
21
+
name:Validate Documentation
22
+
uses:./.github/workflows/docs-unified.yaml
23
+
permissions:
24
+
contents:read
25
+
pull-requests:write
26
+
with:
27
+
lint-markdown:true
28
+
check-format:true
29
+
check-links:true
30
+
lint-vale:true
31
+
generate-preview:true
32
+
post-comment:true
33
+
fail-on-error:false
34
+
```
35
+
36
+
### Post-Merge Link Checking
37
+
38
+
The`docs-link-check.yaml` workflow runs after merges to main and on a weekly schedule to check for broken links and create GitHub issues automatically:
39
+
40
+
-Runs after merges to main that affect documentation
41
+
-Runs weekly on Monday mornings
42
+
-Creates GitHub issues with broken link details
43
+
-Sends Slack notifications when issues are found
44
+
45
+
## Features
46
+
47
+
1. **Documentation Preview**:Generates preview links for documentation changes
48
+
2. **Vale Style Checking**:Enforces consistent terminology and style
49
+
3. **Link Validation**:Checks for broken links in documentation
50
+
4. **Markdown Linting**:Ensures proper markdown formatting with markdownlint-cli2