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
CI: Lint docs #7479
CI: Lint docs #7479
Conversation
- echo 'Hello!'; | ||
-<TAB>echo 'Hello!'; |
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.
reStructuredText converts TAB characters to spaces :(
https://cs.symfony.com/doc/rules/whitespace/indentation_type.html 👀
I see! Documentation is generated from |
Yeah, this one may be tricky, since docs are generated (with |
@Wirone Please help me code these two.
In rst world we need two backticks.
|
@szepeviktor I am AFK right now, reviewing from mobile. Now I am going to be mostly offline, I can look in the evening if the problem remains 🙂. |
@szepeviktor I've changed those 2 sets locally (double backtick), generated docs ( root@996bbd4a9326:/fixer# apt-get update && apt-get install python3 pip git && pip install --user sphinx-lint && mv /root/.local/bin/sphinx-lint /usr/local/bin/
root@996bbd4a9326:/fixer# git --version
git version 2.34.1
root@996bbd4a9326:/fixer# sphinx-lint --version
sphinx-lint 0.9.0
root@996bbd4a9326:/fixer# git ls-files --cached -z -- '*.rst' | xargs --null -- python3 -m sphinxlint --enable all --disable trailing-whitespace --max-line-length 2000
No problems found. I'll just push the changes here (with a rebase). |
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.
Great stuff @szepeviktor 👏 . LGTM.
There is a tool called
sphinx-lint