From 4be70516c5e0bd381919e7c347e0c2d566d05390 Mon Sep 17 00:00:00 2001 From: puke <1129090915@qq.com> Date: Wed, 10 Dec 2025 16:45:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9docker=E5=92=8C=E6=95=B4?= =?UTF-8?q?=E5=90=88=E5=8C=85=E4=B8=8BFAQ=E7=9A=84=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 1 + packaging/windows/config/build_config.yaml | 2 +- web/components/faq.py | 20 ++++++++++++-------- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec66384..4c96f58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,6 +64,7 @@ COPY templates ./templates COPY workflows ./workflows COPY resources ./resources COPY docs/images ./docs/images +COPY docs/FAQ.md docs/FAQ_CN.md ./docs/ # Create output, data and temp directories RUN mkdir -p /app/output /app/data /app/temp diff --git a/packaging/windows/config/build_config.yaml b/packaging/windows/config/build_config.yaml index 0f796e1..58f6336 100644 --- a/packaging/windows/config/build_config.yaml +++ b/packaging/windows/config/build_config.yaml @@ -47,7 +47,7 @@ build: - "docs/zh/*" # Don't include Chinese docs - "docs/gallery/*" # Don't include gallery docs - "docs/stylesheets/*" # Don't include doc stylesheets - - "docs/*.md" # Don't include doc markdown files + # Note: FAQ.md and FAQ_CN.md are included for in-app FAQ feature - "test_*.py" # Don't include test files - ".venv" - "venv" diff --git a/web/components/faq.py b/web/components/faq.py index dbf6f78..22a1f5f 100644 --- a/web/components/faq.py +++ b/web/components/faq.py @@ -85,12 +85,16 @@ def render_faq_sidebar(): # Display FAQ content st.markdown(faq_content, unsafe_allow_html=True) + + # Add a link to GitHub issues for more help + st.markdown( + f"💡 {tr('faq.more_help', fallback='Need more help?')} " + f"[GitHub Issues](https://github.com/AIDC-AI/Pixelle-Video/issues)" + ) else: - # Show error message if FAQ cannot be loaded - st.warning(tr('faq.load_error', fallback='Failed to load FAQ content')) - - # Add a link to GitHub issues for more help - st.markdown( - f"💡 {tr('faq.more_help', fallback='Need more help?')} " - f"[GitHub Issues](https://github.com/AIDC-AI/Pixelle-Video/issues)" - ) + # If FAQ cannot be loaded, only show the GitHub link + st.markdown(f"### 💡 {tr('faq.more_help', fallback='Need help?')}") + st.markdown( + f"[GitHub Issues](https://github.com/AIDC-AI/Pixelle-Video/issues) | " + f"[Documentation](https://aidc-ai.github.io/Pixelle-Video)" + )