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

docs(lint): add markdownlint rules and automation #1256

Merged
merged 14 commits into from
Jun 23, 2022

Conversation

heitorlessa
Copy link
Contributor

@heitorlessa heitorlessa commented Jun 22, 2022

Issue number: #1009

Summary

Changes

Please provide a summary of what's being changed

This PR introduces Markdownlint with a slightly customized default rules available at .markdownlint.yaml file.

Pre-commit hooks also include markdownlint to ensure each documentation change follows these rules. Failing that locally, CI will run markdownlint on all markdown content available in docs folder via make lint-docs.

For the future, it'd be great to create a custom rule to have a consistent one-line and multi-line admonitions. As of now, we use multi-line syntax only.

Additional tasks:

  • Test linting against all docs and fix those who can't be automated
  • Update GitHub Actions workflow to lint docs as part of PRs and build

User experience

Please share what the user experience looks like before and after this change

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.


View rendered docs/changelog.md
View rendered docs/core/event_handler/api_gateway.md
View rendered docs/core/event_handler/appsync.md
View rendered docs/core/logger.md
View rendered docs/core/metrics.md
View rendered docs/core/tracer.md
View rendered docs/index.md
View rendered docs/roadmap.md
View rendered docs/tutorial/index.md
View rendered docs/utilities/batch.md
View rendered docs/utilities/feature_flags.md
View rendered docs/utilities/idempotency.md
View rendered docs/utilities/jmespath_functions.md
View rendered docs/utilities/parameters.md
View rendered docs/utilities/parser.md
View rendered docs/utilities/typing.md
View rendered docs/utilities/validation.md

@boring-cyborg boring-cyborg bot added documentation Improvements or additions to documentation internal Maintenance changes labels Jun 22, 2022
@pull-request-size pull-request-size bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jun 22, 2022
@heitorlessa heitorlessa marked this pull request as draft June 22, 2022 19:21
heitorlessa and others added 5 commits June 22, 2022 21:21
* develop:
  fix(ci): reusable workflow secrets param
  chore(deps-dev): bump flake8-bugbear from 22.4.25 to 22.6.22 (aws-powertools#1258)
  chore(deps-dev): bump mypy-boto3-dynamodb from 1.24.0 to 1.24.12 (aws-powertools#1255)
  chore(deps-dev): bump mypy-boto3-secretsmanager (aws-powertools#1252)
@boring-cyborg boring-cyborg bot added the github-actions Pull requests that update Github_actions code label Jun 23, 2022
@heitorlessa heitorlessa marked this pull request as ready for review June 23, 2022 07:16
@heitorlessa heitorlessa changed the title [WIP] docs(lint): initial markdownlint config docs(lint): initial markdownlint config Jun 23, 2022
@heitorlessa heitorlessa changed the title docs(lint): initial markdownlint config docs(lint): add markdownlint rules and automation Jun 23, 2022
@heitorlessa
Copy link
Contributor Author

Merging as discussed with @sthulb @am29d @mploski -- a series of upcoming PRs will be created in the next 48 hours, one PR for each utility

@heitorlessa heitorlessa merged commit 17937d8 into aws-powertools:develop Jun 23, 2022
@heitorlessa heitorlessa deleted the docs/markdownlint branch June 23, 2022 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation github-actions Pull requests that update Github_actions code internal Maintenance changes size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant