Skip to content

Commit a044321

Browse files
author
Shubham Bhardwaj
authored
added steps for Troubleshooting Jekyll errors (#1907)
* added steps for Troubleshooting Jekyll errors * typos and clarifications (dident actually test github pages)
1 parent 84581e9 commit a044321

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/content/getting-started/index.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,28 @@ Don't forget to add the compiled CSS to the `<head>` section of your page.
9494
```html
9595
<link href="path/to/style.css" rel="stylesheet" />
9696
```
97+
### Troubleshooting Jekyll errors
98+
99+
Currently [jekyll-sass-converter](https://github.com/jekyll/jekyll-sass-converter) uses the [deprecated `LibSass` library](https://github.com/jekyll/jekyll-sass-converter#sass-implementations). Due to this you might run into issues. One way to deal with this is to use an experimental version of `jekyll-sass-converter` which uses [dart sass](https://sass-lang.com/dart-sass).
100+
101+
1. Add `jekyll-sass-converter` and `sass-embedded` to `Gemfile`:
102+
```ruby
103+
group :jekyll_plugins do
104+
gem 'jekyll-sass-converter', github: 'jekyll/jekyll-sass-converter'
105+
gem 'sass-embedded'
106+
end
107+
```
108+
2. Run `bundle install`
109+
```bash
110+
$ bundle install
111+
```
112+
3. Update your `_config.yml`:
113+
```yml
114+
sass:
115+
implementation: sass-embedded
116+
```
117+
118+
Since Github pages is currently [locked to version `1.5.2` of `jekyll-sass-converter`](https://pages.github.com/versions/). If you run into errors you should look into [using the built CSS](#using-primer-css-on-a-static-site).
97119

98120
## Using Primer CSS on a static site
99121

0 commit comments

Comments
 (0)