Skip to content

Commit 52e87a8

Browse files
Gerry-Fordenickboldtthemr0c
authored
Check documentation for style in GH pull requests (#669)
Co-authored-by: Nick Boldt <[email protected]> Co-authored-by: Fabrice Flore-Thébault <[email protected]>
1 parent 4deaf10 commit 52e87a8

File tree

8 files changed

+52
-5
lines changed

8 files changed

+52
-5
lines changed

.github/workflows/style-guide.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Verify style guide compliance on pull request
3+
on: [pull_request]
4+
5+
jobs:
6+
vale:
7+
name: Linting with Vale
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Install Asciidoctor
13+
run: sudo apt-get install -y asciidoctor
14+
- name: Run Vale on new and modified content
15+
uses: errata-ai/[email protected]
16+
with:
17+
files: assemblies
18+
vale_flags: "--minAlertLevel=warning"
19+
reporter: github-pr-review
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.RHDH_BOT_TOKEN }}
22+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.RHDH_BOT_TOKEN }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
titles/*/build
33
index.html
44
titles-generated/
5-
.vale.ini
65
.vale-styles/RedHat
76
.vscode
87
.cache/
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
; .vale.ini
2+
; Specifies Vale configuration
3+
; See: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/user-guide/installing-vale-cli/
4+
;
5+
; Download and search Vale styles in this directory:
6+
StylesPath = ../..
7+
; Minimum alert level to display:
8+
MinAlertLevel = suggestion
9+
; Display alerts on AsciiDoc files:
10+
[*.adoc]
11+
; Apply these styles:
12+
BasedOnStyles = DeveloperHub

.vale.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# .vale.ini
2+
# Specifies Vale configuration
3+
# See: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/user-guide/installing-vale-cli/
4+
#
5+
6+
# Download and search Vale styles in this directory:
7+
StylesPath = ".vale-styles"
8+
9+
# Minimum alert level to display:
10+
MinAlertLevel = suggestion
11+
12+
# Styles to download:
13+
Packages = RedHat
14+
15+
# Display alerts on AsciiDoc files:
16+
[*.adoc]
17+
# Apply these styles:
18+
BasedOnStyles = RedHat,DeveloperHub

assemblies/images

Lines changed: 0 additions & 1 deletion
This file was deleted.

titles/plugin-rhdh/admin

Lines changed: 0 additions & 1 deletion
This file was deleted.

titles/plugin-rhdh/getting-started

Lines changed: 0 additions & 1 deletion
This file was deleted.

titles/plugin-rhdh/installation

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)