Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/markup-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
permissions:
contents: read
pull-requests: write
statuses: write

name: PR Quality Check
on:
pull_request:
paths:
- '**.mdx'
- '**.md'
- '.vale/**'
- '.vale.ini'
- '!**/changelog/**'
jobs:
quality-gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

# Temporarily rename .mdx to .md
- name: Prepare MDX files
run: |
# Store original names
find . -name "*.mdx" > /tmp/mdx_files.txt
# Rename to .md
while read file; do
mv "$file" "${file%.mdx}.md"
done < /tmp/mdx_files.txt

- name: Quality Analysis
id: analysis
uses: markupai/content-guardian-action@v1
with:
markup_ai_api_key: ${{ secrets.MARKUP_AI_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dialect: "american_english"
style-guide: "microsoft"
tone: "technical"

# Rename back to .mdx
- name: Restore MDX extensions
if: always()
run: |
while read file; do
md_file="${file%.mdx}.md"
if [ -f "$md_file" ]; then
mv "$md_file" "$file"
fi
done < /tmp/mdx_files.txt

- name: Check Quality Score
run: |
results='${{ steps.analysis.outputs.results }}'
echo "$results"
2 changes: 1 addition & 1 deletion fern/products/docs/pages/customization/user-feedback.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Collecting feedback and suggestions from users
slug: user-feedback
---

Fern offers a variety of ways to track feedback and suggested improvements from users.
Fern offers a variety of ways to track feedback and suggested improvements from users. test edit testing

## On-page feedback
By default, every Markdown page of your docs contains a feedback component at the bottom of the page:
Expand Down