🏗📖 Auto-format all markdown files in ampproject/amphtml with Prettier#25182
🏗📖 Auto-format all markdown files in ampproject/amphtml with Prettier#25182rsimha merged 7 commits intoampproject:masterfrom rsimha:2019-10-18-PrettifyMarkdown
ampproject/amphtml with Prettier#25182Conversation
|
The link checker is reporting several seemingly broken links in our documentation I don't think we should be running the broken links check for PRs that modify a large number (> 20) of markdown files, so I've skipped it for large PRs. The check will continue to run when a smaller number of files are touched. |
|
I sanity checked several of the changes in this PR, and found no visible changes to the rendered HTML in most cases. This is now ready for review. |
|
Rebased and added a function to print suggested fixes for badly formatted |
mrjoro
left a comment
There was a problem hiding this comment.
overall changes look fine (with a few comments) though I admit to not reviewing all 483 files in detail :)
|
Rebased, reverted changes to issue template headers, and exempted them from future checks. |
|
Some final notes:
Merging this now 🤞 |
The AMP Project already uses Prettier to auto-format JS files and several non-JS files across the repo. This PR adds documentation files to the mix.
Highlights:
.mdfiles in the list of files that are checked by Prettier.mdfiles in the repo by runninggulp prettier --fix.mdfilesgulp make-extension) resilient to markdown file auto-fixingNotes:
.mdfiles will have to satisfy Prettier's formatting requirements.mdfiles on save is available heregulp prettify --local_changes --fixExample of a failing check:

Fixes #25148