Skip to content

feat: Automated Spell-check for docs and associated spelling fixes - #10080

Merged
MartinZikmund merged 4 commits into
unoplatform:masterfrom
SeanKilleen:7422_automated-docs-spellcheck
Oct 17, 2022
Merged

MartinZikmund merged 4 commits into
unoplatform:masterfrom
SeanKilleen:7422_automated-docs-spellcheck

Conversation

@SeanKilleen

@SeanKilleen SeanKilleen commented Oct 6, 2022 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): Supports #7422.

PR Type

What kind of change does this PR introduce?

  • Build or CI related changes
  • Documentation content changes

What is the current behavior?

  • Spellchecks are done manually, by humans. Errors can slip by in PRs.
  • Some spelling errors possibly exist in the docs

What is the new behavior?

  • Spellchecking is done via GitHub Actions and cSpell.
  • Anyone using VSCode (or GitHub Codespaces, etc.) that has the spellcheck extension will get automatic highlighting and fix suggestions.
  • All possible spelling errors reviewed and dictionary updated or fixes made.
  • Dev docs updated to reflect how to use the tooling locally.

ℹ️ You can choose to require this as a check to pass (which I suggest doing upon merge of this PR)

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

Remaining / Surfaced tasks

(so they don't get lost)

  • Fix API "favourites" routes
  • Update regex to more inclusive regex
  • Split added vs ignored words in cSpell config
  • YAML formatting consistent with rest of code

@CLAassistant

CLAassistant commented Oct 6, 2022 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@gitpod-io

gitpod-io Bot commented Oct 6, 2022

Copy link
Copy Markdown

@SeanKilleen

Copy link
Copy Markdown
Contributor Author

ℹ️ Note that someone will need to enable the workflows I'm adding here in order to verify that they're working correctly. If you review the YAML file, you'll see it's pretty straightforward.

@jeromelaban
jeromelaban marked this pull request as draft October 6, 2022 12:47
@SeanKilleen

Copy link
Copy Markdown
Contributor Author

At start, 699 issues found (though much of that will be about adding known words to the dictionary).

@SeanKilleen

Copy link
Copy Markdown
Contributor Author

@jeromelaban -- saw that you marked this PR as draft. Could you please click to approve the workflow to run so that I can ensure things are working as expected with the GitHub Action? (at your leisure of course.)

@SeanKilleen

Copy link
Copy Markdown
Contributor Author

Down to 392 reported errors.

@jeromelaban jeromelaban left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking very nice! Thanks for your contribution. We'll enable the additional action as a requirement, once merged.

Comment thread cSpell.json Resolved
@SeanKilleen

SeanKilleen commented Oct 6, 2022 •

Copy link
Copy Markdown
Contributor Author

Down to 263 reported errors.

@SeanKilleen

Copy link
Copy Markdown
Contributor Author

Down to 166 reported issues.

@SeanKilleen

Copy link
Copy Markdown
Contributor Author

Down to 94 reported issues.

@SeanKilleen

Copy link
Copy Markdown
Contributor Author

Down to 26 reported errors

Comment thread .github/workflows/docs.yml Resolved
@SeanKilleen

SeanKilleen commented Oct 6, 2022 •

Copy link
Copy Markdown
Contributor Author

OK -- at this point, my local cspell reports no errors. 🎉

I'm going to move on to making the suggested changes and resolving any CI errors.

We still do not know if the GitHub action is working as defined because it has not yet been enabled as far as I can tell.

Feel free to review!

@SeanKilleen
SeanKilleen marked this pull request as ready for review October 6, 2022 16:06
Comment thread cSpell.json Resolved
Comment thread doc/articles/features/routed-events.md Resolved
Comment thread doc/articles/features/uno-cupertino.md Resolved
Comment thread doc/articles/supported-features.md Resolved
@SeanKilleen SeanKilleen changed the title WIP: Automated Spell-check for docs and associated spelling fixes feat: Automated Spell-check for docs and associated spelling fixes Oct 6, 2022
@SeanKilleen

Copy link
Copy Markdown
Contributor Author

@Youssef1313 @jeromelaban I noticed that my commits are definitely going to fail the conventional commits validation.

After you're reviewed the individual changes, I'm happy to squash and force push my changes with a conventional commit title.

I assumed this would be squash-merged at the end but didn't realize the commit titles would prevent CI from running.

Comment thread .editorconfig Resolved
Comment thread cSpell.json Resolved
Comment thread doc/articles/Uno-UI-Performance.md Resolved
Comment thread doc/articles/get-started-next-steps.md Resolved

@SkyeHoefling SkyeHoefling left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much @SeanKilleen for updating my name in this PR. I noticed there was 1 place that was missed and I left a code suggestion

Comment thread doc/articles/get-started-next-steps.md Resolved

@Youssef1313 Youssef1313 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a detailed review, but LGTM overall.

@SeanKilleen

Copy link
Copy Markdown
Contributor Author

Thanks for the approval @Youssef1313!

Given that someone has approved it, I am going to now squash my changes and force-push so that I can use a conventional commit and ensure the rest of the pipelines are passing too.

@SeanKilleen
SeanKilleen force-pushed the 7422_automated-docs-spellcheck branch from 36a0b2e to 4bbed33 Compare October 6, 2022 20:13
Comment thread cSpell.json Resolved
Comment thread cSpell.json Resolved
@SeanKilleen
SeanKilleen force-pushed the 7422_automated-docs-spellcheck branch 2 times, most recently from 93fbe1c to 791ab8e Compare October 7, 2022 12:32
@SeanKilleen

Copy link
Copy Markdown
Contributor Author

Hey all -- as far as I can tell:

✅ All comments have been addressed
✅ Commits are looking good and passing
✅ CI is passing or seems about to
✅ I'm confident the GitHub Action will work once enabled in this PR
✅ It runs and reports zero errors in my environment

Given that, I'd love to do a last pass and get this merged. It's not that I'm impatient; it's that I know this touches a lot of files and I don't want it to go too long before merge conflicts are a thing.

@SeanKilleen

SeanKilleen commented Oct 10, 2022 •

Copy link
Copy Markdown
Contributor Author

@MartinZikmund / @jeromelaban / @Youssef1313 -- just checking on what the path to merge here is. It looks like all the comments have been addressed and I'm happy to tackle anything else.

I won't ping more on this because I don't want to disturb you further 👍 but wanted to get this in before other PRs cause merge conflicts. given the number of files affected.

@jeromelaban jeromelaban left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very useful PR, thank you for your contribution! Just a few minor fixes and it will be good to merge!

Comment thread doc/articles/get-started-next-steps.md Resolved
Comment thread doc/articles/wpf-migration.md Resolved
@SeanKilleen
SeanKilleen force-pushed the 7422_automated-docs-spellcheck branch from 791ab8e to 1ba4d9a Compare October 11, 2022 02:25
@SeanKilleen

Copy link
Copy Markdown
Contributor Author

@jeromelaban changes made 👍 ready to go at your leisure.

@SeanKilleen

Copy link
Copy Markdown
Contributor Author

@jeromelaban I merged master and resolved a minor conflict. This PR is ready to go at your earliest convenience.

@SeanKilleen
SeanKilleen requested a review from Xiaoy312 October 13, 2022 00:32
@jeromelaban

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@SeanKilleen

Copy link
Copy Markdown
Contributor Author

Looks like these completed running and the only failures seem unrelated to the changes. 👍

@jeromelaban

Copy link
Copy Markdown
Member

Looks like these completed running and the only failures seem unrelated to the changes. 👍

Indeed, those are unrelated failures, linked to the project getting bigger :) We're fixing those.

@jeromelaban

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@MartinZikmund
MartinZikmund merged commit 07d478b into unoplatform:master Oct 17, 2022
@welcome

welcome Bot commented Oct 17, 2022

Copy link
Copy Markdown

Congrats on your first pull-request! We ❤ the people who are involved in this project, and we’d love to pay it forward by sending you some swag. If you have any feedback (or ideas how to improve Uno as a open-source project) please open a feedback issue.
giphy
Merci beaucoup 👋

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants