-
Notifications
You must be signed in to change notification settings - Fork 408
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(general): consistency around admonitions and snippets #919
docs(general): consistency around admonitions and snippets #919
Conversation
17aa303
to
d226b01
Compare
Throughout the documentation we had a bit of inconsistency around admonitions. As such we added few rules to keep the consistency which will improve the UX: * we should use `???+` instead of `!!!` so we can have a collapse block (default open) * for admonitions with default title, we should write the description on a new line * for admonitions which has a custom title as well as a description, we should adhere to the format `<admonitions type>: <custom title>`. E.g - for a tip admonitions with a custom title "Did you know?" and description of "Powertools is a brilliant library" ``` ???+ tip "Tip: Did you know?" Powertools is a brilliant library ```
d226b01
to
8c06557
Compare
Codecov Report
@@ Coverage Diff @@
## develop #919 +/- ##
===========================================
+ Coverage 99.90% 99.96% +0.05%
===========================================
Files 118 118
Lines 5246 5273 +27
Branches 596 606 +10
===========================================
+ Hits 5241 5271 +30
+ Misses 1 0 -1
+ Partials 4 2 -2
Continue to review full report at Codecov.
|
to reviewer attention:
|
This is awesome @DanyC97 - Once I finish the major work for the next release I'll look into this, specially render the docs locally to see how much width it covers when reading the docs. Thank you!!! |
in new year will try to see if we can have a preview docs rendered as part of PR to avoid extra work. |
I'm merging this today - I'm making some minor fixes to adjust for screen and things like there's no need to use
|
sure, feel free to make changes. Note the rational for having |
Yeah I noticed that. I'll do multiple passes to see what reads better from an accessibility perspective and screen real estate. |
Time allowing, I'm gonna take this opportunity to use the new Example - what do you think @DanyC97 |
I've just finished playing with single line admonition vs two-line - I'll revert those changes. Thanks again for chiming in. Reasoning: It's easier to forget to add |
Finally done :) All single snippet examples are no longer tabbed, except multiple code snippets. Also improved wording here and there part of previous PRs I didn't manage to do copywriting. Thank you so much @DanyC97 for kicking this off! Merging |
i love it, brilliant work! |
…tools-python into complex * 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: (24 commits) docs: consistency around admonitions and snippets (aws-powertools#919) chore(deps-dev): bump mypy from 0.920 to 0.930 (aws-powertools#925) fix(event-sources): handle dynamodb null type as none, not bool (aws-powertools#929) fix(apigateway): support @app.not_found() syntax & housekeeping (aws-powertools#926) docs: Added GraphQL Sample API to Examples section of README.md (aws-powertools#930) feat(idempotency): support dataclasses & pydantic models payloads (aws-powertools#908) feat(tracer): ignore tracing for certain hostname(s) or url(s) (aws-powertools#910) feat(event-sources): cache parsed json in data class (aws-powertools#909) fix(warning): future distutils deprecation (aws-powertools#921) docs(batch): remove leftover from legacy docs(layer): bump Lambda Layer to version 6 chore: bump to 1.23.0 docs(apigateway): add new not_found feature (aws-powertools#915) docs: external reference to cloudformation custom resource helper (aws-powertools#914) feat(logger): allow handler with custom kwargs signature (aws-powertools#913) chore: minor housekeeping before release (aws-powertools#912) chore(deps-dev): bump mypy from 0.910 to 0.920 (aws-powertools#903) feat(batch): new BatchProcessor for SQS, DynamoDB, Kinesis (aws-powertools#886) fix(parser): overload parse when using envelope (aws-powertools#885) fix(parser): kinesis sequence number is str, not int (aws-powertools#907) ...
…tools-python into feature/905-datetime * 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: feat(feature_flags): support beyond boolean values (JSON values) (aws-powertools#804) docs: consistency around admonitions and snippets (aws-powertools#919) chore(deps-dev): bump mypy from 0.920 to 0.930 (aws-powertools#925) fix(event-sources): handle dynamodb null type as none, not bool (aws-powertools#929) fix(apigateway): support @app.not_found() syntax & housekeeping (aws-powertools#926) docs: Added GraphQL Sample API to Examples section of README.md (aws-powertools#930) feat(idempotency): support dataclasses & pydantic models payloads (aws-powertools#908) feat(tracer): ignore tracing for certain hostname(s) or url(s) (aws-powertools#910) feat(event-sources): cache parsed json in data class (aws-powertools#909) fix(warning): future distutils deprecation (aws-powertools#921)
Issue #, if available: #917
Description of changes:
Throughout the documentation we had a bit of inconsistency around
admonitions.
As such we added few rules to keep the consistency which will improve
the UX:
???+
instead of!!!
so we can have a collapse block(default open)
on a new line
should adhere to the format
<admonitions type>: <custom title>
.E.g - for a tip admonitions with a custom title "Did you know?" and
description of "Powertools is a brilliant library"
Checklist
Breaking change checklist
RFC issue #:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
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/utilities/batch.md
View rendered docs/utilities/data_classes.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/validation.md