-
Notifications
You must be signed in to change notification settings - Fork 146
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: extract Metrics code snippets in separate files #1221
Comments
Names for the files (in order of appearance in this file), if I have forgotten any of them let me know:
|
@dreamorosi checked the quantity of code snippets and identified the same number of I can start today evening with this issue . |
* docs(metrics): extract Metrics code snippets in separate files #1221 * fix(docs): hl_lines of multiValueMetrics code snippet
|
What were you searching in the docs?
Currently the code snippets in the documentation under the Metrics's section are hardcoded as part of the page's markdown.
This authoring experience, which doesn't provide linting, is error prone, which causes issues in the docs and in turns to users.
This issue is part of a larger effort being tracked at #729.
Is this related to an existing documentation section?
https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/metrics/
How can we improve?
The code snippets should be extracted to their own separate files, placed under
docs/snippets/metrics
.So for instance, the first snippet that currently reads:
would be replaced with:
And the content should be placed in its own file at the path:
docs/snippets/metrics/basicUsage.ts
.This applies to all TypeScript code snippets of the page.
Got a suggestion in mind?
No response
Acknowledgment
The text was updated successfully, but these errors were encountered: