Skip to content

Commit a77bc58

Browse files
authored
ci: add formatting step for generated documentation
Added a step to format documentation using Prettier.
1 parent ce3208c commit a77bc58

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/generate-docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@ jobs:
3030
- name: Generate docs
3131
run: luajit "${RUNNER_TEMP}/docgen/scripts/generate-api-docs.lua" types docs
3232

33+
- name: Format docs
34+
run: npx --yes prettier@3.8.3 --write "docs/**/*.md"
35+
3336
- name: Open docs PR
3437
uses: peter-evans/create-pull-request@v7
3538
with:
3639
commit-message: "docs: generate API docs"
3740
title: "docs: generate API docs"
38-
body: "Generate API docs from LuaLS type annotations."
41+
body: "Generate and format API docs from LuaLS type annotations."
3942
branch: automation/generate-docs
4043
add-paths: |
4144
docs

0 commit comments

Comments
 (0)