Skip to content

Commit 80f547e

Browse files
authored
jekyll-theme-portfolio (#4)
* initial commit * update color theme * update readme * add main projects * first draft * rebuild pages * fix gemfile * fix config file * hopefully will fix? * one more time? * last time tonight * is this it? * minor aesthetic changes * fix links * improve library formatting * improve library formatting (2)
1 parent e98a866 commit 80f547e

File tree

140 files changed

+8970
-723
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+8970
-723
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
_site
2+
.DS_Store
23
.sass-cache
34
.jekyll-cache
45
.jekyll-metadata
5-
vendor

404.html

+1-16
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,8 @@
11
---
2-
permalink: /404.html
32
layout: default
43
---
54

6-
<style type="text/css" media="screen">
7-
.container {
8-
margin: 10px auto;
9-
max-width: 600px;
10-
text-align: center;
11-
}
12-
h1 {
13-
margin: 30px 0;
14-
font-size: 4em;
15-
line-height: 1;
16-
letter-spacing: -1px;
17-
}
18-
</style>
19-
20-
<div class="container">
5+
<div class="container text-center">
216
<h1>404</h1>
227

238
<p><strong>Page not found :(</strong></p>

Gemfile

+3-30
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,7 @@
1+
# frozen_string_literal: true
12
source "https://rubygems.org"
2-
# Hello! This is where you manage which Jekyll version is used to run.
3-
# When you want to use a different version, change it below, save the
4-
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5-
#
6-
# bundle exec jekyll serve
7-
#
8-
# This will help ensure the proper Jekyll version is running.
9-
# Happy Jekylling!
10-
gem "jekyll", "~> 4.2.0"
11-
# This is the default theme for new Jekyll sites. You may change this to anything you like.
12-
gem "minima", "~> 2.5"
13-
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
14-
# uncomment the line below. To upgrade, run `bundle update github-pages`.
15-
# gem "github-pages", group: :jekyll_plugins
16-
# If you have any plugins, put them here!
17-
group :jekyll_plugins do
18-
gem "jekyll-feed", "~> 0.12"
19-
end
3+
gemspec
204

21-
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
22-
# and associated library.
23-
platforms :mingw, :x64_mingw, :mswin, :jruby do
24-
gem "tzinfo", "~> 1.2"
25-
gem "tzinfo-data"
26-
end
5+
gem "jekyll", ENV["JEKYLL_VERSION"] if ENV["JEKYLL_VERSION"]
276

28-
# Performance-booster for watching directories on Windows
29-
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
30-
31-
gem "just-the-docs"
327
gem "webrick", "~> 1.7"
33-
34-
gem "jekyll-remote-theme", "~> 0.4.3"

Gemfile.lock

+29-44
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
1+
PATH
2+
remote: .
3+
specs:
4+
jekyll-theme-portfolio (1.3.0)
5+
jekyll (>= 3.5, < 5.0)
6+
jekyll-feed (~> 0.9)
7+
jekyll-seo-tag (~> 2.1)
8+
19
GEM
210
remote: https://rubygems.org/
311
specs:
4-
addressable (2.8.0)
5-
public_suffix (>= 2.0.2, < 5.0)
12+
addressable (2.8.1)
13+
public_suffix (>= 2.0.2, < 6.0)
614
colorator (1.1.0)
7-
concurrent-ruby (1.1.9)
8-
em-websocket (0.5.2)
15+
concurrent-ruby (1.1.10)
16+
em-websocket (0.5.3)
917
eventmachine (>= 0.12.9)
10-
http_parser.rb (~> 0.6.0)
18+
http_parser.rb (~> 0)
1119
eventmachine (1.2.7)
12-
ffi (1.15.3)
20+
ffi (1.15.5)
1321
forwardable-extended (2.6.0)
14-
http_parser.rb (0.6.0)
15-
i18n (1.8.10)
22+
http_parser.rb (0.8.0)
23+
i18n (1.12.0)
1624
concurrent-ruby (~> 1.0)
17-
jekyll (4.2.0)
25+
jekyll (4.2.2)
1826
addressable (~> 2.4)
1927
colorator (~> 1.0)
2028
em-websocket (~> 0.5)
@@ -29,69 +37,46 @@ GEM
2937
rouge (~> 3.0)
3038
safe_yaml (~> 1.0)
3139
terminal-table (~> 2.0)
32-
jekyll-feed (0.15.1)
40+
jekyll-feed (0.16.0)
3341
jekyll (>= 3.7, < 5.0)
34-
jekyll-remote-theme (0.4.3)
35-
addressable (~> 2.0)
36-
jekyll (>= 3.5, < 5.0)
37-
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
38-
rubyzip (>= 1.3.0, < 3.0)
39-
jekyll-sass-converter (2.1.0)
42+
jekyll-sass-converter (2.2.0)
4043
sassc (> 2.0.1, < 3.0)
41-
jekyll-seo-tag (2.7.1)
44+
jekyll-seo-tag (2.8.0)
4245
jekyll (>= 3.8, < 5.0)
4346
jekyll-watch (2.2.1)
4447
listen (~> 3.0)
45-
just-the-docs (0.3.3)
46-
jekyll (>= 3.8.5)
47-
jekyll-seo-tag (~> 2.0)
48-
rake (>= 12.3.1, < 13.1.0)
49-
kramdown (2.3.1)
48+
kramdown (2.4.0)
5049
rexml
5150
kramdown-parser-gfm (1.1.0)
5251
kramdown (~> 2.0)
5352
liquid (4.0.3)
54-
listen (3.5.1)
53+
listen (3.7.1)
5554
rb-fsevent (~> 0.10, >= 0.10.3)
5655
rb-inotify (~> 0.9, >= 0.9.10)
5756
mercenary (0.4.0)
58-
minima (2.5.1)
59-
jekyll (>= 3.5, < 5.0)
60-
jekyll-feed (~> 0.9)
61-
jekyll-seo-tag (~> 2.1)
6257
pathutil (0.16.2)
6358
forwardable-extended (~> 2.6)
64-
public_suffix (4.0.6)
65-
rake (13.0.3)
66-
rb-fsevent (0.11.0)
59+
public_suffix (5.0.0)
60+
rb-fsevent (0.11.2)
6761
rb-inotify (0.10.1)
6862
ffi (~> 1.0)
6963
rexml (3.2.5)
70-
rouge (3.26.0)
71-
rubyzip (2.3.2)
64+
rouge (3.30.0)
7265
safe_yaml (1.0.5)
7366
sassc (2.4.0)
7467
ffi (~> 1.9)
7568
terminal-table (2.0.0)
7669
unicode-display_width (~> 1.1, >= 1.1.1)
77-
unicode-display_width (1.7.0)
70+
unicode-display_width (1.8.0)
7871
webrick (1.7.0)
7972

8073
PLATFORMS
8174
x86_64-darwin-19
82-
x86_64-darwin-20
83-
x86_64-linux
8475

8576
DEPENDENCIES
86-
jekyll (~> 4.2.0)
87-
jekyll-feed (~> 0.12)
88-
jekyll-remote-theme (~> 0.4.3)
89-
just-the-docs
90-
minima (~> 2.5)
91-
tzinfo (~> 1.2)
92-
tzinfo-data
93-
wdm (~> 0.1.1)
77+
bundler
78+
jekyll-theme-portfolio!
9479
webrick (~> 1.7)
9580

9681
BUNDLED WITH
97-
2.2.25
82+
2.3.22

README.md

+22-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,28 @@ The main hub for Niv lab's technical resource sites.
44

55
## Development
66

7-
To set up your environment to develop this theme, run `bundle install`.
7+
### Modifying the portfolio
88

9-
Your theme is set up just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
9+
For step-by-step instructions for adding to or modifying the project portfolio, see [Portfolio Theme](https://github.com/tedivm/jekyll-theme-portfolio#getting-started) README.
10+
11+
### Modifying the library
12+
13+
Edit the `library.md` file as you see fit :)
14+
15+
### Previewing the demos page locally
16+
17+
If you'd like to preview the site locally (for example, in the process of proposing a change):
18+
19+
1. Clone down the project's repository (`git clone https://github.com/nivlab/nivlab.github.io`)
20+
2. `cd` into the project's directory
21+
3. Run `bundle install` to install the necessary dependencies
22+
4. Run `bundle exec jekyll serve` to start the preview server
23+
5. Visit `localhost:4000` in your browser to preview the project
24+
25+
This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
1026

1127
When the theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
28+
29+
## Acknowledgments
30+
31+
This resource was made possible thanks to [Github Pages](https://pages.github.com/) and the [Portfolio Theme](https://github.com/tedivm/jekyll-theme-portfolio) for Jekyll.

_config.yml

+10-84
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,13 @@
1-
# Welcome to Jekyll!
2-
#
3-
# This config file is meant for settings that affect your whole blog, values
4-
# which you are expected to set up once and rarely edit after that. If you find
5-
# yourself editing this file very often, consider using Jekyll's data files
6-
# feature for the data you need to update frequently.
7-
#
8-
# For technical reasons, this file is *NOT* reloaded automatically when you use
9-
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10-
#
11-
# If you need help with YAML syntax, here are some quick references for you:
12-
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
13-
# https://learnxinyminutes.com/docs/yaml/
14-
#
15-
# Site settings
16-
# These are used to personalize your new site. If you look in the HTML files,
17-
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
18-
# You can create any custom variable you would like, and they will be accessible
19-
# in the templates via {{ site.myvariable }}.
20-
21-
title: Niv Lab
22-
description: >- # this means to ignore newlines until "baseurl:"
23-
Research in the Niv lab focuses on the neural and computational processes
24-
underlying reinforcement learning and decision-making. This site features
25-
some of our computational resources: tools, tutorials, data, and code examples.
26-
#baseurl: "/nivlab"
27-
#url: "https://nivlab.github.io"
1+
title: Niv Lab Technical Resources
2+
author: Niv Lab
3+
email: https://nivlab.princeton.edu
4+
description: > # this means to ignore newlines until "show_exerpts:"
5+
Technical resources maintained by the Niv lab.
6+
7+
# Header Links
8+
homepage: https://nivlab.princeton.edu
289
github_username: nivlab
2910

30-
# Build settings
31-
# theme: "just-the-docs"
32-
remote_theme: pmarsceill/just-the-docs
3311
plugins:
34-
- jekyll-feed
35-
- jekyll-seo-tag
36-
- jekyll-remote-theme
37-
38-
compress_html:
39-
clippings: all
40-
comments: all
41-
endings: all
42-
startings: []
43-
blanklines: false
44-
profile: false
45-
46-
permalink: pretty
47-
exclude: ["node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "package.json", "package-lock.json", "script/", "LICENSE.txt", "lib/", "bin/", "README.md", "Rakefile"]
48-
49-
# Enable or disable the site search
50-
# Supports true (default) or false
51-
search_enabled: true
52-
53-
aux_links:
54-
"Main Niv Lab website":
55-
- "https://nivlab.princeton.edu/"
56-
57-
# Footer
58-
last_edit_timestamp: true # show or hide edit time - page must have `last_modified_date` defined in the frontmatter
59-
last_edit_time_format: "%b %e %Y at %I:%M %p" # uses ruby's time format: https://ruby-doc.org/stdlib-2.7.0/libdoc/time/rdoc/Time.html
60-
footer_content: "Copyright &copy; 2021 Niv Lab."
61-
62-
# Back to top link
63-
back_to_top: true
64-
back_to_top_text: "Back to top"
65-
66-
# Color scheme currently only supports "dark", "light"/nil (default), or a custom scheme that you define
67-
color_scheme: nivlab
68-
69-
# Exclude from processing.
70-
# The following items will not be processed, by default.
71-
# Any item listed under the `exclude:` key here will be automatically added to
72-
# the internal "default list".
73-
#
74-
# Excluded items can be processed by explicitly listing the directories or
75-
# their entries' file path in the `include:` list.
76-
#
77-
# exclude:
78-
# - .sass-cache/
79-
# - .jekyll-cache/
80-
# - gemfiles/
81-
# - Gemfile
82-
# - Gemfile.lock
83-
# - node_modules/
84-
# - vendor/bundle/
85-
# - vendor/cache/
86-
# - vendor/gems/
87-
# - vendor/ruby/
12+
- jekyll-feed
13+
- jekyll-seo-tag

_data/projects.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
- name: Projects
2+
icon: fas fa-terminal
3+
projects:
4+
- name: NivTurk
5+
description: Tools for serving and storing data from online experiments.
6+
homepage: https://nivlab.github.io/nivturk
7+
github: nivlab/nivturk
8+
image: database.png
9+
10+
- name: jsPsych demos
11+
description: Collection of web experiments and other utilities programmed in jsPsych.
12+
homepage: https://nivlab.github.io/jspsych-demos
13+
github: nivlab/jspsych-demos
14+
image: video-game.png
15+
16+
- name: Reference library
17+
description: Curated list of articles and references frequently cited by the lab.
18+
homepage: /library
19+
image: open-book.png
20+
21+
- name: OpenData
22+
description: Database of open behavioral datasets.
23+
homepage: https://nivlab.github.io/opendata
24+
github: nivlab/opendata
25+
image: padlock-unlock.png
26+
27+
- name: NivStan
28+
description: Recipes for cognitive modeling using Stan.
29+
homepage: https://nivlab.github.io/nivstan
30+
github: nivlab/nivstan
31+
image: plot.png
32+
33+
- name: NivLink
34+
description: Tools for preprocessing eye-tracking data.
35+
homepage: https://nivlink.readthedocs.io/en/latest/
36+
github: nivlab/NivLink
37+
image: eye.png

0 commit comments

Comments
 (0)