jekyll-watch | Jekyll site when a file changes | Plugin library
kandi X-RAY | jekyll-watch Summary
kandi X-RAY | jekyll-watch Summary
Rebuild your Jekyll site when a file changes with the --watch switch.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Starts a timer .
- Checks for watcher
- Register a new file
- Process the site
- Builds a new listener object .
- Normalize the given encoding .
- Extract options from configuration
- Find config files
- The exclude options .
- Overriding infinite loop
jekyll-watch Key Features
jekyll-watch Examples and Code Snippets
Community Discussions
Trending Discussions on jekyll-watch
QUESTION
I am trying to contribute to a Github Page/Jekyll site and want to be able to visualise changes locally but when I run bundle exec jekyll serve
but I get this output:
ANSWER
Answered 2021-Feb-02 at 16:29I had the same problem and I found a workaround here at https://github.com/jekyll/jekyll/issues/8523
Add gem "webrick"
to the Gemfile in your website. Than run bundle install
At this point you can run bundle exec jekyll serve
For me it works!
QUESTION
I tried to add the "Jekyll" workflow to my repository in Github, but every time it runs it is marked as failure.
Here is an error message, I tried to remove Gemfile.lock from exclude (_config.yml
) but it didn't help... Here is a repository to which I'm trying to add a workflow: https://github.com/igorkowalczyk/blog
ANSWER
Answered 2020-Aug-17 at 13:23After a so many attempts to fix the tests, i finnaly find a solution, thanks you @fredrik*
Here is my workflow file:
QUESTION
I tried to create a website using Jekyll.
I used git clone
to copy jekyll-theme-hackcss,
and then followed instructions from the arch-wiki rubygems page to get the right gem packages.
From inside the cloned folder I used:
...ANSWER
Answered 2020-Jun-23 at 05:04There may be one culprit gem here but you will run into this problem again and again unless you fix your underlying approach.
Look at your gems environment; all gems are installed into one folder, regardless of the project you’re working on. So, if you have two projects with conflicting dependencies you will get this problem again.
There are tools, like RVM, which let you create environments for each project. So, each project has its own separate collection of gems and even distinct versions of Ruby if you need 2.7 in one project and 2.5 for another.
See "Easy way to setting Ruby Version Manager (RVM) on projects" for how to use RVM and create a gemset for each project.
QUESTION
I'm trying to add new posts to my jekyll site. But when I execute "jekyll serve --verbose" I see my new posts are not read by jekyll. I have looked all questions similar to my problem but they didn't work for my case.
My new post names are 2018-04-18-first.markdown and 2019-04-17-second.markdown but jekyll tries to read default post whic is 2020-04-18-welcome-to-jekyll.markdown
Putting verbose log below.
...ANSWER
Answered 2020-Apr-19 at 07:48Make sure you add the front matter tag(Two lines of three dashes ("-")). Like this:
QUESTION
First of all, I'm aware that I'm running the risk that this question is already answered somewhere else, but because I don't know the origin of this issue I'm not sure what to search for to find the answer.
The Problem
I'm running bundle and Jekyll locally, which works perfectly fine. But when I install on Travis-CI, it presents me with the error Could not find public_suffix-4.0.4 in any of the sources
. However, public_suffix-4.0.4
is clearly in my Gemfile.lock.
My Question
What might be causing the problem and what hints should I look for to find an answer?
Error message
...ANSWER
Answered 2020-Apr-15 at 15:43If another bundle install
didn't work, delete Gemfile.lock
then try specifying the version for public_suffix
in Gemfile
like so:
QUESTION
I'm trying to run a basic GitHub page locally on macOS.
Here is my Gemfile:
...ANSWER
Answered 2020-Jan-01 at 17:01It looks due to the latest update of faraday - a gem depended by github-pages.
Try this workaround temporarily.
Add the following line to your Gemfile.
gem 'faraday', '~> 0'
Use command
bundle update
to update the gem(s) with Gemfile.You may see outputs below:
Fetching faraday 0.17.3 (was 1.0.0)
Installing faraday 0.17.3 (was 1.0.0)That means gem faraday in ./vendor/bundle has been updated to the latest compatible version with the github-pages.
You can check the version history of faraday at this page on rubygems.org.
Try
bundle exec jekyll
again.If it doesn't work yet, try
bundle pristine
.
QUESTION
I'm trying to set up a GitHub Pages repo. Steps I've followed:
Install bundler ...ANSWER
Answered 2019-Nov-14 at 05:48An alternative would be to "use Jekyll in Windows with Docker" (from James Sturtevant)
That would take advantage of the Docker image jekyll/jekyll
(see its README).
QUESTION
To have a repository with the jekyll site configuration files (but not the _site), and each time I push to the repository, a gitlab pipeline runs. With that pipeline, the site is build with Jekyll (I'm using this theme https://github.com/mmistakes/jekyll-theme-basically-basic)
A quick view on the essential files which I'm troubling withGemfile
...ANSWER
Answered 2019-Oct-16 at 06:23In your Gemfile
, uncomment #gem "jekyll-theme-basically-basic"
to read gem "jekyll-theme-basically-basic"
.
For some reasons, in your .gitlab-ci.yml
, all the gem install ...
are useless, and it's the bundle install
that does the required job.
QUESTION
I postes this question because I didn't find any related answer on stackoverflow. I did everything. I will explain what I have tried.
When I start the Rails server using rails s
, I get the following output:
ANSWER
Answered 2019-Jul-03 at 12:33The root of the problem seems to be bundler. What operating system and Ruby version are you using? It may be a problem with old OpenSSL library, so you can not install bundler and everything after it.
If you are using jRuby (your gem list
output tells so), your problem seems to be the same as described in link. And there is a solution as well.
Maybe you forgot to set 2.1.2
version of ruby as global? (rbenv set global 2.1.2
)
QUESTION
I have tried to deploy my Jekyll static site to Netlify (via GitHub) and it was unsuccessful.
The error message was:
"failed during stage 'building site': Build script returned non-zero exit code: 42"
The following was the full Netlify log:
...ANSWER
Answered 2019-Jun-27 at 17:16The error you're seeing should just be a warning and shouldn't impact deployment. I'd double-check the netlify logs again and see if there's another error you can find.
The latest published version of jekyll-sass-converter still uses the sass
gem. It looks like they haven't released a new version that uses sassc
yet.
If you add the below to your Gemfile, and then run bundle install
, Jekyll will pick up the version that uses sassc
instead of sass
and get you past the warning you see
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jekyll-watch
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page