Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_site
.sass-cache
.jekyll-metadata
*.swp
*.swo
24 changes: 24 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
layout: default
---

<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>

<div class="container">
<h1>404</h1>

<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>
32 changes: 32 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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", "~> 3.8.4"

# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"

# 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.6"
gem "jekyll-paginate", "~> 1.1.0"
gem "jekyll-redirect-from", "~> 0.14.0"
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?

79 changes: 79 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
colorator (1.1.0)
concurrent-ruby (1.0.5)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.9.25)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.8.4)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (~> 1.14)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-feed (0.11.0)
jekyll (~> 3.3)
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.14.0)
jekyll (~> 3.3)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.5.0)
jekyll (~> 3.3)
jekyll-watch (2.0.0)
listen (~> 3.0)
kramdown (1.17.0)
liquid (4.0.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.6)
minima (2.5.0)
jekyll (~> 3.5)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
pathutil (0.16.1)
forwardable-extended (~> 2.6)
public_suffix (3.0.3)
rb-fsevent (0.10.3)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rouge (3.2.1)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sass (3.6.0)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)

PLATFORMS
ruby

DEPENDENCIES
jekyll (~> 3.8.4)
jekyll-feed (~> 0.6)
jekyll-paginate (~> 1.1.0)
jekyll-redirect-from (~> 0.14.0)
minima (~> 2.0)
tzinfo-data

BUNDLED WITH
1.16.5
51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,50 @@
# SolarPerformanceInsight.github.io
# Solar Performance Insight Project site.
This site hosts static content for the Solar Performance Insight project.

It's built using [Jekyll](https://jekyllrb.com/).

### Architecture
Directory structure:

- `_layouts` Base templates that include organize content.
- `_data` Variables for rendering in templates stored in yaml files.
Data entered here is accessible via the `site.data` variable in templates.
- `_includes` Reusable HTML elements.

Content is provided in html files at the root of the directory. The layout to use for a given page is declared at the top of the file in the `Front Matter` (a yaml snippet preceded and followed by a line with three '-'s on it).
```
---
layout: base
permalink: /<path/
---
```
Note: Declaring a permalink provides a way for jekyll to link to pages regardless of where they reside in the directory structure or filename.


### Navigation
Main navigation is defined in the `_data/navigation.yml` file. New menu items can be added by creating a yaml object with `name` and `link` attributes where name is the link text to display and link is the permalink, path or url to the target. Dropdown sub-navigation can be defined by creating a top level object with a `name` and `links` attribute, where the links attribute is a list of objects with `name` and `link` attributes.

```
Example: Top level menu item

- name: Team
link: /team/

Example: Subnav Dropdown

- name: Key Topics
links:
- name: Use Cases
link: /usecases/
```


### Adding Content

Pages can be added by creating a new html or markdown file in the root directory of this repo.

If you wish to use a mixture of markdown and html, you may do so with a .md file.

#### Blog Posts

Blog posts can be added in the `_posts` directory, with the format `<year>-<month>-<day>-<dash-separated-title>` in `.md` or `.html`. You should set the `author` field in the front-matter as well as setting the layout to `blog`, these values will be rendered in the blog post listing and the blog post page.
36 changes: 36 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.

# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Solar Performance Insight
email: holmgren@email.arizona.edu
description: >- # this means to ignore newlines until "baseurl:"
Solar Performance Insight project site.
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://solarperformanceinsight.github.io" # the base hostname & protocol for your site, e.g. http://example.com
github_username: SolarPerformanceInsight

# Build settings
markdown: kramdown
theme: minima
plugins:
- jekyll-feed
- jekyll-paginate
- jekyll-redirect-from
paginate: 5
paginate_path: "/blog/page:num/"
# custom vars
project_name: Solar Performance Insight
excerpt_separator: <!-- more -->

15 changes: 15 additions & 0 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- name: Team
link: /team/
- name: Contact
link: /contact/
- name: Funding
link: /funding/

- name: Publications
link: /publications/

- name: Stakeholder Committee
link: /stakeholdercommittee/

- name: Email List
link: /emaillist/
Empty file added _data/papers.yml
Empty file.
Empty file added _data/posters.yml
Empty file.
Empty file added _data/presentations.yml
Empty file.
8 changes: 8 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<a class="navbar-brand" href="/">
{% if site.project_logo %}
<img src="{{ site.project_logo }}"/>
{% else %}
{{ site.project_name }}
{% endif %}
</a>
<p class="float-md-right">Contribute on <a href="https://github.com/SolarPerformanceInsight"><img class="gh-link" alt="Solar Performance Insight GitHub" src="/images/logos/GitHub.png"></a>
17 changes: 17 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Solar Performance Insight project site.">
<meta name="author" content="">
<link rel="icon" href="/images/favicon.ico">

<title>{% if page.title %} {{ page.title }} | {% endif %} {{ site.project_name }}</title>

<!-- Bootstrap core CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" type="text/css" rel="stylesheet">

<!--- JQuery & bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>

<!-- Custom styles for this template -->
<link href="/css/styles.css" type="text/css" rel="stylesheet">
28 changes: 28 additions & 0 deletions _includes/mathjax.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{% if page.mathjax %}
<!-- MathJax -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML"></script>
<script>
MathJax.Hub.Config({
config: ["MMLorHTML.js"],
extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
jax: ["input/TeX"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: false
},
TeX: {
TagSide: "right",
TagIndent: ".8em",
MultLineWidth: "85%",
equationNumbers: {
autoNumber: "AMS",
},
unicode: {
fonts: "STIXGeneral,'Arial Unicode MS'"
}
},
showProcessingMessages: false
});
</script>
{% endif %}
36 changes: 36 additions & 0 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!-- Fixed navbar -->
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">

<div class="container">
<a class="navbar-brand" href="/">
{% if site.project_logo %}
<img src="{{ site.project_logo }}"/>
{% else %}
{{ site.project_name }}
{% endif %}
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
{% for item in site.data.navigation %}
<li class="nav-item active dropdown">
{% if item.links %}
<a id="drop-{{ item.name | downcase | replace: ' ', '-' }}" role="button" class="nav-link dropdown-toggle" data-toggle="dropdown" data-target="#" href="#">{{ item.name }}</a>
<ul class="dropdown-menu subnav" role="menu" aria-labelledby="dLabel">
{% for sub-item in item.links %}
<li class="nav-item">
<a role="menuitem" tabindex="-1" href="{{ sub-item.link }}">{{ sub-item.name }}</a>
</li>
{% endfor %}
</ul>
{% else %}
<a class="nav-link" href="{{ item.link }}">{{ item.name }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
</div>
</nav>
36 changes: 36 additions & 0 deletions _layouts/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!doctype html>
<html lang="en" class="h-100">
<head>
{% include header.html %}
{% if page.mathjax != false %}
{% include mathjax.html %}
{% endif %}
</head>

<body class="d-flex flex-column h-100">
<header>
{% include navbar.html %}
</header>
<!-- Begin page content -->
<main role="main" class="flex-shrink-0">
<div class="container">
{% if page.sidebar %}
<div class="sidebar">
{% include {{ page.sidebar }} %}
</div>
<div class="content-wrapper-sidebar">
{% else %}
<div>
{% endif %}
{{ content }}
</div>
</div>
</main>

<footer class="footer mt-auto py-3">
<div class="container">
{% include footer.html %}
</div>
</footer>
</body>
</html>
11 changes: 11 additions & 0 deletions contact.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: base
permalink: /contact/
title: Contact
---

# Contact

Please send any questions or feedback to [cwhanse@sandia.gov](mailto:cwhanse@sandia.gov).

[Join the Solar Performance Insight mailing list](/emaillist) to receive periodic email updates on the project and stakeholder communications.
Loading