This presentation site is automatically deployed to GitHub Pages via GitHub Actions.
GitHub Pages has restrictions on serving certain directories. The node_modules directory, even when included in Jekyll config, may not be reliably served. To fix this:
- reveal.js files are copied to
lib/reveal.js/during build - All presentations reference
../../lib/reveal.js/instead of../../node_modules/reveal.js/ - The build process automatically sets up the
libdirectory
The GitHub Actions workflow:
- Installs dependencies with
npm ci - Runs
npm run buildwhich copies reveal.js files tolib/ - Deploys the site to GitHub Pages
For local development:
# Install dependencies and set up lib directory
npm install
# Start local server
npm run serve
# Or use the task runner
task install
task serveUse the task runner to create presentations:
task new -- my-presentation-nameThis automatically creates presentations that use the correct lib/reveal.js/ paths.
If presentations show 404 errors on GitHub Pages:
- Check that the
lib/directory exists and contains reveal.js files - Ensure presentations reference
../../lib/reveal.js/paths - Verify the GitHub Actions build completed successfully
- Check that
_config.ymlincludes thelibdirectory
To manually rebuild the lib directory:
npm run build
# or
task setup-lib