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

Page build warning: theme not supported by Github Pages #148

Closed
israel-bautista-mouser opened this issue Jun 19, 2019 · 7 comments
Closed
Labels

Comments

@israel-bautista-mouser
Copy link

Describe the bug
After adding the remote theme in the _config.yml file I got an email from Github:
"The page build completed successfully, but returned the following warning for the gh-pages branch:
You are attempting to use a Jekyll theme, "just-the-docs", which is not supported by GitHub Pages. Please visit https://pages.github.com/themes/ for a list of supported themes. If you are using the "theme" configuration variable for something other than a Jekyll theme, we recommend you rename this variable throughout your site. For more information, see https://help.github.com/en/articles/adding-a-jekyll-theme-to-your-github-pages-site.

For information on troubleshooting Jekyll see:

https://help.github.com/articles/troubleshooting-jekyll-builds

If you have any questions you can contact us by replying to this email."

I added the gem file locally, and I can see the theme fine, but is only in github pages that I can't see it.

My site is: https://mouser-ux.github.io/guidelines/

Locally I see this:
Screen Shot 2019-06-19 at 10 53 51 AM

On Github pages I see this:
Screen Shot 2019-06-19 at 10 54 12 AM

My _config.yml file:
config.txt

Not sure what else to do.

Thanks

@taruma
Copy link

taruma commented Jun 23, 2019

I got the same error few days ago, my solution is separate config files for github and local machine.

For local (_config_local.yml):

# Local Setting
baseurl: ""
url: ""

# Theme
theme: "just-the-docs"
# remote_theme: pmarsceill/just-the-docs

For github (_config.yml):

# Remote Setting
baseurl: "/guidelines"
# url: ""

# Theme
# theme: "just-the-docs"
remote_theme: pmarsceill/just-the-docs

For live server on local machine, I run bundle exec jekyll serve --config _config_local.yml.

@mklemarczyk
Copy link

It is not a bug. Theme is working thanks to remote_theme on github Pages. GitHub Pages does not include this theme in white list of themes. Nothing more to do on it.

@pmarsceill
Copy link
Collaborator

Thanks for reporting, but as @mklemarczyk pointed out, this is not a bug. Closing.

@vishalgakhare
Copy link

I tried ⏫ this fix but still got the same error. Is there anything else we need to do (especially behind the firewall)?

@pdmosses
Copy link
Contributor

@vishalgakhare I recently set up a new repository, and I noted my steps at https://pdmosses.github.io/just-the-docs-tests/#use-just-the-docs-as-a-remote-theme

The site built without errors, both locally and on GH Pages. Perhaps similar settings will work for you?

@naik-amey
Copy link

@pdmosses - that link is not functional.

@pdmosses
Copy link
Contributor

@naik-amey Thanks for pointing it out, but the same probably goes for many links in comments on old closed issues and PRs…

In any case, my notes wre written before the theme provided a template. For up-to-date advice, see the hints for getting started on the theme home page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants