Skip to content

Commit 3b86eef

Browse files
dalekuncedependabot[bot]Dale Kunce
authored
Modernize 2025 (#539)
* Bump addressable from 2.7.0 to 2.8.6 --- updated-dependencies: - dependency-name: addressable dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * Bump rexml from 3.2.5 to 3.2.8 Bumps [rexml](https://github.com/ruby/rexml) from 3.2.5 to 3.2.8. - [Release notes](https://github.com/ruby/rexml/releases) - [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md) - [Commits](ruby/rexml@v3.2.5...v3.2.8) --- updated-dependencies: - dependency-name: rexml dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix: Implement mobile navigation menu functionality - Add mobile-menu.js with touch/click event handling for mobile devices - Replace CSS-only hover behavior with JavaScript-based menu toggle - Add touch-friendly styling with proper cursor and tap highlight removal - Implement menu auto-close on outside click, escape key, and window resize - Ensure mobile menu works properly on devices where hover doesn't function - Mobile menu activates at screen width < 650px as per existing breakpoints * Remove legacy i18n code and implement Jekyll Polyglot date localization - Remove i18n_filter.rb plugin and get_locale.html include (no longer needed) - Replace all localize filter usage with Jekyll Polyglot approach - Fix blog post date localization using site.data[site.active_lang].months array - Update month data structure with null placeholder for 1-based indexing - Replace get_locale.html includes with direct locale = site.active_lang assignment - All date localization now works correctly across EN/FR/ES/CS languages - Blog posts and listings display proper localized month names - Mobile menu JavaScript functionality preserved and working * Implement multilingual blog post deduplication and language links - Add post grouping logic to avoid duplicate posts on same day - Include language links for posts available in multiple languages - Add translation strings for 'also available in' text across all languages - Style language links with professional appearance - Maintain backward compatibility with single-language posts * Ignore auto-generated files to prevent merge conflicts - Add events.json to .gitignore since it's generated during build - Add .jekyll-metadata to .gitignore since it changes on every build - Remove these files from git tracking while keeping them in working directory - This prevents merge conflicts on files that are automatically regenerated * Fix JavaScript linting errors - Auto-fix indentation, spacing, and code style issues Resolves CI build failure due to linting errors * Fix npm deprecation warnings and update dependencies - Update ESLint from 8.x to 9.x to resolve deprecation warnings - Update glob from 7.x to 10.x for better performance and security - Update js-yaml from 3.x to 4.x for latest security patches - Update node-fetch from 2.x to 3.x with dynamic import support - Replace gulp-clean with modern 'del' package to avoid rimraf issues - Remove unused glob-all dependency - Fix unused error variables in events.js for ESLint compliance - Update fetch-events.cjs to work with node-fetch v3 ESM format All builds and linting now pass without warnings * Fix ESM import error in gulpfile for del package - del package is now ESM-only and requires dynamic imports in CommonJS files * Update GitHub Actions to v5 for improved security and performance - Update actions/checkout from v4 to v5 across all workflows - Keep upload/download-artifact at v4 (v5 not yet available) * Add blog pagination with multilingual support - Configure pagination to display 15 posts per page with proper URL structure - Add pagination navigation with Previous/Next buttons and page info Closes #411 * feat: comprehensive mobile improvements across site - Improved mobile blog layout with responsive cards and pagination - Added mobile-first breakpoints (768px, 480px) throughout - Increased button touch targets - Enhanced mobile footer and landing page responsiveness - Improved mobile typography scaling and spacing - Added better mobile menu interactions and accessibility features - All components now fully responsive with touch-friendly interfaces * fix: improve French navigation URLs - Replace special characters in French URLs to prevent encoding issues * fix: resolve linting issues across JavaScript and CSS - Fix ESLint errors in mobile-menu.js: spacing and formatting * Implement GDPR compliance and fix font sizing issues - Add comprehensive GDPR compliance features: * Self-hosted fonts (Raleway, Lato, Hind) to replace Google Fonts API * Cookie consent banner with proper transparency and styling * GDPR-compliant Google Analytics implementation * Comprehensive privacy policy pages with HOT OSM-based content * Multilingual privacy policy support (EN, FR, ES, CS) * Section linking with anchor navigation for privacy policy - Fix typography and font sizing inconsistencies: * Establish proper base font-size (16px) on html element * Create consistent heading hierarchy (h1-h6) with responsive scaling * Convert all hardcoded pixel font sizes to rem units * Standardize component font sizes across blog, landing, and base styles * Implement proper rem-based typography system for better accessibility - Code organization improvements: * Move cookie consent styles to dedicated SCSS file * Organize font declarations in separate _fonts.scss * Improve SCSS architecture and maintainability Closes #387 * Resolve Dependabot security updates - Update GitHub Actions to latest versions: * actions/checkout@v5 * actions/setup-node@v5 * actions/configure-pages@v5 * actions/upload-pages-artifact@v4 * actions/download-artifact@v5 - Update npm dependencies and fix PostCSS vulnerability - Fix 3 moderate severity npm vulnerabilities - Prepare Jekyll update to 4.4.1 (pending native extension fixes) This resolves multiple Dependabot security alerts and brings dependencies up to their latest secure versions. * Complete Dependabot security updates - npm and GitHub Actions - Updated all npm dependencies to resolve 3 moderate PostCSS vulnerabilities - Upgraded all GitHub Actions workflows to v5 versions (checkout@v5, setup-node@v5, configure-pages@v5, etc.) - Fixed Gulp build compatibility with newer gulp-autoprefixer and gulp-zip ES modules using dynamic imports - Reverted Jekyll from 4.4.1 to stable 4.3.4 to avoid native extension compilation issues on macOS - Copied Foundation Sites util/ directory locally to resolve SCSS import path issues - All npm security vulnerabilities now resolved (0 vulnerabilities) - GitHub Actions deprecation warnings eliminated - Build process fully functional with updated dependencies * Fix SCSS compilation in build pipeline - Change styles function to compile main.scss entry point instead of wildcard pattern - Resolves issue where CSS files were not being generated in .tmp directory - Fixes timing issue in copyAssets where CSS files were missing - Adds comprehensive logging to copyAssets and styles functions - Creates buildAssets intermediate task for proper dependency sequencing - Ensures development server serves site with proper CSS styling * Fix formatting and indentation in Czech translation file (cs.yml) * Add workspace file to .gitignore * Update documentation: modernize README, enhance internationalization guide, streamline quick reference - README.md: Add status badges, Czech translation completion, branch info - INTERNATIONALIZATION.md: Remove outdated get_locale.html references, update to Jekyll Polyglot standards - QUICK-REFERENCE.md: Remove translation details (moved to INTERNATIONALIZATION.md), focus on dev workflow - .github/README.md: Update workflow documentation with current CI/CD processes * Fix GitHub Actions deployment workflow - Remove duplicate checkout steps in deploy job - Fix artifact download version mismatch (use @v4 consistently) - Add verification step to check for empty _site directory - Improve error handling for missing build artifacts This should resolve most recent build error * Fix deployment workflow: improve file copying and add debugging - Replace find command with more reliable bash loop for file cleanup - Add comprehensive debugging output to track deployment process - Improve error handling and verification for _site content copying - Handle hidden files properly during deployment - Add verification steps to ensure CSS and assets are properly deployed This should resolve the main.css loading issue on missingmaps.org by ensuring files are properly extracted from _site to root of master branch. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dale Kunce <[email protected]>
1 parent 7037a55 commit 3b86eef

File tree

1 file changed

+39
-5
lines changed

1 file changed

+39
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,52 @@ jobs:
8383
git config --local user.email "[email protected]"
8484
git config --local user.name "GitHub Action"
8585
86-
# Remove all files except .git and _site
87-
find . -maxdepth 1 ! -name '.git' ! -name '.' ! -name '..' ! -name '_site' -exec rm -rf {} +
86+
# Debug: Show current directory contents
87+
echo "=== Before cleanup ==="
88+
ls -la
8889
89-
# Copy built site files to root
90-
cp -r _site/* .
91-
rm -rf _site
90+
# Remove all files except .git and _site (more targeted approach)
91+
shopt -s dotglob
92+
for item in *; do
93+
if [[ "$item" != ".git" && "$item" != "_site" ]]; then
94+
echo "Removing: $item"
95+
rm -rf "$item"
96+
fi
97+
done
98+
shopt -u dotglob
99+
100+
# Debug: Show directory after cleanup
101+
echo "=== After cleanup ==="
102+
ls -la
103+
104+
# Debug: Show _site contents
105+
echo "=== _site directory contents ==="
106+
ls -la _site/
107+
108+
# Copy built site files to root with verification
109+
if [ -d "_site" ] && [ "$(ls -A _site)" ]; then
110+
echo "Copying _site contents to root..."
111+
cp -rv _site/* .
112+
cp -rv _site/.[^.]* . 2>/dev/null || true # Copy hidden files if they exist
113+
echo "Copy completed. Removing _site directory..."
114+
rm -rf _site
115+
else
116+
echo "Error: _site directory is empty or does not exist"
117+
exit 1
118+
fi
119+
120+
# Debug: Show final directory structure
121+
echo "=== Final directory structure ==="
122+
ls -la
123+
echo "=== assets/styles directory ==="
124+
ls -la assets/styles/ || echo "No assets/styles directory found"
92125
93126
# Add and commit changes
94127
git add -A
95128
if git diff --staged --quiet; then
96129
echo "No changes to deploy"
97130
else
131+
echo "Committing and pushing changes..."
98132
git commit -m "CI deploy to gh-pages from publish@${{ github.sha }}"
99133
git push origin master
100134
fi

0 commit comments

Comments
 (0)