Skip to content

Conversation

@MaxGhenis
Copy link
Contributor

Problem

The documentation site at https://policyengine.github.io/policyengine-us-data is not displaying correctly - CSS and JavaScript assets are not loading, resulting in a broken layout with no styling.

Root Cause

GitHub Pages uses Jekyll by default to process sites. Jekyll ignores directories that start with underscores (like _build, _assets, etc.), which prevents CSS and JS files from being served.

Solution

  • Added a .nojekyll file to tell GitHub Pages to serve the site as static HTML without Jekyll processing
  • Modified the Makefile to ensure the .nojekyll file is created in the _build/html directory during documentation builds

Testing

The fix ensures that all assets in underscore-prefixed directories will be properly served by GitHub Pages.

Fixes #423

GitHub Pages uses Jekyll by default, which ignores directories starting with underscores.
This causes CSS and JS assets in _build and _assets directories to not be served.
Adding .nojekyll file tells GitHub Pages to serve the site as static HTML without Jekyll processing.

Fixes #423
@MaxGhenis MaxGhenis merged commit 788f3e0 into main Aug 8, 2025
6 checks passed
@MaxGhenis MaxGhenis deleted the fix-docs-nojekyll branch August 8, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix documentation build for GitHub Pages deployment

2 participants