Skip to content

Commit f063550

Browse files
committed
docs(homepage): use title for simple code blocks
1 parent 2a7c082 commit f063550

File tree

1 file changed

+13
-21
lines changed

1 file changed

+13
-21
lines changed

docs/index.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -396,24 +396,18 @@ If using SAM, you can include this SAR App as part of your shared Layers stack,
396396
- Ref: "PowertoolsLayerIamRole"
397397
```
398398

399-
You can fetch available versions via SAR API with:
399+
You can fetch available versions via SAR ListApplicationVersions API:
400400

401-
=== "shell"
402-
403-
```bash
404-
aws serverlessrepo list-application-versions \
405-
--application-id arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer
406-
```
401+
```bash title="AWS CLI example"
402+
aws serverlessrepo list-application-versions \
403+
--application-id arn:aws:serverlessrepo:eu-west-1:057560766410:applications/aws-lambda-powertools-python-layer
404+
```
407405

408406
## Quick getting started
409407

410-
**Quick hello world example using SAM CLI**
411-
412-
=== "shell"
413-
414-
```bash
415-
sam init --location https://github.com/aws-samples/cookiecutter-aws-sam-python
416-
```
408+
```bash title="Hello world example using SAM CLI"
409+
sam init --location https://github.com/aws-samples/cookiecutter-aws-sam-python
410+
```
417411

418412
## Features
419413

@@ -455,12 +449,10 @@ You can fetch available versions via SAR API with:
455449

456450
## Debug mode
457451

458-
As a best practice, AWS Lambda Powertools logging statements are suppressed. If necessary, you can enable debugging using `set_package_logger`:
459-
460-
=== "app.py"
452+
As a best practice, AWS Lambda Powertools module logging statements are suppressed. If necessary, you can enable debugging using `set_package_logger` for additional information on every internal operation:
461453

462-
```python
463-
from aws_lambda_powertools.logging.logger import set_package_logger
454+
```python title="Powertools debug mode example"
455+
from aws_lambda_powertools.logging.logger import set_package_logger
464456

465-
set_package_logger()
466-
```
457+
set_package_logger()
458+
```

0 commit comments

Comments
 (0)