Skip to content

docs: exclude tooling files from the published docs site - #2740

Merged
dreamorosi merged 1 commit into
mainfrom
docs/exclude-tooling-files-from-site
Nov 4, 2026
Merged

dreamorosi merged 1 commit into
mainfrom
docs/exclude-tooling-files-from-site

Conversation

@dreamorosi

Copy link
Copy Markdown
Contributor

Summary

Changes

MkDocs copies every non-Markdown file in docs/ into the built site, so the docs Dockerfile and requirements.in/requirements.txt are published at the root of every docs version (e.g. https://docs.aws.amazon.com/powertools/java/latest/Dockerfile). This adds exclude_docs to mkdocs.yml for /Dockerfile and /requirements.* so they're left out of the build.

  • The files stay in docs/, so docker build ./docs/ in the docs workflows is unaffected
  • Verified by building the docs image from docs/Dockerfile and running mkdocs build as CI does, before and after the change: the only difference in the output is that the three files are gone

Issue number: closes #2739


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.

MkDocs copies every non-Markdown file in docs_dir into the built site, so the
docs Dockerfile and requirements files were published at the site root.
Exclude them from the build.

Fixes #2739
@dreamorosi
dreamorosi requested a review from a team as a code owner November 4, 2026 17:27
@dreamorosi dreamorosi self-assigned this Nov 4, 2026
@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2026

Copy link
Copy Markdown

@dreamorosi
dreamorosi requested a review from phipag November 4, 2026 17:29
@dreamorosi
dreamorosi merged commit db3db31 into main Nov 4, 2026
11 checks passed
@dreamorosi
dreamorosi deleted the docs/exclude-tooling-files-from-site branch November 4, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maintenance: exclude docs tooling files from the published docs site

2 participants