Giter VIP home page Giter VIP logo

github-pages-unscramble's Introduction

Github::Pages::Unscramble

github-pages-unscramble is a simple Jekyll plugin that runs alongside the github-pages plugin to undo the changes that plugin makes to a site's original plugin_dir and safe configuration settings and load any file-based plugins in plugins_dir. It also loads any plugins specified in the site's _config.yml that would otherwise be ignored due to the github-pages whitelist filter.

For reference, the Jekyll github-pages gem reconfigures a Jekyll site at runtime, setting plugins_dir to a random string and safe to true, and as a result, local file-based plugins do not load. If you are not using github-pages or do not wish to run file-based plugins or non-whitelisted plugins, you do not need github-pages-unscramble.

Note: github-pages-unscramble is intended to facilitate local plugin development and execution in a local GitHub Pages configured environment. It does not enable non-whitelisted plugins or file-based plugins to run directly on GitHub Pages.

Installation

Add this line to your application's Gemfile:

gem 'github-pages-unscramble', group: :jekyll-plugins

And then execute:

    $ bundle

NOTE: this gem must be included in the jekyll-plugins group to function.

Usage

No additional action is required by the user after installation. The plugin will automatically run upon site initialization, and will restore the site's original plugin_dir and safe settings and subsequently load any newly discovered file-based plugins. Note that these are runtime changes only, as with the github-pages gem, and no configuration changes are made persistent. Please note that because this plugin is simply restoring pre-github-pages settings, if your site is already hard configured with safe on, it will continue to retain that value, and no custom plugins will be loaded.

Debugging

github-pages-unscramble will report on the actions it is taking if you add --verbose to the end of your bundle exec jekyll command.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jamesluberda/github-pages-unscramble. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Github::Pages::Unscramble project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

github-pages-unscramble's People

Contributors

jamesluberda avatar

Stargazers

 avatar Piotr Majkrzak avatar Sara Tasche avatar Ben Peachey avatar ImaCrea avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.