Deployment Guide: World Languages Map Visualization
Deployment Guide: World Languages Map Visualization
What’s Been Done
- Created Jekyll Post: Added
_posts/2025-01-27-world-languages-map-visualization.md
with proper front matter - Rendered Quarto Document: Converted
language-map.qmd
tolanguage-map.html
using Quarto - Copied Interactive Files: Moved the HTML file and dependencies to
_site/posts/
- Updated Paths: Fixed the iframe and link paths in the Jekyll post
- Tested Locally: Verified the site builds and serves correctly
Files Added/Modified
New Files:
_posts/2025-01-27-world-languages-map-visualization.md
- The main Jekyll post_site/posts/language-map.html
- The interactive visualization_site/posts/language-map_files/
- Dependencies for the visualization_site/posts/contemporary_sf.rds
- Data file_site/posts/traditional_sf.rds
- Data file
Modified Files:
- None (only new files were created)
How to Deploy to GitHub Pages
Option 1: Manual Deployment (Recommended)
- Commit your changes:
git add . git commit -m "Add World Languages Map Visualization post" git push origin master
GitHub Pages will automatically build your site from the
master
branch.- Your post will be available at:
- Main post:
https://jakejing.github.io/posts/2025/01/world-languages-map-visualization/
- Interactive visualization:
https://jakejing.github.io/posts/language-map.html
- Main post:
Option 2: Using GitHub Actions (Advanced)
If you want automated deployment, you can create a GitHub Actions workflow:
- Create
.github/workflows/deploy.yml
:name: Deploy to GitHub Pages on: push: branches: [ master ] jobs: build-and-deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 3.0 - name: Install dependencies run: | gem install bundler bundle install - name: Build site run: bundle exec jekyll build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: $ publish_dir: ./_site
Post Features
The new post includes:
- Interactive World Maps: Global views of traditional and contemporary speaker areas
- Major Language Families: Detailed maps for 8 major language families
- Statistics: Interactive bar charts showing language distribution
- Searchable Database: Complete language tables for both datasets
- Embedded Visualization: The interactive map is embedded directly in the post
Technical Details
- Quarto Document: The original
language-map.qmd
file contains R code for creating interactive maps - Rendered HTML: The Quarto document was rendered to standalone HTML with all dependencies
- Jekyll Integration: The HTML is embedded in the Jekyll post using an iframe
- Data Files: The
.rds
files contain the processed spatial data for the visualizations
Troubleshooting
If the interactive visualization doesn’t load:
- Check that
language-map.html
andlanguage-map_files/
are in_site/posts/
- Verify the iframe path in the Jekyll post is correct
- Check browser console for any JavaScript errors
If the site doesn’t build:
- Run
bundle exec jekyll build
locally to check for errors - Ensure all required gems are installed:
bundle install
- Check that the front matter in the post is valid
If you need to update the visualization:
- Modify the
language-map.qmd
file - Re-render with:
quarto render language-map.qmd --to html
- Copy the new files to
_site/posts/
- Rebuild the site:
bundle exec jekyll build
Next Steps
- Deploy: Push your changes to GitHub
- Test: Visit your site to ensure everything works
- Share: The post will be automatically included in your blog’s post list
- Update: You can modify the visualization by editing the Quarto file and re-rendering
Your World Languages Map Visualization is now ready for deployment! 🗺️