kmk_firmware icon indicating copy to clipboard operation
kmk_firmware copied to clipboard

add docs/doc_tools for spell checking markdown

Open rrotter opened this issue 3 years ago • 11 comments

This requires aspell be installed and on your path. Right now it's an interactive tool for cleaning up the docs, but it could be adapted to be a commit hook or GitHub action.

rrotter avatar Apr 27 '22 01:04 rrotter

Well, I was just about to bring up words that don't exist, but you clearly know the tool. I like this.

kdb424 avatar Apr 27 '22 01:04 kdb424

This is the tooling I used for #418, and the wordlist is seeded w/ all the words (and a lot of non-words) that I needed to accept in the process of that work.

rrotter avatar Apr 27 '22 01:04 rrotter

Looks good to me. I made a comment about a make arg, and that would apply to any tool like these.

kdb424 avatar Apr 27 '22 01:04 kdb424

Added a make command, cleaned up the bash script, and edited a few more markdown files so make spellcheck can pass without adding anything too questionable to the spelling dictionary.

Any suggestions on whether there'd be a better place to put the script and dictionary? The /docs/docs_utils path was sort of a placeholder, and I'm not really happy with it. Would these files make sense in /util?

rrotter avatar Apr 27 '22 22:04 rrotter

Util is historically where we put any tooling that we didn't know where else to put it. That seems reasonable.

kdb424 avatar Apr 27 '22 23:04 kdb424

I'm ready to call this done. Could maybe add a note about this in docs/contributing.md, but I'm not sure what to say there.

Made a few more edits to the docs along the lines of #418 because if I'm going to commit a new test, I should make the test pass. That being said, I did not add make spellcheck to make test since there is an external non-python dependency.

rrotter avatar Apr 28 '22 02:04 rrotter

I was just thinking about this PR a little more: This tooling was quite helpful to me well proofreading the docs. I submitted this PR since there were some interest in it. TBH, i'm not sure it belongs as part of the project. It would be nice if there was a tool like Black that was python native and available from pip. As it is, this feels like scope creep. Maybe it's best to close this or move it back to a draft?

rrotter avatar Apr 30 '22 00:04 rrotter

I like it as even an optional tool. It'll be there for those that want to use it, but it won't be a hard requirement like black. Thoughts?

kdb424 avatar Apr 30 '22 02:04 kdb424

Yeah, that's fine too. If a better tool emerges there's no problem with changing.

rrotter avatar Apr 30 '22 03:04 rrotter

I was just thinking about this PR a little more: This tooling was quite helpful to me well proofreading the docs. I submitted this PR since there were some interest in it. TBH, i'm not sure it belongs as part of the project. It would be nice if there was a tool like Black that was python native and available from pip. As it is, this feels like scope creep. Maybe it's best to close this or move it back to a draft?

There is no reason a tool must be written in Python to be a dev-time dep of KMK. Hell, I stray away from Python stuff these days myself; I'm certainly no purist for the cause. I'm very much a fan of this idea; going to review the PR as-written and provide inline comments as/if appropriate.

klardotsh avatar Jun 09 '22 09:06 klardotsh

As @klardotsh seems to have opinions, if possible, could it be adopted so this can get handled properly?

kdb424 avatar Aug 10 '22 05:08 kdb424

@xs5871 FYI, I finished this PR in #858 so this PR can be closed :)

grasegger avatar Sep 02 '23 13:09 grasegger

Indeed, thank you!

klardotsh avatar Sep 05 '23 06:09 klardotsh