giantswarm / docs

The Giant Swarm documentation site
http://docs.giantswarm.io
Apache License 2.0
4 stars 8 forks source link

Add prose linting #2189

Closed marians closed 5 months ago

marians commented 5 months ago

Towards https://github.com/giantswarm/roadmap/issues/3406

This adds prose linting for content.

This PR does't make all content compliant.

Run make lint-prose or, for slightly faster execution, run vale --glob '!{src/content/vintage/**,src/content/changes/**}' src/content

You can find one annotation on the commit https://github.com/giantswarm/docs/pull/2189/commits/2f625c523d17dcfc97f65361d71f8a206e09f11d.

Changes

Regarding the workflow added

I couldn't get the vale-action to work, so I decided to download and execute the binaries for vale and reviewdog directly.

The workflow only reports errors for the files touched.

The implementation can be improved to execute Vale only on the modified files.