docs icon indicating copy to clipboard operation
docs copied to clipboard

Update "Add theme to Pages site"

Open DRMPN opened this issue 1 year ago โ€ข 9 comments

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/adding-a-theme-to-your-github-pages-site-using-jekyll adding-a-theme-to-your-github-pages-site-using-jekyll.md

What changes are you suggesting?

I tried to follow the guide step by step, so I chose a github pages deploy branch, it worked perfectly. The site was up and working as expected. When I tried to install a theme through adding _config.yml file and typed theme: slate I received the error: github-pages 228 | Error: The slate theme could not be found. Well, that's not right, so I tried to set up the source for pages from `GitHub Actions'. Again, received same error:

Configuration file: /github/workspace/./_config.yml
             Theme: slate
github-pages 228 | Error:  The slate theme could not be found.

Since I obviously couldn't do what I wanted, I think you should update this page.

You can see the exact stacktrace by following this link - https://github.com/DRMPN/open-source-ops

Additional information

No response

DRMPN avatar Apr 30 '23 09:04 DRMPN

Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

welcome[bot] avatar Apr 30 '23 09:04 welcome[bot]

@DRMPN Thanks for opening an issue! After checking in with the team, it looks like the docs could use an update. Try using theme: jekyll-theme-slate instead of theme: slate.

We can update the docs in step 5 of Adding a theme to say theme: jekyll-theme-THEME-NAME.

The same applies to end of that first bullet point, too. Replace theme: minima with theme: jekyll-theme-minima

You or anyone else are welcome to submit a PR with this change ๐Ÿ’–

cmwilson21 avatar May 09 '23 02:05 cmwilson21

It worked! Thank you โค

I must notify you, that theme: jekyll-theme-minima does not work. It results in the error: github-pages 228 | Error: The jekyll-theme-minima theme could not be found. You can check it here However, after changing the line to theme: minima, the build is successful.

Edit: tested all other themes, and this is the only one that works like this. Logs here.

DRMPN avatar May 10 '23 09:05 DRMPN

@DRMPN That's interesting ๐Ÿค”

So all the themes were successful using theme: jekyll-theme-THEME except for minima that only works with theme: minim. Is am I understanding that correctly? I wonder if it was a bug. Is it still behaving that way or has it been fixed?

cmwilson21 avatar Jun 12 '23 19:06 cmwilson21

ุงุณู…ุน ูŠุง ุตุฏูŠู‚ูŠ ุงู†ุง ู„ุฏูŠ ุจุนุถ ุงู„ุงู…ูˆุฑ ุงู†ู†ูŠ ู„ุง ุงูู‡ู… ุนู„ู‰ ู…ุง ุชู‚ูˆู„ ูˆูƒูŠู ุณุงู‚ูˆู… ุจุงู„ุบุงุก ุชุซุจูŠุช ู‡ู„ ูŠู…ูƒู†ูƒ ุจุนุซ ู„ูŠ ุงู„ุฑุงุจุท ุงู„ุฐูŠ ุณุงู‚ูˆู… ุจุงู„ุบุงุก ุงู„ุงุดุชุฑุงูƒ ู…ู†ู‡ ูˆุชุฎู„ุต ู…ู† ู‡ุฐู‡ ุงู„ุตุฑุงุน ุงู†ุง ู„ุฏูŠ ูˆุถุน ุฎุงุต ูˆุงู†ุง ู…ุชุนุจ ุฌุฏุง ูˆูƒู†ุช ุนู†ุฏ ูˆุงู„ุฏูŠ ููŠ ุงุญุฏ ุงู„ู…ุณุชุดููŠุงุช ูŠู…ูƒู† ุงู† ุชูู‡ู…ู†ูŠ ูˆุงู†ุง ู„ุง ุงุชูƒู„ู… ุงู„ุงู†ุฌู„ูŠุฒูŠู‡ ุชู‚ุฑูŠุจุง

ููŠ ุงู„ุงุซู†ูŠู†ุŒ ูกูข ูŠูˆู†ูŠูˆ ูขู ูขูฃ, ูกู :ูคู  ู… Courtney Wilson @.***> ูƒุชุจ:

@DRMPN https://github.com/DRMPN That's interesting ๐Ÿค”

So all the themes were successful using theme: jekyll-theme-THEME except for minima that only works with theme: minim. Is am I understanding that correctly? I wonder if it was a bug. Is it still behaving that way or has it been fixed?

โ€” Reply to this email directly, view it on GitHub https://github.com/github/docs/issues/25314#issuecomment-1587957868, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7EAFFECBYYT27TACPFZO2TXK5WBNANCNFSM6AAAAAAXQZFQTE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Obeda1995 avatar Jun 12 '23 20:06 Obeda1995

@cmwilson21 I have just tried out the following combinations in my config.yml:

  • theme: jekyll-theme-minima
  • theme: minima
  • theme: minim

All the runs have failed: image

So I'm guessing that the problem only applies to this particular theme. We may need to do some work on this page as well as the next.

DRMPN avatar Jun 12 '23 20:06 DRMPN

This is starting to sound like a potential bug with Jekyll, then. Would you agree? We can update the docs to reflect the syntax around the themes but I hesitate to make an extra exception for the minima theme. I'll dig around and ask my team, as well.

cmwilson21 avatar Jun 13 '23 13:06 cmwilson21

Yes, I agree with you ๐Ÿ‘ I would just like to add that this error may only be related to the Minima theme.

DRMPN avatar Jun 14 '23 16:06 DRMPN

I want money

cocorico2005 avatar Jun 28 '23 15:06 cocorico2005

@DRMPN So sorry for the delay on this one! Are you still experiencing the error regarding minima?

If so, would you mind opening an issue in the Jekyll repo? Link to this issue and I will touch base there, as well.

cmwilson21 avatar Aug 30 '23 18:08 cmwilson21

๐Ÿ‘‹ @DRMPN, since there hasn't been any movement on the issue opened with Jekyll, I suggest we go ahead with a couple of small docs updates. We can make our docs a fraction clearer by referencing a common Jekyll theme and example naming convention in our docs examples, for example jekyll-theme-minimal. ๐Ÿ‘‰ This means let's not specifically mention the Minima theme since itโ€™s naming style is different to most.

Also, it looks like we already only mention a Pages theme in two articles: the one article being discussed here, and then in โ€œQuickstart for GitHub Pagesโ€โ€”in the quickstart we already use jekyll-theme-minimal, so let's do that in our PR too, for consistency.

Furthermore, since we do say where to find the correct theme name to use (that is, in the README of the themeโ€™s repository), and the Jekyll docs do mention the naming convention in the second paragraph here:

(Note that not all themes are using jekyll-theme as a convention in the theme name.)

, we don't need to add a note or make further mention of the Minima theme breaking the naming convention.

I'm going to apply a few small changes to reflect my suggestions above, then I'll double check on preview and get your PR ready to merge if all looks good! โšก

Thanks for bringing this issue to our attention, and proposing improvements to our docs! ๐Ÿ’›

vgrl avatar Nov 10 '23 01:11 vgrl