diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..bb03ec4
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,49 @@
+# Python cache
+__pycache__/
+*.py[cod]
+*$py.class
+*.so
+.Python
+*.egg-info/
+.pytest_cache/
+
+# Virtual environments
+.venv/
+venv/
+ENV/
+env/
+
+# IDE
+.vscode/
+.idea/
+*.swp
+*.swo
+*~
+
+# Git
+.git/
+.gitignore
+.gitattributes
+
+# Documentation
+*.md
+!README.md
+
+# Test files
+tests/
+test_*.py
+*_test.py
+
+# GPX files in assets (exclude user test files)
+hiking_assistant/assets/*.gpx
+
+# macOS
+.DS_Store
+
+# Archives
+*.tar
+*.tar.gz
+*.zip
+
+# Logs
+*.log
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 06e08fe..0ba3096 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -6,6 +6,7 @@ repos:
rev: v4.3.0
hooks:
- id: check-added-large-files
+ args: ["--maxkb=2048"]
- id: check-yaml
- id: check-docstring-first
diff --git a/hiking_assistant/assets/background_op70.png b/hiking_assistant/assets/background_op70.png
new file mode 100644
index 0000000..0819b59
Binary files /dev/null and b/hiking_assistant/assets/background_op70.png differ
diff --git a/hiking_assistant/assets/config.yaml b/hiking_assistant/assets/config.yaml
index b86d025..79100f9 100644
--- a/hiking_assistant/assets/config.yaml
+++ b/hiking_assistant/assets/config.yaml
@@ -2,7 +2,7 @@ app:
page_title: 臺灣登山小幫手
page_favicon_path: ./assets/favicon_compressed.jpg
page_footer_text: ⚠️ 本服務提供之資訊僅供規劃參考,山區氣候瞬息萬變,請務必依據現場狀況與自身能力進行風險評估
Made with ❤️ by deng
- page_background_path: ./assets/background.jpg
+ page_background_path: ./assets/background_op70.jpg
altitude_sickness:
elevation_threshold: 2100
warning_text: 此路線海拔較高,請留意[高山症](https://www.ysnp.gov.tw/StaticPage/MountainSickness)發生風險
diff --git a/hiking_assistant/map.py b/hiking_assistant/map.py
index 21d1747..01b944a 100644
--- a/hiking_assistant/map.py
+++ b/hiking_assistant/map.py
@@ -95,7 +95,7 @@ class MapRenderer:
fill=True,
fill_color='blue',
fill_opacity=0.7,
- popup=f'起點
海拔: {start_point[2]} m',
+ popup=folium.Popup(f'起點
海拔: {start_point[2]} m', max_width=200),
tooltip='起點',
).add_to(route_map)
@@ -108,7 +108,7 @@ class MapRenderer:
fill=True,
fill_color='blue',
fill_opacity=0.7,
- popup=f'終點
海拔: {end_point[2]} m',
+ popup=folium.Popup(f'終點
海拔: {end_point[2]} m', max_width=200),
tooltip='終點',
).add_to(route_map)