generated from makersmakingchange/OpenAT-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First attempt using minimal mistakes template
- Loading branch information
1 parent
d9a8672
commit 88d8c08
Showing
9 changed files
with
574 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Vim | ||
*~ | ||
*.sw[p_] | ||
|
||
# Sublime Text | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
||
# Ruby Gem | ||
*.gem | ||
.bundle | ||
Gemfile.lock | ||
**/vendor/bundle | ||
|
||
# Node.js and NPM | ||
node_modules | ||
npm-debug.log* | ||
package-lock.json | ||
codekit-config.json | ||
|
||
# macOS | ||
.DS_Store | ||
|
||
# Jekyll generated files | ||
.jekyll-cache | ||
.jekyll-metadata | ||
.sass-cache | ||
_asset_bundler_cache | ||
_site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
language: ruby | ||
cache: bundler | ||
gemfile: docs/Gemfile | ||
script: | ||
- bundle exec jekyll algolia --source docs --destination docs/_site --config docs/_config.yml | ||
branches: | ||
only: | ||
# Change this to gh-pages if you're deploying using the gh-pages branch | ||
- master | ||
rvm: | ||
- 2.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "github-pages", group: :jekyll_plugins | ||
gem "jekyll-include-cache", group: :jekyll_plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
require "bundler/gem_tasks" | ||
require "jekyll" | ||
require "listen" | ||
|
||
def listen_ignore_paths(base, options) | ||
[ | ||
/_config\.ya?ml/, | ||
/_site/, | ||
/\.jekyll-metadata/ | ||
] | ||
end | ||
|
||
def listen_handler(base, options) | ||
site = Jekyll::Site.new(options) | ||
Jekyll::Command.process_site(site) | ||
proc do |modified, added, removed| | ||
t = Time.now | ||
c = modified + added + removed | ||
n = c.length | ||
relative_paths = c.map{ |p| Pathname.new(p).relative_path_from(base).to_s } | ||
print Jekyll.logger.message("Regenerating:", "#{relative_paths.join(", ")} changed... ") | ||
begin | ||
Jekyll::Command.process_site(site) | ||
puts "regenerated in #{Time.now - t} seconds." | ||
rescue => e | ||
puts "error:" | ||
Jekyll.logger.warn "Error:", e.message | ||
Jekyll.logger.warn "Error:", "Run jekyll build --trace for more information." | ||
end | ||
end | ||
end | ||
|
||
task :preview do | ||
base = Pathname.new('.').expand_path | ||
options = { | ||
"source" => base.join('test').to_s, | ||
"destination" => base.join('test/_site').to_s, | ||
"force_polling" => false, | ||
"serving" => true, | ||
"theme" => "minimal-mistakes-jekyll" | ||
} | ||
|
||
options = Jekyll.configuration(options) | ||
|
||
ENV["LISTEN_GEM_DEBUGGING"] = "1" | ||
listener = Listen.to( | ||
base.join("_data"), | ||
base.join("_includes"), | ||
base.join("_layouts"), | ||
base.join("_sass"), | ||
base.join("assets"), | ||
options["source"], | ||
:ignore => listen_ignore_paths(base, options), | ||
:force_polling => options['force_polling'], | ||
&(listen_handler(base, options)) | ||
) | ||
|
||
begin | ||
listener.start | ||
Jekyll.logger.info "Auto-regeneration:", "enabled for '#{options["source"]}'" | ||
|
||
unless options['serving'] | ||
trap("INT") do | ||
listener.stop | ||
puts " Halting auto-regeneration." | ||
exit 0 | ||
end | ||
|
||
loop { sleep 1000 } | ||
end | ||
rescue ThreadError | ||
# You pressed Ctrl-C, oh my! | ||
end | ||
|
||
Jekyll::Commands::Serve.process(options) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
# Welcome to Jekyll! | ||
# | ||
# This config file is meant for settings that affect your entire site, values | ||
# which you are expected to set up once and rarely need to edit after that. | ||
# For technical reasons, this file is *NOT* reloaded automatically when you use | ||
# `jekyll serve`. If you change this file, please restart the server process. | ||
|
||
# Theme Settings | ||
# | ||
# Review documentation to determine if you should use `theme` or `remote_theme` | ||
# https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/#installing-the-theme | ||
|
||
remote_theme: "mmistakes/[email protected]" | ||
minimal_mistakes_skin : "dark" # "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise" | ||
|
||
# Site Settings | ||
locale : "en-US" | ||
title : "GAME Checkpoint Resources" | ||
title_separator : "-" | ||
subtitle : "Game Accessibility Made for Everyone" | ||
name : "Makers Making Change" | ||
description : "Resources used to create GAME Checkpoints such as training materials, templates, and materials for centers." | ||
url : "https://makersmakingchange.github.io/GAME-Checkpoints/" | ||
baseurl : # the subpath of your site, e.g. "/blog" | ||
repository : "makersmakingchange/GAME-Checkpoints" | ||
teaser : # path of fallback teaser image, e.g. "/assets/images/500x300.png" | ||
logo : # path of logo image to display in the masthead, e.g. "/assets/images/88x88.png" | ||
masthead_title : "GAME Checkpoint Resources" | ||
breadcrumbs : false | ||
words_per_minute : 200 | ||
|
||
|
||
# # Contact information | ||
# author: | ||
# name : "Tyler" | ||
# avatar : # path of avatar image, e.g. "/assets/images/bio-photo.jpg" | ||
# bio : "The description goes here" | ||
# email : | ||
# links: | ||
# - label: "Email" | ||
# icon: "fas fa-fw fa-envelope-square" | ||
# # url: "mailto:[email protected]" | ||
# - label: "Website" | ||
# icon: "fas fa-fw fa-link" | ||
# # url: "https://your-website.com" | ||
# - label: "Twitter" | ||
# icon: "fab fa-fw fa-twitter-square" | ||
# # url: "https://twitter.com/" | ||
# - label: "Facebook" | ||
# icon: "fab fa-fw fa-facebook-square" | ||
# # url: "https://facebook.com/" | ||
# - label: "GitHub" | ||
# icon: "fab fa-fw fa-github" | ||
# # url: "https://github.com/" | ||
# - label: "Instagram" | ||
# icon: "fab fa-fw fa-instagram" | ||
# # url: "https://instagram.com/" | ||
|
||
# Site Footer | ||
footer: | ||
links: | ||
- label: " " | ||
icon: "fab fa-fw fa-twitter-square" | ||
url: "https://twitter.com/MakerMakeChange" | ||
- label: " " | ||
icon: "fab fa-fw fa-facebook-square" | ||
url: "https://www.facebook.com/makersmakechange" | ||
- label: " " | ||
icon: "fab fa-fw fa-github" | ||
url: "https://github.com/makersmakingchange" | ||
- label: " " | ||
icon: "fab fa-fw fa-instagram" | ||
url: "https://www.instagram.com/makersmakingchange" | ||
- label: " " | ||
icon: "fab fa-youtube-square" | ||
url: "https://www.youtube.com/channel/UCtn0ODz_yq_w9Uy6lUXGX-A" | ||
|
||
# Reading Files | ||
include: | ||
- .htaccess | ||
- _pages | ||
exclude: | ||
- "*.sublime-project" | ||
- "*.sublime-workspace" | ||
- vendor | ||
- .asset-cache | ||
- .bundle | ||
- .jekyll-assets-cache | ||
- .sass-cache | ||
- assets/js/plugins | ||
- assets/js/_main.js | ||
- assets/js/vendor | ||
- Capfile | ||
- CHANGELOG | ||
- config | ||
- Gemfile | ||
- Gruntfile.js | ||
- gulpfile.js | ||
- LICENSE | ||
- log | ||
- node_modules | ||
- package.json | ||
- package-lock.json | ||
- Rakefile | ||
- README | ||
- tmp | ||
keep_files: | ||
- .git | ||
- .svn | ||
encoding: "utf-8" | ||
markdown_ext: "markdown,mkdown,mkdn,mkd,md" | ||
|
||
|
||
# Conversion | ||
markdown: kramdown | ||
highlighter: rouge | ||
lsi: false | ||
excerpt_separator: "\n\n" | ||
incremental: false | ||
|
||
|
||
# Markdown Processing | ||
kramdown: | ||
input: GFM | ||
hard_wrap: false | ||
auto_ids: true | ||
footnote_nr: 1 | ||
entity_output: as_char | ||
toc_levels: 1..6 | ||
smart_quotes: lsquo,rsquo,ldquo,rdquo | ||
enable_coderay: false | ||
|
||
|
||
# Sass/SCSS | ||
sass: | ||
sass_dir: _sass | ||
style: compressed # https://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style | ||
|
||
|
||
# Outputting | ||
permalink: /:categories/:title/ | ||
paginate: 5 # amount of posts to show | ||
paginate_path: /page:num/ | ||
timezone: # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones | ||
|
||
|
||
# Plugins (previously gems:) | ||
plugins: | ||
- jekyll-paginate | ||
- jekyll-sitemap | ||
- jekyll-gist | ||
- jekyll-feed | ||
- jekyll-include-cache | ||
|
||
# mimic GitHub Pages with --safe | ||
whitelist: | ||
- jekyll-paginate | ||
- jekyll-sitemap | ||
- jekyll-gist | ||
- jekyll-feed | ||
- jekyll-include-cache | ||
|
||
|
||
# Archives | ||
# Type | ||
# - GitHub Pages compatible archive pages built with Liquid ~> type: liquid (default) | ||
# - Jekyll Archives plugin archive pages ~> type: jekyll-archives | ||
# Path (examples) | ||
# - Archive page should exist at path when using Liquid method or you can | ||
# expect broken links (especially with breadcrumbs enabled) | ||
# - <base_path>/tags/my-awesome-tag/index.html ~> path: /tags/ | ||
# - <base_path>/categories/my-awesome-category/index.html ~> path: /categories/ | ||
# - <base_path>/my-awesome-category/index.html ~> path: / | ||
category_archive: | ||
type: liquid | ||
path: /categories/ | ||
tag_archive: | ||
type: liquid | ||
path: /tags/ | ||
# https://github.com/jekyll/jekyll-archives | ||
# jekyll-archives: | ||
# enabled: | ||
# - categories | ||
# - tags | ||
# layouts: | ||
# category: archive-taxonomy | ||
# tag: archive-taxonomy | ||
# permalinks: | ||
# category: /categories/:name/ | ||
# tag: /tags/:name/ | ||
|
||
|
||
# HTML Compression | ||
# - https://jch.penibelst.de/ | ||
compress_html: | ||
clippings: all | ||
ignore: | ||
envs: development | ||
|
||
|
||
# # Defaults | ||
# defaults: | ||
# # _posts | ||
# - scope: | ||
# path: "" | ||
# type: page | ||
# values: | ||
# layout: splash | ||
# author_profile: false | ||
# read_time: false | ||
# comments: # true | ||
# share: false | ||
# related: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const fs = require("fs"); | ||
const pkg = require("./package.json"); | ||
const filename = "assets/js/main.min.js"; | ||
const script = fs.readFileSync(filename); | ||
const padStart = str => ("0" + str).slice(-2); | ||
const dateObj = new Date(); | ||
const date = `${dateObj.getFullYear()}-${padStart( | ||
dateObj.getMonth() + 1 | ||
)}-${padStart(dateObj.getDate())}`; | ||
const banner = `/*! | ||
* Minimal Mistakes Jekyll Theme ${pkg.version} by ${pkg.author} | ||
* Copyright 2013-${dateObj.getFullYear()} Michael Rose - mademistakes.com | @mmistakes | ||
* Licensed under ${pkg.license} | ||
*/ | ||
`; | ||
|
||
if (script.slice(0, 3) != "/**") { | ||
fs.writeFileSync(filename, banner + script); | ||
} |
Oops, something went wrong.