-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Make pagefind work in docker #3899
Conversation
Make search text clickable; Improve search layout on mobile.
Make pagefind work in docker
WalkthroughThis update introduces several changes aimed at integrating the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
✅ Deploy Preview for esphome ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
ENV PAGEFIND_VERSION="1.1.0" | ||
ARG TARGETARCH | ||
SHELL ["/bin/bash", "-c"] | ||
RUN <<EOF | ||
export TARGETARCH=${TARGETARCH/arm64/aarch64} | ||
export TARGETARCH=${TARGETARCH/amd64/x86_64} | ||
curl -o pagefind.tar.gz https://github.com/CloudCannon/pagefind/releases/download/v$PAGEFIND_VERSION/pagefind-v$PAGEFIND_VERSION-$TARGETARCH-unknown-linux-musl.tar.gz -L | ||
file pagefind.tar.gz | ||
ls -l pagefind.tar.gz | ||
tar xzf pagefind.tar.gz | ||
rm pagefind.tar.gz | ||
mv pagefind /usr/bin | ||
chmod +x /usr/bin/pagefind | ||
EOF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure to pin versions for apt packages to avoid unexpected updates. Also, consider simplifying the RUN
command for installing pagefind
to avoid potential issues with the SHELL
directive.
- RUN <<EOF
+ RUN bash -c "commands..."
Committable suggestion was skipped due low confidence.
Tools
Hadolint
[info] 15-15: Double quote to prevent globbing and word splitting.
Description:
Make live-html work with pagefind;
Make pagefind work in docker
Related issue (if applicable): fixes
Pull request in esphome with YAML changes (if applicable): esphome/esphome#
Checklist:
I am merging into
next
because this is new documentation that has a matching pull-request in esphome as linked above.or
I am merging into
current
because this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.Link added in
/index.rst
when creating new documents for new components or cookbook.