Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The website builder (
bazel/website/) is intended to be generator-agnostic but lacks tests to validate this design. This adds comprehensive test coverage and documents the current state of generator-agnostic support.Test Infrastructure
//website/tests:website_generation_test- Validates basic website generation with Pelican//website/tests:website_parameterized_test- Tests custom exclude patterns and mappingsRun with:
cd bazel && bazel test //website/tests/...Fixtures
Minimal test content, theme, and Pelican config demonstrating the macro interface:
Generator-Agnostic Analysis
Already flexible:
Pelican-specific defaults:
excludelist includes Pelican artifacts: archives.html, authors.html, categories.html, tags.htmlmappingsassume Pelican theme structure: theme/css → theme/static/cssTests demonstrate these can be overridden. Future generators can either override these parameters or use a generator-specific wrapper (e.g.,
pelican_website()) that sets appropriate defaults while keepingstatic_website()generic.See
bazel/website/tests/README.mdfor detailed findings and recommendations.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
mirror.bazel.build/build/bazel_root/install/fb2a7f6d344d2f4e335882534df59296/embedded_tools/jdk/bin/java bazel(bazel) --add-opens=java.base/java.lang=ALL-UNNAMED -Xverify:none -Djava.util.logging.config.file=/build/bazel_root/base/javalog.properties -Dcom.google.devtools.build.lib.util.LogHandlerQuerier.class=com.google.devtools.build.lib.util.SimpleLogHandler$HandlerQuerier -XX:-MaxFDLimit -Djava.library.path=/build/bazel_root/install/fb2a7f6d344d2f4e335882534df59296/embedded_tools/jdk/lib:/build/bazel_root/install/fb2a7f6d344d2f4e335882534df59296/embedded_tools/jdk/lib/server:/build/bazel_root/install/fb2a7f6d344d2f4e335882534df59296/ -Dfile.encoding=ISO-8859-1 -Duser.country= -Duser.language= -Duser.variant= -Djavax.net.ssl.trustStore=/tmp/custom-cacerts -Djavax.net.ssl.trustStorePassword=changeit -jar /build/bazel_root/install/fb2a7f6d344d2f4e335882534df59296/A-server.jar --max_idle_secs=10800 --noshutdown_on_low_sys_mem --connect_timeout_secs=30 --output_user_root=/build/bazel_root --install_base=/build/bazel_root/install/fb2a7f6d344d2f4e335882534df59296(dns block)www.googleapis.com/usr/local/bin/bazel bazel shutdown(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.