Skip to content

Commit

Permalink
initial commit of morea2
Browse files Browse the repository at this point in the history
  • Loading branch information
philipmjohnson committed Jul 17, 2021
1 parent c11e1af commit d3864b0
Show file tree
Hide file tree
Showing 78 changed files with 5,921 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Keep IntelliJ files out of github to reduce potential conflicts when others import.

.idea
core.iml
_site
.jekyll-cache
30 changes: 30 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 4.2.0"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
# gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
# gem "jekyll-feed", "~> 0.12"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
gem "webrick", "~> 1.7"
72 changes: 72 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.9)
em-websocket (0.5.2)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.15.3)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
jekyll (4.2.0)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-sass-converter (2.1.0)
sassc (> 2.0.1, < 3.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.3.1)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.5.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
rb-fsevent (0.11.0)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.26.0)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.7.0)
webrick (1.7.0)

PLATFORMS
x86_64-darwin-19

DEPENDENCIES
jekyll (~> 4.2.0)
tzinfo (~> 1.2)
tzinfo-data
wdm (~> 0.1.1)
webrick (~> 1.7)

BUNDLED WITH
2.2.24
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# morea2
Version 2 of Morea
# Morea Version 2.0

This repository contains the code for Version 2.0 of the Morea Framework.

Differences include:

* New Morea sites are created by using this repo as a "template". Although this repository is public, you can make your copy of the repo private.

* You do not need to maintain a master and gh-page branch in your local file system.
28 changes: 28 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Morea CORE (Change me)
markdown: kramdown
kramdown:
hard_wrap: false
input: GFM
syntax_highlighter: rouge
mathjax: true
baseurl: /core
exclude: [morea]
morea_theme: spacelab
morea_navbar_items:
#- Prerequisites
- Modules
- Outcomes
- Readings
- Experiences
- Assessments
- Schedule

# The following properties are optional.
# See the User Guide (http://morea-framework.github.io/userguide.html) for more info.

# morea_course: ics311
# morea_domain: http://morea-framework.github.io/
# morea_google_analytics_tracking_id: "<your tracking id here>"

#morea_head_breadcrumb_link: "http://cnn.com"
#morea_head_breadcrumb_label: "CNN Site"
41 changes: 41 additions & 0 deletions _includes/assessment-chartjs-wod.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<script src="{{ site.baseurl }}/js/Chart.js"></script>

<div class="row">
<div class="col-sm-6">
<div class="well">
<div style="margin-right: auto; margin-left: auto">
<canvas id="{{ page.morea_id }}" ></canvas>
</div>
<span class="h4">
<span style="padding: 2px" class="label label-success">Rx: {{ include.Rx }}</span>
<span style="padding: 2px" class="label label-info">Av: {{ include.Av }}</span>
<span style="padding: 2px" class="label label-warning">Sd: {{ include.Sd }}</span>
<span style="padding: 2px" class="label label-danger">DNF: {{ include.DNF}}</span>
</span>
</div>
</div>

<div class="col-sm-6">
{{ page.morea_chartjs_caption | markdownify }}
</div>

<script>

var moreaChartData = {
labels: {{ page.morea_chartjs_labels }},
datasets: [ { data: {{ page.morea_chartjs_data }} } ]
};

var moreaChartOptions = {
scaleGridLineColor: "gray",
scaleFontColor: "darkgray",
scaleLineColor: "darkgray",
responsive: true,
animation: false
};

// Get the context of the canvas element we want to select
var ctx = document.getElementById("{{ page.morea_id}}").getContext("2d");
var myNewChart = new Chart(ctx).Bar(moreaChartData, moreaChartOptions);

</script>
37 changes: 37 additions & 0 deletions _includes/assessment-chartjs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<script src="{{ site.baseurl }}/js/Chart.js"></script>

<div class="row">
<div class="col-sm-6">
<div class="well">
<div style="margin-right: auto; margin-left: auto">
<canvas id="{{ page.morea_id }}" ></canvas>
</div>
</div>
</div>

<div class="col-sm-6">
{{ page.morea_chartjs_caption | markdownify }}
</div>

<script>

var moreaChartData = {
labels: {{ page.morea_chartjs_labels }},
datasets: [ { data: {{ page.morea_chartjs_data }} } ]
};

var moreaChartOptions = {
scaleGridLineColor: "gray",
scaleFontColor: "darkgray",
scaleLineColor: "darkgray",
responsive: true,
animation: false
};

// Get the context of the canvas element we want to select
var ctx = document.getElementById("{{ page.morea_id}}").getContext("2d");
var myNewChart = new Chart(ctx).Bar(moreaChartData, moreaChartOptions);

</script>


5 changes: 5 additions & 0 deletions _includes/small-img.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="center-block">
<div class="img-responsive">
<a href="{{ include.url }}"><img width="400px" src="{{ include.url }}"></a>
</div>
</div>
3 changes: 3 additions & 0 deletions _includes/youtube.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="video-container">
<iframe src="http://www.youtube.com/embed/{{ include.id }}" frameborder="0" allowfullscreen></iframe>
</div>
132 changes: 132 additions & 0 deletions _layouts/core.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<!DOCTYPE html>
<html>
<head>
<title> {{ page.title }} | {{ site.name }} </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">

<!-- Load bootswatch-based Morea theme file. -->
<link rel="stylesheet" href="{{ site.baseurl }}/css/themes/{{ site.morea_theme }}/bootstrap.min.css">
<link rel="stylesheet" href="{{ site.baseurl }}/css/style.css">
<link rel="stylesheet" href="{{ site.baseurl }}/css/syntax.css">
<link rel="shortcut icon" href="{{ site.baseurl }}/favicon.ico" type="image/x-icon"/>

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.2/html5shiv.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.2.0/respond.js"></script>
<![endif]-->

<!-- Load Bootstrap JavaScript components -->
<script src="//code.jquery.com/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>

{% if site.mathjax %}
<script type="text/javascript"
src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
{% endif %}

{% if site.morea_google_analytics_tracking_id %}
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

ga('create', '{{ site.morea_google_analytics_tracking_id }}', 'auto');
ga('send', 'pageview');

</script>
{% endif %}

<script>
$(window).load(function () {
// If on a page associated with a navbar item, make its navbar item 'active'.
$('.navbar-nav').find('a[href="' + location.pathname + '"]').parents('li').addClass('active');
});
</script>

</head>
<body>
<!-- Responsive navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<!-- Display three horizontal lines when navbar collapsed. -->
<span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ site.baseurl }}/index.html"> {{ site.name }} </a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
{% if site.morea_navbar_items contains 'Prerequisites' %}
<li><a href="{{ site.baseurl }}/prerequisites/">Prerequisites</a></li>
{% endif %}
<li><a href="{{ site.baseurl }}/modules/">Modules</a></li>
{% if site.morea_navbar_items contains 'Outcomes' %}
<li><a href="{{ site.baseurl }}/outcomes/">Outcomes</a></li>
{% endif %}
{% if site.morea_navbar_items contains 'Readings' %}
<li><a href="{{ site.baseurl }}/readings/">Readings</a></li>
{% endif %}
{% if site.morea_navbar_items contains 'Experiences' %}
<li><a href="{{ site.baseurl }}/experiences/">Experiences</a></li>
{% endif %}
{% if site.morea_navbar_items contains 'Assessments' %}
<li><a href="{{ site.baseurl }}/assessments/">Assessments</a></li>
{% endif %}
{% if site.morea_navbar_items contains 'Schedule' %}
<li><a href="{{ site.baseurl }}/schedule/">Schedule</a></li>
{% endif %}
</ul>
</div>
</div>
</div>


{{ content }}

<script src="{{ site.baseurl }}/js/scrollIfAnchor.js"></script>

<div class="footer-background hidden-print">
<footer>
<div class="container page-footer">
{% if site.morea_footer_page %}
{{ site.morea_footer_page.content | markdownify }}
{% else %}
No footer page content supplied.
{% endif %}
<p style="margin: 0">Powered by the <a href="http://morea-framework.github.io/">Morea Framework</a> (Theme: {{ site.morea_theme }})<br>
Last update on: <span>{{ site.time }}</span></p>

<p style="margin: 0">
{% if site.morea_navbar_items contains 'Prerequisites' %}
{{ site.morea_prerequisite_pages.size }} prerequisites |
{% endif %}
{{ site.morea_module_pages.size }} modules
{% if site.morea_navbar_items contains 'Outcomes' %}
| {{ site.morea_outcome_pages.size }} outcomes
{% endif %}
{% if site.morea_navbar_items contains 'Readings' %}
| {{ site.morea_reading_pages.size }} readings
{% endif %}
{% if site.morea_navbar_items contains 'Experiences' %}
| {{ site.morea_experience_pages.size }} experiences
{% endif %}
{% if site.morea_navbar_items contains 'Assessments' %}
| {{ site.morea_assessment_pages.size }} assessments
{% endif %}
</p>
</div>
</footer>
</div>
</body>
</html>
12 changes: 12 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: core
---

{% if page.topdiv == 'container' %}
<div class="container">
{{ content }}
</div>
{% else %}
{{ content }}
{% endif %}

Loading

0 comments on commit d3864b0

Please sign in to comment.