diff --git a/fern/products/docs/pages/preview-publish/preview-changes-locally.mdx b/fern/products/docs/pages/preview-publish/preview-changes-locally.mdx index 666289bf55..8fb5c9c9b7 100644 --- a/fern/products/docs/pages/preview-publish/preview-changes-locally.mdx +++ b/fern/products/docs/pages/preview-publish/preview-changes-locally.mdx @@ -194,14 +194,30 @@ jobs: - name: Create comment content run: | - echo ":herb: **Preview your docs:** <${{ steps.generate-docs.outputs.preview_url }}>" > comment.md + PREVIEW_URL="${{ steps.generate-docs.outputs.preview_url }}" + cat > comment.md << EOF +
+ Fern +

✅ Preview Ready

+ Visit Preview → +
+ + --- + EOF if [ -n "${{ steps.page-links.outputs.page_links }}" ]; then echo "" >> comment.md - echo "Here are the markdown pages you've updated:" >> comment.md + echo "
" >> comment.md + echo "📄 Changed pages" >> comment.md + echo "" >> comment.md echo "${{ steps.page-links.outputs.page_links }}" >> comment.md + echo "" >> comment.md + echo "
" >> comment.md + echo "" >> comment.md fi + echo '🌿 Deployed with Fern' >> comment.md + - name: Post PR comment uses: thollander/actions-comment-pull-request@v2.4.3 with: @@ -287,14 +303,30 @@ jobs: - name: Create comment content run: | - echo ":herb: **Preview your docs:** <${{ steps.generate-docs.outputs.preview_url }}>" > comment.md + PREVIEW_URL="${{ steps.generate-docs.outputs.preview_url }}" + cat > comment.md << EOF +
+ Fern +

✅ Preview Ready

+ Visit Preview → +
+ + --- + EOF if [ -n "${{ steps.page-links.outputs.page_links }}" ]; then echo "" >> comment.md - echo "Here are the markdown pages you've updated:" >> comment.md + echo "
" >> comment.md + echo "📄 Changed pages" >> comment.md + echo "" >> comment.md echo "${{ steps.page-links.outputs.page_links }}" >> comment.md + echo "" >> comment.md + echo "
" >> comment.md + echo "" >> comment.md fi + echo '🌿 Deployed with Fern' >> comment.md + - name: Post PR comment uses: thollander/actions-comment-pull-request@v2.4.3 with: