Skip to content
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

Typical common words - linting #757

Closed
svx opened this issue Jan 29, 2017 · 8 comments
Closed

Typical common words - linting #757

svx opened this issue Jan 29, 2017 · 8 comments

Comments

@svx
Copy link
Member

svx commented Jan 29, 2017

In order to increase the quality and also to make the docs easier to understand I wrote a linter which is able to check for typical common words.
This is handy, because with this we can make sure we always have for example GitHub and not sometimes Github, the same goes for JavaScript in place of Javascript.

Question: Do we have more words besides these two, which we should check ?

@fulv
Copy link
Member

fulv commented Jan 29, 2017 via email

@fulv
Copy link
Member

fulv commented Jan 29, 2017 via email

@stevepiercy
Copy link
Contributor

There's a Sphinx contribution that can do this:
http://sphinxcontrib-spelling.readthedocs.io/en/latest/

There's also an open issue:
plone/plone.recipe.codeanalysis#87

And there's another open issue for an .rst linter:
plone/plone.recipe.codeanalysis#64

@svx
Copy link
Member Author

svx commented Mar 16, 2017

@stevepiercy we are using http://sphinxcontrib-spelling.readthedocs.io/en/latest/ already and I want to get rid of it.
For 'blacklisting words' we are using on the 5.1 branch already a new linter.
We are using http://sphinxcontrib-spelling.readthedocs.io/en/latest/ for spell checks, for this it kind of works, but still the dependencies are annoying and I have other issues with it.
Further on I prefer something more light, better suited for CI and without having Sphinx as dependency. :)

@svx
Copy link
Member Author

svx commented Mar 16, 2017

@stevepiercy for your other point, the new setup is using a reST linter:

The new setup, which is not published yet because I am still testing and tweaking is running reST syntax checks.
We decided some time ago, not to run them yet on the docs, currently the general shape of reST in our docs is still too bad and we do not want to demotivate people and so on.

I even gave a talk in Boston and a training explaining the motivation and reasons behind that.

Nothing stops you of course of doing that already, I for example run a reST test as part of my commit hook. :)

As I said above, soon this will be included as CI test for the docs.

@stevepiercy
Copy link
Contributor

@svx I'd like to be a guinea pig for the new setup, as I'm considering how we can enforce compliance with our new style guide for Pyramid (and Pylons Project projects). I'm about to give up on perfection and settle for good enough.

We rely on Sphinx to build docs, and I don't see how you can build docs without it, unless you roll your own docs builder.

I always build docs before submitting a PR, and our CI for Pyramid is configured to build docs as well.

Which training was it? Got link?
https://2016.ploneconf.org/training

@svx
Copy link
Member Author

svx commented Mar 16, 2017

@stevepiercy You can find the training in the repository of
testthedocs -> https://github.com/testthedocs/ttd.training-docs-devs.
Just note that the whole github.com/testthedocs is currently a mess, because of moving, removing, cleaning and so on :)
There will be a 'relaunch bla bla bla soon'

The trainings there are also not up2date anymore, we changed a lot of, like testing and githooks already.

Unfortunately the trainings do not contain the speaker notes, where all this is written down, bit if you really interested in the reasons and motivation we could do a hangout or something like that.

Speaking about the new setup, you can't really find it yet, because it is splattered over at least 3 different GitHub accounts in various repositories, some is not even open-source yet, cause I build it for a customer, who will open-source it somewhere next month.
I will try to collect the bits in one repo, and do a write up.
If that is done people are more than welcome to contribute, or/and give feedback.

Just to let you know, this is currently mainly written with a certain setup/structure in mind :)
The idea is to have it more flexible in the future :)

And it is also heavily opinionated, call it the CastleCMS of a docs test and build setup :).

Meaning some things you will may not like, but well maybe you or others can convince me to change certain bits or send a PR with improvements.

Oh, I almost forgot it has one dependency and this is docker, which I may change to rkt in the future.

@stevepiercy
Copy link
Contributor

In Plone 6, we now use Vale. See https://6.docs.plone.org/contributing/setup-build.html#vale

This will not be fixed in previous versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants