Add a linter for docs/
#2440
Replies: 6 comments
-
@natestemen What are your preferences? I prefer Option 2 over the other two. The main caveat for this is that it is not available as a PyPI package. We can use it in Github Actions or as a VS Code extension. |
Beta Was this translation helpful? Give feedback.
-
Added a draft PR for this. We need to agree on which rules we want to keep and which ones we want to ignore. The installation workflow for the cli is a little bit convoluted as I cannot use Locally, almost all the failures are due to violation of default line-length in the markdownlint_all.txt I did not want to commit the changes related to the easily fixable errors as we have not agreed on the ruleset yet. But once we agree on the rules, we can use the Lines 1 to 35 in bf82e84 |
Beta Was this translation helpful? Give feedback.
-
@purva-thakre can you add the new commit with the above edits? Let's try to figure out which issues this is actually fixing (i.e. formatting issues that would have been very obtrusive otherwise). As well as deciding on rules. |
Beta Was this translation helpful? Give feedback.
-
I left this comment over on Purva's PR, but it more likely belongs here:
|
Beta Was this translation helpful? Give feedback.
-
Since most of our docs pages are in There are additional formatting issues with the How about we don't add |
Beta Was this translation helpful? Give feedback.
-
Closing as the discussion is stale. |
Beta Was this translation helpful? Give feedback.
-
Previously discussed here: #2382 (comment)
Option 1: There exists a Sphinx extension for
.rst
files. Will require additional configuration as most of our examples and user guides are written in.md
formatOption 2:
markdownlint
for.md
files has a nice set of pre-defined rules. We can also define our own rules as needed.Option 3: https://github.com/jackdewinter/pymarkdown
Beta Was this translation helpful? Give feedback.
All reactions