-
Notifications
You must be signed in to change notification settings - Fork 3k
Use markdown-cli to check markdown for the style errors
#1277
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| rev: v0.27.1 | ||
| hooks: | ||
| - id: markdownlint | ||
| args: ['--fix'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes some errors in an automatic way.
| # MD013/line-length - Line length | ||
| MD013: | ||
| # Number of characters | ||
| line_length: 1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is better to be fixed in a separate PR (it will be too much noise here)
|
This LGTM! I have become very fond of an autoformatter for markdown called prettier, but I have no experience with markdown-cli to compare it with. Due to that, I suggest that deliberating on that isn't a blocker for merging this PR. Briefly though, we have used prettier across the jupyterhub organization for YAML, JSON, and Markdown autoformatting - here is an example from a .pre-commit-config.yml: # Autoformat: markdown, yaml
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
hooks:
- id: prettier |
Thanks, @consideRatio. Prettier looks nice. I will take a closer look after this PR gets merged. |
|
@romainx could you please take a look here? Also, I had one approval from @consideRatio, which makes me believe that this is ready to be merged :) |
|
The reason I'm asking - this blocks me from further docs improvement (from the technical point of view). |
|
@mathbunnyru there is a conflict now could you solve it? |
RTD pr preview would be nice to activate, requires maintainer permissions on the associated RTD project though. @parente @minrk @willingc |
Fixed.
Yes, for now local generation (though we need to use old versions). RTD pr preview would be great 👍 |
|
@mathbunnyru and @romainx I don't remember how it works properly, but perhaps you can make sure you have a RTD account (or have signed in once using your github handle to RTD)? |
I've already created one and linked it with my GitHub account and the login is the same |
|
@consideRatio same for me. |
romainx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finally I reviewed the files manually 😅. Did not catch any error 🕵️ .
|
Thanks @mathbunnyru always improve! |
No description provided.