Skip to content

Commit 1c82679

Browse files
committed
mdx workaround
1 parent 41bb5f5 commit 1c82679

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/markup-pr.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v5
20+
21+
# Temporarily rename .mdx to .md
22+
- name: Prepare MDX files
23+
run: |
24+
# Store original names
25+
find . -name "*.mdx" > /tmp/mdx_files.txt
26+
# Rename to .md
27+
while read file; do
28+
mv "$file" "${file%.mdx}.md"
29+
done < /tmp/mdx_files.txt
30+
2031
- name: Quality Analysis
2132
id: analysis
2233
uses: markupai/content-guardian-action@v1
@@ -25,10 +36,20 @@ jobs:
2536
github_token: ${{ secrets.GITHUB_TOKEN }}
2637
dialect: "american_english"
2738
style-guide: "microsoft"
28-
# tone is optional
2939
tone: "technical"
40+
41+
# Rename back to .mdx
42+
- name: Restore MDX extensions
43+
if: always()
44+
run: |
45+
while read file; do
46+
md_file="${file%.mdx}.md"
47+
if [ -f "$md_file" ]; then
48+
mv "$md_file" "$file"
49+
fi
50+
done < /tmp/mdx_files.txt
3051
3152
- name: Check Quality Score
3253
run: |
3354
results='${{ steps.analysis.outputs.results }}'
34-
# Add your quality threshold logic here
55+
echo "$results"

fern/products/docs/pages/customization/user-feedback.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Collecting feedback and suggestions from users
33
slug: user-feedback
44
---
55

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

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

0 commit comments

Comments
 (0)