Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/quality_check_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
- name: Build docs
run: |
rm -rf site
mkdocs build
zensical build
2 changes: 1 addition & 1 deletion .github/workflows/reusable_publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
ALIAS: ${{ inputs.alias }}
run: |
rm -rf site
mkdocs build
zensical build
- name: Deploy Docs (Version)
env:
VERSION: ${{ inputs.version }}
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ build: pr
uv build --no-sources

docs-local:
uv run --locked mkdocs serve
uv run --locked zensical serve

docs-local-docker:
docker build -t squidfunk/mkdocs-material ./docs/
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
docker build -t powertools-docs ./docs/
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs powertools-docs

security-baseline:
uv run --locked bandit --baseline bandit.baseline -r aws_lambda_powertools
Expand Down
2 changes: 1 addition & 1 deletion aws_lambda_powertools/metrics/base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Metrics utility
!!! abstract "Usage Documentation"
[`Metrics`](../../core/metrics.md)
[`Metrics`](../../core/metrics/index.md)
"""

from __future__ import annotations
Expand Down
14 changes: 11 additions & 3 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# v9.1.18
FROM squidfunk/mkdocs-material@sha256:868ad4d39fb5865b72d00173ade00f4eae2b38dde7ff790a011cc44ce4a8ff8e
# Local docs preview with Zensical (see `make docs-local-docker`)
# python:3.12-slim
FROM python@sha256:a6e34c598f2467ed0e9a8d349809fcd8b5c603269512df273a0bb1784edc11b1
# pip-compile --generate-hashes --output-file=requirements.txt requirements.in
COPY requirements.txt /tmp/
RUN pip install --require-hashes -r /tmp/requirements.txt
RUN pip install --no-cache-dir --require-hashes -r /tmp/requirements.txt

Check warning on line 6 in docs/Dockerfile

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Merge this RUN instruction with the consecutive ones.

See more on https://sonarcloud.io/project/issues?id=aws-powertools_powertools-lambda-python&issues=AaFOhPMQZ8s0d5qnX9LF&open=AaFOhPMQZ8s0d5qnX9LF&pullRequest=8585

Check warning on line 6 in docs/Dockerfile

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--only-binary :all:" can lead to the execution of setup scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=aws-powertools_powertools-lambda-python&issues=AaFOhPMQZ8s0d5qnX9LG&open=AaFOhPMQZ8s0d5qnX9LG&pullRequest=8585
Comment thread
sonarqubecloud[bot] marked this conversation as resolved.
Dismissed
# Same UID as the typical host user, so files written to the mounted volume are not owned by root
RUN useradd --uid 1000 --create-home docs
USER docs
WORKDIR /docs
EXPOSE 8000
ENTRYPOINT ["zensical"]
CMD ["serve", "--dev-addr", "0.0.0.0:8000"]
4 changes: 2 additions & 2 deletions docs/core/event_handler/api_gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Event handler for Amazon API Gateway REST and HTTP APIs, Application Load Balanc

### Install

!!! info "This is not necessary if you're installing Powertools for AWS Lambda (Python) via [Lambda Layer/SAR](../../index.md#lambda-layer){target="_blank"}."
!!! info "This is not necessary if you're installing Powertools for AWS Lambda (Python) via [Lambda Layer/SAR](../../getting-started/install.md#lambda-layer){target="_blank"}."

**When using the data validation feature**, you need to add `pydantic` as a dependency in your preferred tool _e.g., requirements.txt, pyproject.toml_. At this time, we only support Pydantic V2.

Expand Down Expand Up @@ -64,7 +64,7 @@ By default, we will use `APIGatewayRestResolver` throughout the documentation. Y
| **[`ALBResolver`](#application-load-balancer)** | Amazon Application Load Balancer (ALB) |
| **[`LambdaFunctionUrlResolver`](#lambda-function-url)** | AWS Lambda Function URL |
| **[`VPCLatticeResolver`](#vpc-lattice)** | Amazon VPC Lattice |
| **[`HttpResolverLocal`](#http-resolver-local)** | ASGI-compatible resolver |
| **[`HttpResolverLocal`](#http-resolver-asgi)** | ASGI-compatible resolver |
<!-- markdownlint-enable MD051 -->

#### Response auto-serialization
Expand Down
2 changes: 1 addition & 1 deletion docs/core/event_handler/bedrock_agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ An action group defines actions that the agent can help the user perform. You ca

### Install

!!! info "This is unnecessary if you're installing Powertools for AWS Lambda (Python) via [Lambda Layer/SAR](../../index.md#lambda-layer){target="_blank"}."
!!! info "This is unnecessary if you're installing Powertools for AWS Lambda (Python) via [Lambda Layer/SAR](../../getting-started/install.md#lambda-layer){target="_blank"}."

If you define the action group setting up an **OpenAPI schema**, you need to add `pydantic` as a dependency in your preferred tool _e.g., requirements.txt, pyproject.toml_. At this time, we only support Pydantic V2.

Expand Down
Loading
Loading