Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The cayman theme is not currently supported on GitHub Pages #130

Closed
DSoko2 opened this issue Jul 23, 2021 · 21 comments
Closed

The cayman theme is not currently supported on GitHub Pages #130

DSoko2 opened this issue Jul 23, 2021 · 21 comments

Comments

@DSoko2
Copy link

DSoko2 commented Jul 23, 2021

I get the following error since July 22nd 2021 when building Github Pages with the cayman theme, if the following two lines are included in the _config:

github:
  is_project_page: false

Removing these from the _config solves the issue in my case. However, I would like to have that configuration to hide the "View on GitHub" button.

The build error:

The page build failed for the `main` branch with the following error:

The cayman theme is not currently supported on GitHub Pages. For more information, see https://docs.github.com/github/working-with-github-pages/adding-a-theme-to-your-github-pages-site-using-jekyll.

Repo I investigated and faced this issue on: https://github.com/DSoko2/Corona-NI

@retroluxfilm
Copy link

retroluxfilm commented Jul 23, 2021

I get the same error on with my github pages. Just changed some page contents and ran into that issue. Might be connected that the CI fails due to 404 on ?

retroluxfilm/reshade-vrtoolkit@489df15

@squallstar
Copy link

I'm getting a similar problem since a few hours ago:

image

@parkr
Copy link

parkr commented Jul 23, 2021

Removing these from the _config solves the issue in my case

This is very, very strange. I can confirm that a basic _config.yml works fine, but adding github.is_project_page: false seems to break the build. 🤔

@parkr
Copy link

parkr commented Jul 23, 2021

@squallstar Interesting – the Sass in this repo is jekyll-theme-cayman.scss (https://github.com/pages-themes/cayman/blob/master/_sass/jekyll-theme-cayman.scss). Not sure how importing cayman would have worked before? 🤔

@dangowans
Copy link

I'm getting a similar problem since a few hours ago:

image

Getting the same issue as @squallstar after adding assets/css/style.scss. I removed it and things worked again.

@dangowans
Copy link

dangowans commented Jul 23, 2021

It looks like this issue is affecting more than just cayman. Posted two hours ago.

https://github.community/t/the-primer-theme-is-not-currently-supported-on-github-pages/191770

@AnonyPla
Copy link

@parkr
Copy link

parkr commented Jul 23, 2021

Hey folks, please try again now and let me know how it's working for you. If things are still broken, please let me know how!

@DSoko2
Copy link
Author

DSoko2 commented Jul 23, 2021

Works again for me. At least my issue described in the original post of this issue is fixed. Thank you!

@DSoko2 DSoko2 closed this as completed Jul 23, 2021
@Jmuccigr
Copy link

Another report of a similar problem here. Still not working.

@pox
Copy link

pox commented Jul 24, 2021

Not sure it's the same issue @Jmuccigr .
The error I'm getting with hacker theme is:

Your SCSS file assets/css/style.scss has an error on line 1: File to import not found or unreadable: hacker. Load path: /tmp/jekyll-remote-theme-20210724-6-10nliyy/_sass.

But in any case the error seems to be unrelated to a specific theme - it's a general github pages issue I suspect.

@filipvanlaenen
Copy link

I got things working again by removing assets/css/style.scss, but as soon as I add the file again to make a custom change, it's broken. The problem is that it breaks on the import, whether you import just "" or "{{ site.theme }}".

@pox
Copy link

pox commented Jul 24, 2021

That basically means no customization possible and a zillion pages currently broken

@filipvanlaenen
Copy link

I think so, @pox . Is there a separate ticket for that issue?

@filipvanlaenen
Copy link

@AnonyPla
Copy link

AnonyPla commented Jul 24, 2021

My issues were the same but with a different theme (hacker) got solved "online" with the fix above. My issue when building locally with bundle got solved by changing this in the scss style files:

@import "{{ site.theme }}";

to

@import 'jekyll-theme-hacker'; (in my case if was the hacker theme)

And by adding gemspec to the gemfile (locally) as well as using the one provided by the theme. In this case it would be https://github.com/pages-themes/cayman/blob/master/jekyll-theme-cayman.gemspec.

I also added the gemspec file to the .gitignore

Edit: and just edit the gemfile by adding gem 'jekyll-theme-hacker', group: :jekyll_plugins

Also lastly, I had to install the actual theme gem so gem install jekyll-theme-hacker which was not needed before. This solved all my issues locally and online.

@pox
Copy link

pox commented Jul 24, 2021

@AnonyPla's fix (#130 (comment)) works for me as well.

@Jmuccigr
Copy link

@AnonyPla's fix (#130 (comment)) works for me as well.

Yes, this works for me too (mutatis mutandis since I use the minimal theme which I already have installed locally), but it's more a work-around than a fix, no? The theme should be import-able from the config file without hardcoding it into the scss.

kennytm added a commit to rust-lang-nursery/rust-toolstate that referenced this issue Jul 24, 2021
@DaveSkender
Copy link

DaveSkender commented Jul 24, 2021

I've expanded on this fix from @AnonyPla here and provided some observations of the problem. Basically, I'd also recommend an explicit add of the theme to your GemFile.

@AnonyPla
Copy link

Yes and I edited my solution based on yours. The gemspec file is not needed. But in my case I had to install the theme using gem too. It wasn't there.

datenreisender added a commit to NordicSemiconductor/pc-nrfconnect-docs that referenced this issue Jul 27, 2021
The error message, e.g. in an [example run][1] was

> Your SCSS file assets/css/style.scss has an error on line 5: File to
> import not found or unreadable: primer.

According to [an issue on pages-themes][2], this is the way to fix it
for now.

[1]: https://github.com/NordicSemiconductor/pc-nrfconnect-docs/runs/3171555315
was
[2]: pages-themes/cayman#130
datenreisender added a commit to NordicSemiconductor/pc-nrfconnect-docs that referenced this issue Jul 27, 2021
The error message, e.g. in an [example run][1]:

> Your SCSS file assets/css/style.scss has an error on line 5: File to
> import not found or unreadable: primer.

According to [an issue on pages-themes][2], this is the way to fix it
for now.

[1]: https://github.com/NordicSemiconductor/pc-nrfconnect-docs/runs/3171555315
[2]: pages-themes/cayman#130
@Jas0n0ss
Copy link

You should change theme from cayman to jekyll-theme-cayman in your _config.yaml

gnewson pushed a commit to gnewson/gnewson.github.io that referenced this issue Oct 3, 2023
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

No branches or pull requests