Troubleshooting
Common issues and solutions when working with Arsxy Theme
This guide covers common issues you might encounter when working with Arsxy Theme and provides solutions to help you resolve them quickly.
Installation Issues
Bundle Install Errors
Issue: Errors when running bundle install
to set up your Jekyll site.
Solution:
- Ensure you have the correct Ruby version installed (Arsxy Theme requires Ruby 2.5.0 or higher)
- Try updating Bundler:
gem update bundler
- Clear your gem cache:
gem cleanup
- Try installing with:
bundle install --path vendor/bundle
Jekyll Build Failures
Issue: Jekyll fails to build your site with Arsxy Theme.
Solution:
- Run
bundle exec jekyll build --verbose
to see detailed error information - Check that all gem dependencies are correctly specified in your Gemfile
- Ensure your _config.yml settings are properly formatted (no tab characters, correct indentation)
Theme Styling Issues
CSS Not Loading
Issue: Your site appears unstyled or CSS is not applying correctly.
Solution:
- Check browser console for 404 errors on CSS files
- Verify your
baseurl
setting in _config.yml is correct - Make sure you’ve properly referenced the theme in your Gemfile and _config.yml
- Try running
bundle exec jekyll clean
followed bybundle exec jekyll serve
Dark Mode Toggle Not Working
Issue: Dark mode toggle doesn’t switch themes properly.
Solution:
- Check browser console for JavaScript errors
- Ensure you have the dark mode JavaScript included in your layout
- Verify that your browser supports localStorage (required for theme persistence)
- Make sure your CSS variables for dark mode are correctly defined
Layout Problems
Sidebar Missing or Misaligned
Issue: Documentation sidebar is missing or appears incorrectly.
Solution:
- Check that you’re using the correct layout (e.g.,
layout: docs
) - Verify front matter includes the necessary parameters
- Check responsive breakpoints if the issue only appears on certain screen sizes
- Validate your HTML structure for unclosed tags or nesting errors
Table of Contents Not Generating
Issue: Table of contents is not appearing or missing entries.
Solution:
- Ensure your Markdown headings are properly formatted (space after # symbols)
- Check that the
toc: true
parameter is set in your front matter - Verify your headings follow a proper hierarchy (h1 → h2 → h3)
- Confirm the toc.html include is properly referenced in your layout
Content Issues
Syntax Highlighting Not Working
Issue: Code blocks are not properly highlighted.
Solution:
- Ensure you’ve specified the language in your code blocks (e.g., ```ruby)
- Check that the syntax highlighting CSS is included
- Verify you have the correct syntax highlighter set in _config.yml
- Try using explicit
highlight
Liquid tags instead of backtick code blocks
Images Not Displaying
Issue: Images in your posts or pages are not visible.
Solution:
- Check image paths are correct (relative to site root or using absolute paths)
- Use the
/arsxy-theme
prefix for image paths if needed - Verify image files exist in the correct location
- Check for permissions issues or case-sensitivity in file paths
Development Environment
Local Server Issues
Issue: bundle exec jekyll serve
fails or doesn’t reflect changes.
Solution:
- Try running with the
--livereload
flag - Check if a process is already using port 4000 (default Jekyll port)
- Kill any zombie Jekyll processes:
pkill -f jekyll
- Use
jekyll clean
to clear cache before serving
GitHub Pages Deployment Issues
Issue: Site doesn’t deploy correctly to GitHub Pages.
Solution:
- Check the GitHub Actions or Pages build logs for specific errors
- Ensure your repository is structured correctly for GitHub Pages
- Verify your _config.yml has the correct settings for GitHub Pages
- Make sure you’re using a GitHub Pages-compatible gem configuration
Getting Further Help
If you’re still experiencing issues after trying these troubleshooting steps:
- Search the GitHub Issues for similar problems
- Check the Jekyll documentation for common Jekyll-related issues
- Create a new issue on the Arsxy Theme repository with:
- A clear description of the problem
- Steps to reproduce
- Expected vs. actual behavior
- Screenshots if applicable
- Your environment details (OS, Jekyll version, etc.)