πŸš€ Local Development Guide

This guide explains how to set up and run the Puente Scientific website locally for development and testing.

πŸ“‹ Prerequisites

⚑ Quick Start

1. Install Dependencies

bundle install --path vendor/bundle

2. Start Development Server

bundle exec jekyll serve --port 4000 --host 0.0.0.0

3. Access Your Site

πŸ”§ Development Features

πŸ“ Project Structure

puentesci.github.io/
β”œβ”€β”€ _layouts/           # Jekyll layouts
β”‚   └── default.html   # Base layout template
β”œβ”€β”€ _includes/         # Shared components
β”‚   β”œβ”€β”€ head.html      # Meta tags, analytics, CSS
β”‚   β”œβ”€β”€ header.html    # Navigation
β”‚   β”œβ”€β”€ footer.html    # Footer content
β”‚   └── scripts.html   # JavaScript includes
β”œβ”€β”€ _config.yml        # Jekyll configuration
β”œβ”€β”€ assets/            # Static assets (CSS, JS, images)
└── *.html            # Page content with YAML front matter

πŸ› οΈ Common Commands

Start Development

bundle exec jekyll serve --port 4000 --host 0.0.0.0

Build Site

bundle exec jekyll build

Stop Server

pkill -f jekyll

Clean Build

rm -rf _site/
bundle exec jekyll build

πŸ› Troubleshooting

Jekyll Won’t Start

Permission Errors

Port Already in Use

Missing Dependencies

πŸ“ Development Workflow

1. Make Changes

2. Test Features

3. Commit Changes

git add .
git commit -m "Description of changes"
git push origin development

🌐 Deployment

Development Branch

Main Branch

πŸ“š Additional Resources

πŸ†˜ Need Help?

If you encounter issues:

  1. Check this troubleshooting section
  2. Verify Ruby and Bundler versions
  3. Ensure all dependencies are installed
  4. Check _config.yml exclusions
  5. Review Jekyll logs for specific errors