On GitHub Pages: Minima Build Problems

I have been pulling my hair out about this for hours:

My repo: GitHub - Jp4Mobile/jp4mobile.github.io: Jp4Mobile Website

It builds fine locally, but when I push to github, I get the following error:

Complete error message:

Error:  Logging at level: debug GitHub Pages: github-pages v232 GitHub Pages: jekyll v3.10.0 Theme: jekyll-theme-primer Theme source: /usr/local/bundle/gems/jekyll-theme-primer-0.6.0 Requiring: jekyll-github-metadata Requiring: jekyll-seo-tag Requiring: jekyll-coffeescript Requiring: jekyll-commonmark-ghpages Requiring: jekyll-gist Requiring: jekyll-github-metadata Requiring: jekyll-paginate Requiring: jekyll-relative-links Requiring: jekyll-optional-front-matter Requiring: jekyll-readme-index Requiring: jekyll-default-layout Requiring: jekyll-titles-from-headings GitHub Metadata: Initializing... Source: /github/workspace/. Destination: /github/workspace/./_site Incremental build: disabled. Enable with --incremental Generating... EntryFilter: excluded /CNAME Reading: docs/_posts/2024-10-20-overview-of-taskmanager.md Reading: docs/_posts/2024-10-27-power-of-enums.md Skipping: docs/_posts/2024-10-20-overview-of-taskmanager.md has a future date Skipping: docs/_posts/2024-10-27-power-of-enums.md has a future date Generating: JekyllOptionalFrontMatter::Generator finished in 0.000129921 seconds. Generating: JekyllReadmeIndex::Generator finished in 0.001632652 seconds. Generating: Jekyll::Paginate::Pagination finished in 3.857e-06 seconds. Generating: JekyllRelativeLinks::Generator finished in 0.000161438 seconds. Generating: JekyllDefaultLayout::Generator finished in 0.00012983 seconds. Requiring: kramdown-parser-gfm Generating: JekyllTitlesFromHeadings::Generator finished in 0.007177523 seconds. Rendering: docs/404.html Pre-Render Hooks: docs/404.html Rendering Markup: docs/404.html Rendering Layout: docs/404.html Layout source: theme GitHub Metadata: Generating for Jp4Mobile/jp4mobile.github.io GitHub Metadata: Calling @client.organization("Jp4Mobile") GitHub Metadata: Calling @client.repository("Jp4Mobile/jp4mobile.github.io", {:accept=>"application/vnd.github.drax-preview+json"}) GitHub Metadata: Calling @client.pages("Jp4Mobile/jp4mobile.github.io", {}) Rendering: docs/about.md Pre-Render Hooks: docs/about.md Rendering Markup: docs/about.md Rendering Layout: docs/about.md Layout source: theme Rendering: docs/categories.md Pre-Render Hooks: docs/categories.md Rendering Liquid: docs/categories.md Rendering Markup: docs/categories.md Rendering Layout: docs/categories.md Layout source: theme Rendering: docs/index.md Pre-Render Hooks: docs/index.md Rendering Markup: docs/index.md Rendering Layout: docs/index.md Layout source: theme Rendering: docs/assets/main.scss Pre-Render Hooks: docs/assets/main.scss Rendering Markup: docs/assets/main.scss github-pages 232 | Error: File to import not found or unreadable: minima. Load path: /usr/local/bundle/gems/jekyll-theme-primer-0.6.0/_sass on line 1 

The main issue to my eyes is: Error: File to import not found or unreadable: minima.

This is loaded in my ./docs/assets/main.scss file in the line @import "minima"; statement.

I cannot figure out what I’m doing incorrectly.

As I’m a new user, I cannot include links to the specific files that I think may be misconfigured, but they can be easily found in the above linked repo:

  • Gemfile
  • _config.yml
  • assets/main.scss

Just to be clear, I’ve spent the last few days trying multiple ways to get this to work.
I’ve kept the state of things in my question to get it working in the jp/brokenBranch branch.

it looks like you are using one theme but then trying to import a sass file from another one? and that one you have installed locally but it doesn’t exist for the build? just a guess based on the error message.

Thank you for reaching out, @rdyar. (As you can imagine this has been driving me nuts for days.)
I found that if I ignored the documentation about putting the jekyll files/setup in the ./docs directory and just putting them all in the root directory. The site would build properly.
I liked the idea of having all that in the /docs directory, but having it work properly is awesome.

url: https://www.jp4mobile.com/
github repo: GitHub - Jp4Mobile/jp4mobile.github.io: Jp4Mobile Website

Both are options, but you have to tell GitHub about it. Make sure you have selected “deploying form a branch”, the correct branch, and /(root) (as that’s where your files are). Like this:

If you want to use /docs instead, you have to move everything into that directory first.