diff --git a/.github/workflows/markup-pr.yml b/.github/workflows/markup-pr.yml new file mode 100644 index 000000000..5969c269c --- /dev/null +++ b/.github/workflows/markup-pr.yml @@ -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" \ No newline at end of file diff --git a/fern/products/docs/pages/customization/user-feedback.mdx b/fern/products/docs/pages/customization/user-feedback.mdx index 4651dd5ba..4aa62ce1b 100644 --- a/fern/products/docs/pages/customization/user-feedback.mdx +++ b/fern/products/docs/pages/customization/user-feedback.mdx @@ -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: