Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomasjbradley/jekyll_patternbot
A Jekyll plugin for developing pattern libraries & style guides that can be used to generate a Jekyll website.
https://github.com/thomasjbradley/jekyll_patternbot
jekyll jekyll-plugin jekyll-theme pattern-library styleguide
Last synced: 3 months ago
JSON representation
A Jekyll plugin for developing pattern libraries & style guides that can be used to generate a Jekyll website.
- Host: GitHub
- URL: https://github.com/thomasjbradley/jekyll_patternbot
- Owner: thomasjbradley
- License: mit
- Created: 2018-12-31T17:27:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T20:42:25.000Z (about 2 years ago)
- Last Synced: 2024-04-14T22:12:05.301Z (9 months ago)
- Topics: jekyll, jekyll-plugin, jekyll-theme, pattern-library, styleguide
- Language: CSS
- Size: 710 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ![](.readme/patternbot-logo.png) Jekyll Patternbot
*Your pompous and persnickety patterning robot.*
---
There are lots of fantastic tools for creating style guides and pattern libraries—but they all have a lot of embedded knowledge (command line, Gulp, Grunt, PHP, Handlebars, SASS, etc.)
It’s just too much *stuff* for my students. I don’t want them to have to learn the tool, I want them to use a tool and get on with designing.
My aim is not to replace the wonderful tools that exist, but simplify them into a very minimal package that can get the students familiarized with using style guides without having to learn all the extra stuff.
**This is actually my second version of making a pattern library app: the first was a GUI.** But after working with students for a while & teaching & understanding their knowledge sphere, I’ve switched to a Jekyll plugin. It’s better at scaffolding their knowledge into future terms and opens up lots learning opportunities within the Jekyll ecosystem.
---
## Installation & setup
**First make sure you have Ruby, RubyGems & Bundler installed. [☛ See this lesson for help with installing the tools.](https://learn-the-web.algonquindesign.ca/courses/web-dev-4/install-more-developer-tools/)**
After cloning your GitHub repo, press `Open in Terminal` from within GitHub Desktop.
### 1. Add a Gemfile
**Within Terminal type: `bundle init`**—this will create a new file in your folder named `Gemfile`
Edit your `Gemfile` and add these lines to the bottom:
```ruby
gem "jekyll"group :jekyll_plugins do
gem "jekyll_patternbot"
end
```Then pop back over to **Terminal and run this command: `bundle install`**
### 2. Add a Ruby version
In your code editor create a new file named `.ruby-version`
Enter a current Ruby version number into the file, `2.5.3` is a recent version you can use.
```
2.5.3
```### 3. Configure Jekyll
Finally we need to configure Jekyll to use Patternbot. It’s already using the Patternbot plugins, as defined in our `Gemfile`, but we need to specify the Patternbot theme too.
In your code editor, **create a new file `_config.yml`**
Add this to your Jekyll `_config.yml` file:
```yml
permalink: prettytheme: jekyll_patternbot
```*The `permalink: pretty` isn’t necessary—but I always like to have nice permalinks in my websites.*
---
## Hosting Jekyll Patternbot
*Although GitHub supports Jekyll, its list of allowed plugins is very strict—which means Patternbot cannot run on GitHub Pages.*
I suggest using [Netlify](https://www.netlify.com/) as a substitute to GitHub hosting for your projects that use Jekyll Patternbot.