class GitHubPages::Configuration
interfere with the regular usage of ‘jekyll build`
This file will only be loaded when running `jekyll algolia`, so it won’t
from ./_plugins.
We cancel those by disabling safe mode and forcing back plugins to be read
- loading custom plugins from a random dir
- forcing safe mode
The GitHub Pages gem prevent access to custom plugins by doing two things:
executed.
github-pages gem installed at the same time, those hooks will never be
define custom hooks to modify the indexing. If they happen to have the
Users of the jekyll-algolia plugin will use custom plugins in _plugins to
in the ‘_plugins` folder as well.
the whitelist of plugins allowed by GitHub. This includes any plugin defined
The github-pages gem will automatically disable every plugin that is not in
def set!(site)
def set!(site) config = effective_config(site.config) config['safe'] = false config['plugins_dir'] = '_plugins' site.config = config end